toolchain: cpu-type fixes.

This commit is contained in:
Arne Fitzenreiter
2011-09-11 09:25:16 +02:00
parent 1092a072fe
commit 3529923589
8 changed files with 36 additions and 27 deletions

View File

@@ -40,11 +40,13 @@ ifeq "$(ROOT)" ""
EXTRA_INSTALL =
else
TARGET = $(DIR_INFO)/$(THISAPP)-tools
EXTRA_CONFIG = --prefix=/tools --disable-nls --host=$(MACHINE)
EXTRA_CONFIG = --prefix=/tools --disable-nls
EXTRA_MAKE =
EXTRA_INSTALL =
endif
EXTRA_CONFIG += --build=$(BUILDTARGET)
###############################################################################
# Top-level Rules
###############################################################################
@@ -113,8 +115,8 @@ else
rm /tools/bin/hostname
mv -f /tools/bin/uname /tools/bin/uname.bak
echo '#!/bin/bash' > /tools/bin/uname
echo 'kernel=`/tools/uname.bak -r`' >> /bin/uname
echo '/tools/uname.bak $$* | sed 's/i.86/$(MACHINE)/g' | sed "s/$$kernel/2.6.32.45-ipfire/g"' >> /bin/uname
echo 'kernel=`/tools/bin/uname.bak -r`' >> /tools/bin/uname
echo '/tools/bin/uname.bak $$* | sed 's/i.86/$(MACHINE)/g' | sed "s/$$kernel/2.6.32.45-ipfire/g"' >> /tools/bin/uname
chmod 755 /tools/bin/uname
endif
@rm -rf $(DIR_APP)