2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TMP_DIR
)/.host.mk
12 ifneq ($(__host_inc
),1)
14 $(TMP_DIR
)/.host.mk
: $(TOPDIR
)/include/host.mk
19 Linux
) HOST_ARCH
=`uname -m`;; \
20 *) HOST_ARCH
=`uname -p`;; \
22 GNU_HOST_NAME
=`gcc -dumpmachine`; \
23 [ -n
"$$GNU_HOST_NAME" ] || \
24 GNU_HOST_NAME
=`$(SCRIPT_DIR)/config.guess`; \
25 echo
"HOST_OS:=$$HOST_OS" > $@
; \
26 echo
"HOST_ARCH:=$$HOST_ARCH" >> $@
; \
27 echo
"GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@
; \
28 TAR
=`which gtar 2>/dev/null`; \
29 [ -n
"$$TAR" -a
-x
"$$TAR" ] || TAR
=`which tar 2>/dev/null`; \
30 echo
"TAR:=$$TAR" >> $@
; \
31 echo
"BASH:=$(shell which bash)" >> $@
; \
36 ifeq ($(HOST_OS
),Linux
)
This page took 0.053784 seconds and 5 git commands to generate.