]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Make u-boot-x86.h a private header
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 14:22:49 +0000 (08:22 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 15:02:32 +0000 (11:02 -0400)
Rather than including this arch-specific header file in common.h, include
it from within x86's u-boot.h header.

Also drop the comment about something to be fixed. It is not clear what
needs fixing.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/include/asm/u-boot.h
include/common.h

index 623771a39a1f10133a1e7ff88006baf29bfdc422..4c4527eb38cdc45e23472c0e25b8e39b5964021a 100644 (file)
@@ -22,6 +22,7 @@
 
 /* Use the generic board which requires a unified bd_info */
 #include <asm-generic/u-boot.h>
+#include <asm/u-boot-x86.h>
 
 /* For image.h:image_check_target_arch() */
 #define IH_ARCH_DEFAULT IH_ARCH_I386
index ffaed49bdef02b36acfd5536ee60e44d3b9da004..229ca4c3976fed7939d50bf533d4fdd51b6bf92c 100644 (file)
@@ -430,8 +430,8 @@ static inline int setenv_addr(const char *varname, const void *addr)
 # include <asm/setup.h>
 # include <asm/u-boot-arm.h>   /* ARM version to be fixed! */
 #endif /* CONFIG_ARM */
-#ifdef CONFIG_X86              /* x86 version to be fixed! */
-# include <asm/u-boot-x86.h>
+#ifdef CONFIG_X86
+# include <asm/u-boot.h>
 #endif /* CONFIG_X86 */
 #ifdef CONFIG_SANDBOX
 # include <asm/u-boot.h>