]> git.ipfire.org Git - thirdparty/u-boot.git/commit
env: mmc: fix offsets relative to the end of the partition
authorMichael Walle <mwalle@kernel.org>
Thu, 5 Jun 2025 07:46:10 +0000 (09:46 +0200)
committerPeng Fan <peng.fan@nxp.com>
Wed, 2 Jul 2025 04:39:21 +0000 (12:39 +0800)
commit95f03ee65c0e6d1a4ef20f6627cf8345981a58ea
tree3cf1625cae6f626b099e23d8bec9790aa7907f4d
parentcbb5672790d400e9ec6e9fceaf89ece2660c0117
env: mmc: fix offsets relative to the end of the partition

According to the help text, you can set negative offsets to indicated
that the offset is relative to the end of the parition. But kconfig
doesn't let you specify negative hex values. I think this fell through
the cracks when converting the symbol from a '#define' to a kconfig
option.

Introduce a new boolean kconfig option to switch on the "relative to the
end" behavior.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
env/Kconfig
env/mmc.c