summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger2005-11-29 02:52:25 +0000
committerMike Frysinger2005-11-29 02:52:25 +0000
commit004ad11337833e344b0aa943f214db07a888ddc3 (patch)
treeac290612dd5bfe8ed2cc2e1113de388c44510ff7 /Rules.mak
parent969af897970b493f2615a233f7c83ca86a6d488f (diff)
downloadbusybox-004ad11337833e344b0aa943f214db07a888ddc3.zip
busybox-004ad11337833e344b0aa943f214db07a888ddc3.tar.gz
ShaneAnderson writes in Bug 565:
need to include .config file before setting CROSS otherwise TARGET_ARCH isnt set properly
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak10
1 files changed, 5 insertions, 5 deletions
diff --git a/Rules.mak b/Rules.mak
index 6c44726..848ae97 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -17,6 +17,11 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+# Pull in the user's busybox configuration
+ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
+-include $(top_builddir)/.config
+endif
+
#--------------------------------------------------------
PROG := busybox
MAJOR_VERSION :=1
@@ -108,11 +113,6 @@ TARGET_ARCH:=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \
)
endif
-# Pull in the user's busybox configuration
-ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
--include $(top_builddir)/.config
-endif
-
# A nifty macro to make testing gcc features easier
check_gcc=$(shell \
if [ "$(1)" != "" ]; then \