arm: zimage: Use correct symbol to hide messages in SPL
PATCH 1/1 arm: zimage: Use correct symbol to hide messages in SPL
When zImage support was added to SPL, the messages were hidden to reduce code size. However, the wrong config symbol was used. Since this file is only built when CONFIG_SPL_FRAMEWORK=y, the messages were always hidden.
Use the correct symbol so the messages are printed in U-Boot proper. Also use IS_ENABLED to drop the #ifdef.
--- arch/arm/lib/zimage.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
arch/arm/lib/zimage.c +5 -7
@@ -25,18 +25,16 @@ int bootz_setup(ulong image, ulong *start, ulong *end)if (zi->zi_magic !=LINUX_ARM_ZIMAGE_MAGIC && zi->zi_magic !=BAREBOX_IMAGE_MAGIC ) { -#ifndef CONFIG_SPL_FRAMEWORK -puts ("zimage: Bad magic!\n" ); -#endif +if (!IS_ENABLED (CONFIG_SPL_BUILD )) +puts ("zimage: Bad magic!\n" );return 1 ; } *start = zi->zi_start; *end = zi->zi_end; -#ifndef CONFIG_SPL_FRAMEWORK -printf ("Kernel image @ %#08lx [ %#08lx - %#08lx ]\n" , - image, *start, *end); -#endif +if (!IS_ENABLED (CONFIG_SPL_BUILD )) +printf ("Kernel image @ %#08lx [ %#08lx - %#08lx ]\n" , + image, *start, *end);return 0 ; }
Signature · 1 line
2.26.2
PATCH 1/1 arm: zimage: Use correct symbol to hide messages in SPL
Quoted 9 lines · Samuel Holland
When zImage support was added to SPL, the messages were hidden to reduce code size. However, the wrong config symbol was used. Since this file is only built when
CONFIG_SPL_FRAMEWORK=y, the messages were always hidden.Use the correct symbol so the messages are printed in U-Boot proper. Also use
IS_ENABLEDto drop the #ifdef.Fixes 431889d6ad9a ("spl: zImage support in Falcon mode")Signed-off-by Samuel Holland <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210427/2f4ec183/attachment.sig>