]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
include autoconf.mk before any other .mk files
authorMike Frysinger <vapier@gentoo.org>
Mon, 18 Feb 2008 10:24:13 +0000 (05:24 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 22 Feb 2008 11:34:27 +0000 (12:34 +0100)
This bumps the autoconf.mk include step above board/cpu/arch/etc... so that
those .mk files can have make if statements based on the current config.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
config.mk

index ee057b5c735ff11049d00820dcc98c892b9a0fde..22d3398ca4f1bd30caafcc60b8060140198068fe 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -69,6 +69,9 @@ PLATFORM_CPPFLAGS+= -D__ARM__
 endif
 endif
 
+# Load generated board configuration
+sinclude $(OBJTREE)/include/autoconf.mk
+
 ifdef  ARCH
 sinclude $(TOPDIR)/$(ARCH)_config.mk   # include architecture dependend rules
 endif
@@ -87,9 +90,6 @@ ifdef BOARD
 sinclude $(TOPDIR)/board/$(BOARDDIR)/config.mk # include board specific rules
 endif
 
-# Load generated board configuration
-sinclude $(OBJTREE)/include/autoconf.mk
-
 #########################################################################
 
 CONFIG_SHELL   := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \