diff options
author | John Crispin <john@openwrt.org> | 2012-08-22 15:07:32 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2012-08-22 15:07:32 +0000 |
commit | 3686b8d279c4ef5840a2001695de234ecdb313d9 (patch) | |
tree | 72f7e75cbf838791db6ae8eaad565377df6b4148 /target/toolchain | |
parent | 2811d6c1839c7860c698c26e90f40d50c14d96a5 (diff) | |
download | upstream-3686b8d279c4ef5840a2001695de234ecdb313d9.tar.gz upstream-3686b8d279c4ef5840a2001695de234ecdb313d9.tar.bz2 upstream-3686b8d279c4ef5840a2001695de234ecdb313d9.zip |
derive system from hostcc to allow building inside a chroot
SVN-Revision: 33228
Diffstat (limited to 'target/toolchain')
-rw-r--r-- | target/toolchain/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/toolchain/Makefile b/target/toolchain/Makefile index 0db18d1ac1..20f753a271 100644 --- a/target/toolchain/Makefile +++ b/target/toolchain/Makefile @@ -13,8 +13,8 @@ include $(INCLUDE_DIR)/host.mk override MAKEFLAGS= -PKG_OS:=$(shell uname -s) -PKG_CPU:=$(shell uname -m) +PKG_OS:=$(word 2,$(subst -, ,$(shell $(HOSTCC) -dumpmachine))) +PKG_CPU:=$(word 1,$(subst -, ,$(shell $(HOSTCC) -dumpmachine))) TOOLCHAIN_NAME:=OpenWrt-Toolchain-$(BOARD)-for-$(ARCH)$(ARCH_SUFFIX)-gcc-$(GCCV)$(DIR_SUFFIX) TOOLCHAIN_BUILD_DIR:=$(BUILD_DIR)/$(TOOLCHAIN_NAME) |