diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 13:25:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 13:25:18 +0000 |
commit | 155be21be88a7924c4b554e08c7ce03d7faec547 (patch) | |
tree | 0003d1be8f14a4d769acb28058c5a0aff457fc94 /openwrt/include | |
parent | be5289bac79f269d750293832d3fe8a6a3e160a5 (diff) | |
download | mtk-20170518-155be21be88a7924c4b554e08c7ce03d7faec547.zip mtk-20170518-155be21be88a7924c4b554e08c7ce03d7faec547.tar.gz mtk-20170518-155be21be88a7924c4b554e08c7ce03d7faec547.tar.bz2 |
move certain host related variables to .host.mk generated by include/host-build.mk to speed up the build system
SVN-Revision: 5012
Diffstat (limited to 'openwrt/include')
-rw-r--r-- | openwrt/include/host-build.mk | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/openwrt/include/host-build.mk b/openwrt/include/host-build.mk index c19cb8f..5670b6f 100644 --- a/openwrt/include/host-build.mk +++ b/openwrt/include/host-build.mk @@ -4,7 +4,26 @@ # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -OS:=$(shell uname) + +include $(TOPDIR)/.host.mk + +$(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host-build.mk + echo "HOST_OS:=`uname`" > $@ + echo "HOST_ARCH:=` \ + $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \ + -e 's/sparc.*/sparc/' \ + -e 's/arm.*/arm/' \ + -e 's/m68k.*/m68k/' \ + -e 's/ppc/powerpc/' \ + -e 's/v850.*/v850/' \ + -e 's/sh[234]/sh/' \ + -e 's/mips-.*/mips/' \ + -e 's/mipsel-.*/mipsel/' \ + -e 's/cris.*/cris/' \ + -e 's/i[3-9]86/i386/'`" >> $@ + echo "GNU_HOST_NAME:=`$(HOSTCC) -dumpmachine`" >> $@ + + ifneq ($(strip $(PKG_CAT)),) ifeq ($(PKG_CAT),unzip) UNPACK=unzip -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE) |