mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
spl: Avoid #ifdef with CONFIG_SPL_PAYLOAD_ARGS_ADDR
Move the condition to the header file to improve readability. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -34,4 +34,11 @@
|
||||
#define SPL_SYS_MALLOC_SIZE \
|
||||
IF_ENABLED_INT(CONFIG_SPL_SYS_MALLOC, CONFIG_SPL_SYS_MALLOC_SIZE)
|
||||
|
||||
/* deal with an optional value */
|
||||
#ifdef CONFIG_SPL_OS_BOOT
|
||||
#define SPL_PAYLOAD_ARGS_ADDR CONFIG_SPL_PAYLOAD_ARGS_ADDR
|
||||
#else
|
||||
#define SPL_PAYLOAD_ARGS_ADDR 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user