fix typo
[openwrt.git] / include / host.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TMP_DIR)/.host.mk
9
10 export TAR
11
12 ifneq ($(__host_inc),1)
13 __host_inc:=1
14 $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
15 @mkdir -p $(TMP_DIR)
16 @( \
17 HOST_OS=`uname`; \
18 case "$$HOST_OS" in \
19 Linux) HOST_ARCH=`uname -m`;; \
20 *) HOST_ARCH=`uname -p`;; \
21 esac; \
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)" >> $@; \
32 )
33
34 endif
35
36 ifeq ($(HOST_OS),Linux)
37 XARGS:=xargs -r
38 else
39 XARGS:=xargs
40 endif
This page took 0.049758 seconds and 5 git commands to generate.