mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
toolchain: cpu-type fixes.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user