From 951215d74799ef2f4c28f70433008ae0b69822c1 Mon Sep 17 00:00:00 2001 From: blogic Date: Wed, 22 Aug 2012 15:07:32 +0000 Subject: [target] derive system from hostcc to allow building inside a chroot git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33228 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/sdk/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/sdk') diff --git a/target/sdk/Makefile b/target/sdk/Makefile index 99177984e..51bf47b42 100644 --- a/target/sdk/Makefile +++ b/target/sdk/Makefile @@ -11,8 +11,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))) SDK_NAME:=OpenWrt-SDK-$(BOARD)-for-$(PKG_OS)-$(PKG_CPU)-gcc-$(GCCV)_$(LIBC)-$(LIBCV) SDK_BUILD_DIR:=$(BUILD_DIR)/$(SDK_NAME) -- cgit v1.2.3