Skip to contentSkip to conversation

binman_sym: guard with CONFIG_SPL_BINMAN_SYMBOLS

PATCH New Peng Fan (OSS) 1 participant 1 message May 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 binman_sym: guard with CONFIG_SPL_BINMAN_SYMBOLS

From: Peng Fan <[email protected]>

There is case that CONFIG_BINMAN is defined, but CONFIG_SPL_BINMAN_SYMBOLS is not defined. In that case, there will be build failure. So use CONFIG_SPL_BINMAN_SYMBOLS to guard the macros, and define CONFIG_SPL_BINMAN_SYMBOLS in binman syms test.

---
 include/binman_sym.h                   | 2 +-
 tools/binman/test/u_boot_binman_syms.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
include/binman_sym.h +1 -1
index aac2dad0ec5..2b440da4307 100644
@@ -13,7 +13,7 @@
 
 #define BINMAN_SYM_MISSING	(-1UL)
 
-#ifdef CONFIG_BINMAN
+#ifdef CONFIG_SPL_BINMAN_SYMBOLS
 
 /**
  * binman_symname() - Internal function to get a binman symbol name
tools/binman/test/u_boot_binman_syms.c +1 -0
index 37fc339ce84..f4a4d1f6846 100644
@@ -6,6 +6,7 @@
  */
 
 #define CONFIG_BINMAN
+#define CONFIG_SPL_BINMAN_SYMBOLS
 #include <binman_sym.h>
 
 binman_sym_declare(unsigned long, u_boot_spl_any, offset);
Signature · 1 line
2.36.0