diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-10-23 06:23:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-10-23 06:23:12 +0000 |
commit | d8e032edef2fb9d1f7aa3b1f96a444f0a1db9696 (patch) | |
tree | d77ef6e1abd4233600ab73c1fffbb55487c4bc19 /include/kernel.mk | |
parent | c1f0b1fa3fca1f08dd0f24e9f24f4f9dac78a041 (diff) | |
download | mtk-20170518-d8e032edef2fb9d1f7aa3b1f96a444f0a1db9696.zip mtk-20170518-d8e032edef2fb9d1f7aa3b1f96a444f0a1db9696.tar.gz mtk-20170518-d8e032edef2fb9d1f7aa3b1f96a444f0a1db9696.tar.bz2 |
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>
SVN-Revision: 9405
Diffstat (limited to 'include/kernel.mk')
-rw-r--r-- | include/kernel.mk | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 7486057..f9baeef 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -51,13 +51,14 @@ endif ifneq (,$(findstring uml,$(BOARD))) LINUX_KARCH:=um else - 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/' \ - ) + 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/sh[234]/sh/' \ + -e 's/armeb/arm/' \ + ) + endif endif |