From: Mike Frysinger <vapier@gentoo.org>
Date: Mon, 18 Feb 2008 10:24:13 +0000 (-0500)
Subject: include autoconf.mk before any other .mk files
X-Git-Tag: v2025.01-rc5-pxa1908~22508
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/git-logo.png?a=commitdiff_plain;h=755c35f54ba7eb7687aa7935e04a02a01ef1b27b;p=u-boot.git

include autoconf.mk before any other .mk files

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>
---

diff --git a/config.mk b/config.mk
index ee057b5c73..22d3398ca4 100644
--- 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; \