summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-03 15:28:57 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-03 15:28:57 +0000
commit4473839bf8e3774184edfef8db1cee56164bd108 (patch)
tree11c03349de582f166655c33cf1d80b0380aaef55 /include
parentf297cbb2d1e739b1c783c1328536301a7534c3cb (diff)
get rid of one more $(shell) instance
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14741 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/kernel.mk7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 5d5c9e917..8b98369b4 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -53,12 +53,7 @@ ifneq (,$(findstring uml,$(BOARD)))
LINUX_KARCH=um
else
ifeq (,$(LINUX_KARCH))
- LINUX_KARCH=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/x86/' \
- -e 's/mipsel/mips/' \
- -e 's/mipseb/mips/' \
- -e 's/sh[234]/sh/' \
- -e 's/armeb/arm/' \
- )
+ LINUX_KARCH=$(strip $(subst i386,x86,$(subst armeb,arm,$(subst mipsel,mips,$(subst sh2,sh,$(subst sh3,sh,$(subst sh4,sh,$(ARCH))))))))
endif
endif