[U-Boot] [PATCH 19/38] nds32: Make u-boot-nds32.h a private header

Simon Glass sjg at chromium.org
Wed May 17 14:22:52 UTC 2017


Rather than including this arch-specific header file in common.h, include
it from within nds32's u-boot.h header.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/nds32/include/asm/u-boot.h | 2 ++
 include/common.h                | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/nds32/include/asm/u-boot.h b/arch/nds32/include/asm/u-boot.h
index 2efdeb1243..4378ebf44b 100644
--- a/arch/nds32/include/asm/u-boot.h
+++ b/arch/nds32/include/asm/u-boot.h
@@ -20,6 +20,8 @@
 #ifndef _U_BOOT_H_
 #define _U_BOOT_H_	1
 
+#include <asm/u-boot-nds32.h>
+
 #include <environment.h>
 
 typedef struct bd_info {
diff --git a/include/common.h b/include/common.h
index f36fed3843..c1e634045f 100644
--- a/include/common.h
+++ b/include/common.h
@@ -439,7 +439,7 @@ static inline int setenv_addr(const char *varname, const void *addr)
 #ifdef CONFIG_NDS32
 # include <asm/mach-types.h>
 # include <asm/setup.h>
-# include <asm/u-boot-nds32.h>
+# include <asm/u-boot.h>
 #endif /* CONFIG_NDS32 */
 #ifdef CONFIG_MIPS
 # include <asm/u-boot.h>
-- 
2.13.0.303.g4ebf302169-goog



More information about the U-Boot mailing list