aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-03 15:28:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-03 15:28:57 +0000
commit015dff9d7d2ad01f3cb1599335d77bc4b84d3ec5 (patch)
tree7cd3fbb5125f5deb357e6878ef6d32b20082b2be /include/kernel.mk
parent88f6e9f9fde6947ba556bf821869a159a2b98f69 (diff)
downloadupstream-015dff9d7d2ad01f3cb1599335d77bc4b84d3ec5.tar.gz
upstream-015dff9d7d2ad01f3cb1599335d77bc4b84d3ec5.tar.bz2
upstream-015dff9d7d2ad01f3cb1599335d77bc4b84d3ec5.zip
get rid of one more $(shell) instance
SVN-Revision: 14741
Diffstat (limited to 'include/kernel.mk')
-rw-r--r--include/kernel.mk7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 5d5c9e9172..8b98369b4b 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