]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: use CONFIG_IS_ENABLED(LOAD_FIT_FULL)
authorJohn Keeping <john@metanate.com>
Wed, 19 May 2021 14:05:53 +0000 (15:05 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 11:13:24 +0000 (07:13 -0400)
commit674afa6b3588dafe02b99406278ed81216fbefcb
tree269290d8969172427c90acf359216b31db5396d4
parent4906d698d3960b70cf8000299da35412efd4f51d
spl: use CONFIG_IS_ENABLED(LOAD_FIT_FULL)

It's possible that LOAD_FIT_FULL will have different values for TPL and
SPL, in which case just checking CONFIG_SPL_LOAD_FIT_FULL causes this to
be compiled in to the TPL even though functions and struct members it
depends on are not.

Use CONFIG_IS_ENABLED() to ensure the correct TPL/SPL variant is
checked.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/spl.c