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 $(TOPDIR)/.host.mk
10 $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk
11 echo "HOST_OS:=`uname`" > $@
13 $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
14 -e 's/sparc.*/sparc/' \
20 -e 's/mips-.*/mips/' \
21 -e 's/mipsel-.*/mipsel/' \
23 -e 's/i[3-9]86/i386/'`" >> $@
24 echo "GNU_HOST_NAME:=`$(HOSTCC) -dumpmachine`" >> $@