Skip to content

Commit

Permalink
include autoconf.mk before any other .mk files
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vapier authored and wdenx committed Feb 22, 2008
1 parent 16fe777 commit 755c35f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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; \
Expand Down

0 comments on commit 755c35f

Please sign in to comment.