summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-06-15 14:34:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-06-15 14:34:00 +0000
commit8b41afa584e513ec64156fc15058a0f6888d6b56 (patch)
tree00867541f67950294de51dec17a238b29c886360 /toolchain
parentf2e997ac3836cfcbb68b708adf3db90524425f87 (diff)
downloadmtk-20170518-8b41afa584e513ec64156fc15058a0f6888d6b56.zip
mtk-20170518-8b41afa584e513ec64156fc15058a0f6888d6b56.tar.gz
mtk-20170518-8b41afa584e513ec64156fc15058a0f6888d6b56.tar.bz2
add some sanity checking
SVN-Revision: 11473
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
index cbc726e..4afcc43 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -23,7 +23,8 @@ ifeq ($(CONFIG_NATIVE_TOOLCHAIN),)
$(curdir)/uClibc/install:=$(curdir)/gcc/install
endif
-$(TOOLCHAIN_DIR)/info.mk: .config
+ifneq ($(ARCH),)
+ $(TOOLCHAIN_DIR)/info.mk: .config
@for dir in $(TOOLCHAIN_DIR); do ( \
set -x; \
mkdir -p "$$dir"; \
@@ -32,6 +33,7 @@ $(TOOLCHAIN_DIR)/info.mk: .config
); done
@grep GCC_VERSION $@ >/dev/null 2>&1 || $(INSTALL_DATA) $(TOPDIR)/toolchain/info.mk $@
@touch $@
+endif
# prerequisites for the individual targets
$(curdir)/ := .config prereq