diff options
| author | Simon Glass <sjg@chromium.org> | 2023-09-26 08:14:21 -0600 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2023-10-06 14:38:12 -0400 |
| commit | e0be6eaf581d06af788509e588129c4dbae967d2 (patch) | |
| tree | a6504124733239b2e7d96533e43c10d377f7a35e /include/system-constants.h | |
| parent | 6371c47999ea78d00cf98028ced210bea8337711 (diff) | |
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>
Diffstat (limited to 'include/system-constants.h')
| -rw-r--r-- | include/system-constants.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/system-constants.h b/include/system-constants.h index dca6a86b01f..59371568d1e 100644 --- a/include/system-constants.h +++ b/include/system-constants.h @@ -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 |
