X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=include%2Fkernel.mk;h=20377af3cf80fd2851d76a04390013db548caadd;hp=5d5c9e9172b2f0ab39a6e11150e9b984bef31cdc;hb=9ecec14ce0e40ef50e83dc48a44a3fd9e6fe9049;hpb=431c9267b4016b7e712a0edf1e594bd71ac850b4 diff --git a/include/kernel.mk b/include/kernel.mk index 5d5c9e9172..20377af3cf 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 mips64,mips,$(subst mips64el,mips,$(subst sh2,sh,$(subst sh3,sh,$(subst sh4,sh,$(ARCH)))))))))) endif endif