Commit 96044745cb8c086d47215f4aa7b4defb1d1fec57
Committed by
Tom Rini
1 parent
5847084f6b
Exists in
v2017.01-smarct4x
and in
25 other branches
env: avoid build error for boards without CONFIG_SYS_{CPU, BOARD}
If CONFIG_ENV_VARS_UBOOT_CONFIG is enabled (it is by distro), this code causes build error for boards without CONFIG_SYS_{CPU,_BOARD}. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
include/env_default.h
... | ... | @@ -90,9 +90,13 @@ |
90 | 90 | #endif |
91 | 91 | #ifdef CONFIG_ENV_VARS_UBOOT_CONFIG |
92 | 92 | "arch=" CONFIG_SYS_ARCH "\0" |
93 | +#ifdef CONFIG_SYS_CPU | |
93 | 94 | "cpu=" CONFIG_SYS_CPU "\0" |
95 | +#endif | |
96 | +#ifdef CONFIG_SYS_BOARD | |
94 | 97 | "board=" CONFIG_SYS_BOARD "\0" |
95 | 98 | "board_name=" CONFIG_SYS_BOARD "\0" |
99 | +#endif | |
96 | 100 | #ifdef CONFIG_SYS_VENDOR |
97 | 101 | "vendor=" CONFIG_SYS_VENDOR "\0" |
98 | 102 | #endif |