From: Rod Whitby Date: Mon, 1 Aug 2005 00:06:40 +0000 (+0000) Subject: Added native compilation setup capability X-Git-Tag: Release-2010-05/1~9453^2~2960^2^2~9^2~2^2~3^2^2~4^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c515e12bd98b5dd5868af100f917def8fbc2514b;p=openembedded.git Added native compilation setup capability --- diff --git a/Makefile b/Makefile index 9c50396e34..4f541e002b 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,12 @@ SVN_USER ?= ${USER} CVS_USER ?= ${USER} SVN_SSH ?= "-l ${SVN_USER}" +HOST_MACHINE:=$(shell uname -m | sed \ + -e 's/i[3-9]86/i386/' \ + -e 's/armv5teb/armeb/' \ + -e 's/armv5b/armeb/' \ + ) + .PHONY: all all: update build @@ -97,7 +103,11 @@ setup-unslung setup-openslug setup-ucslugc: setup-%: MT/.configured [ -e $*/conf/site.conf ] || ( cd $*/conf ; ln -s ../../common/conf/site.conf . ) [ ! -f $*/conf/auto.conf ] || ( cd $*/conf ; rm -f auto.conf ) [ -e $*/conf/auto.conf ] || ( \ - echo "DISTRO=\"$*\"" > $*/conf/auto.conf ; \ + if [ "${HOST_MACHINE}" = "armeb" ] ; then \ + echo "DISTRO=\"$*-native\"" > $*/conf/auto.conf ; \ + else \ + echo "DISTRO=\"$*\"" > $*/conf/auto.conf ; \ + fi ; \ echo "MACHINE=\"nslu2\"" >> $*/conf/auto.conf \ ) rm -rf $*/tmp/cache