1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-01 11:29:48 +03:00

don't replace powerpc arch with ppc

'powerpc' is a valid arch for the LINUX_KARCH variable, but the build
system unconditionally replaces LIUNUX_KARCH=powerpc with
LINUX_KARCH=ppc.

This change only does the replacement if LINUX_KARCH isn't set. This
allows us to use the powerpc architecture.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9405 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-10-23 06:23:12 +00:00
parent 76b405fc14
commit 42ef307c66
3 changed files with 10 additions and 7 deletions

View File

@ -51,14 +51,15 @@ endif
ifneq (,$(findstring uml,$(BOARD)))
LINUX_KARCH:=um
else
ifeq (,$(LINUX_KARCH))
LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \
-e 's/mipsel/mips/' \
-e 's/mipseb/mips/' \
-e 's/powerpc/ppc/' \
-e 's/sh[234]/sh/' \
-e 's/armeb/arm/' \
)
endif
endif
define KernelPackage/Defaults

View File

@ -12,6 +12,7 @@ BOARDNAME:=AMCC Taishan
FEATURES:=jffs2
LINUX_VERSION:=2.6.21.5
LINUX_KARCH:=ppc
include $(INCLUDE_DIR)/target.mk

View File

@ -12,6 +12,7 @@ BOARDNAME:=Magicbox
FEATURES:=squashfs jffs2
LINUX_VERSION:=2.6.22.4
LINUX_KARCH:=ppc
include $(INCLUDE_DIR)/target.mk