From f3f28d6a4b21daee4285e3a728c9663c38fee9cb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 11 Jan 2006 20:25:55 +0000 Subject: [PATCH] set LINUX_KARCH in target/linux/rules.mk SVN-Revision: 2922 --- openwrt/target/linux/rules.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openwrt/target/linux/rules.mk b/openwrt/target/linux/rules.mk index ec906fe186..5ba43deea0 100644 --- a/openwrt/target/linux/rules.mk +++ b/openwrt/target/linux/rules.mk @@ -1,3 +1,10 @@ +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/' \ +) + define KMOD_template ifeq ($$(strip $(4)),) KDEPEND_$(1):=m -- 2.30.2