]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools/env: allow negative offsets
authorStefan Agner <stefan.agner@toradex.com>
Thu, 14 Jul 2016 00:14:38 +0000 (17:14 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 22 Jul 2016 18:46:20 +0000 (14:46 -0400)
commitf4742ca0fb94e531b8dcddd1ac0799ee4c9c2605
treee908058bcd6eaf2a9bfe05146cc0567153fa8125
parent14fb5b252ac21c81e24fa734c3f66e9d6c3a0932
tools/env: allow negative offsets

A negative value for the offset is treated as a backwards offset for
from the end of the device/partition for block devices. This aligns
the behavior of the config file with the syntax of CONFIG_ENV_OFFSET
where the functionality has been introduced with
commit 5c088ee841f9 ("env_mmc: allow negative CONFIG_ENV_OFFSET").

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
tools/env/fw_env.c
tools/env/fw_env.config