mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 05:34:36 +02:00
[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
This commit is contained in:
parent
e56ca07f84
commit
951215d747
@ -12,8 +12,8 @@ include $(INCLUDE_DIR)/version.mk
|
||||
|
||||
override MAKEFLAGS=
|
||||
|
||||
PKG_OS:=$(shell uname -s)
|
||||
PKG_CPU:=$(shell uname -m | sed "s/ //g")
|
||||
PKG_OS:=$(word 2,$(subst -, ,$(shell $(HOSTCC) -dumpmachine)))
|
||||
PKG_CPU:=$(word 1,$(subst -, ,$(shell $(HOSTCC) -dumpmachine)))
|
||||
|
||||
IB_NAME:=OpenWrt-ImageBuilder-$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET))-for-$(PKG_OS)-$(PKG_CPU)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(IB_NAME)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user