Kconfig: Use hex values for CONFIG_{SPL,TPL}_SIZE_LIMIT
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 25 Sep 2020 18:12:56 +0000 (21:12 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 13:54:52 +0000 (09:54 -0400)
commit2dfdd0c4de48d261a72905a61704d4919587e45b
tree476af2220617626c80a608c12cbdbde72a19fd5e
parent39565cc2a9f9db1cfefed61804fc5812d0ed1624
Kconfig: Use hex values for CONFIG_{SPL,TPL}_SIZE_LIMIT

CONFIG_{SPL,TPL}_SIZE_LIMIT are defined as hex (SPL_SIZE_LIMIT was
converted in b51882d0 ("spl: Convert CONFIG_SPL_SIZE_LIMIT to hex"), but
there are still places that reference integer values. Change those to hex
as well. Also, update the Makefile to check for 0x0 instead of 0.

This also fixes the following build error when CONFIG_SPL_SIZE_LIMIT
is set by menuconfig to 0x0:
...
spl/u-boot-spl.bin exceeds file size limit:
  limit:  0 bytes
  actual: 0x80f0 bytes
  excess: 0x80f0 bytes

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile
common/spl/Kconfig
configs/firefly-rk3288_defconfig
configs/imxrt1020-evk_defconfig
configs/imxrt1050-evk_defconfig
configs/tinker-s-rk3288_defconfig