some kernel module cleanup
[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 $(TOPDIR)/.host.mk
9
10 export TAR
11
12 $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk
13 @( \
14 HOST_OS=`uname`; \
15 case "$$HOST_OS" in \
16 Linux) HOST_ARCH=`uname -m`;; \
17 *) HOST_ARCH=`uname -p`;; \
18 esac; \
19 GNU_HOST_NAME=`gcc -dumpmachine`; \
20 [ -n "$$GNU_HOST_NAME" ] || \
21 GNU_HOST_NAME=`$(SCRIPT_DIR)/config.guess`; \
22 echo "HOST_OS:=$$HOST_OS" > $@; \
23 echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
24 echo "GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@; \
25 TAR=`which gtar`; \
26 [ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar`; \
27 echo "TAR:=$$TAR" >> $@; \
28 ZCAT=`which gzcat`; \
29 [ -n "$$ZCAT" -a -x "$$ZCAT" ] || ZCAT=`which zcat`; \
30 echo "ZCAT:=$$ZCAT" >> $@; \
31 )
32
This page took 0.044511 seconds and 5 git commands to generate.