X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7e963476a984435ae3c61fa6e65d05eb6a75db90..12339648a8b6815e59e8463918b6bd05ff337d43:/target/linux/rules.mk diff --git a/target/linux/rules.mk b/target/linux/rules.mk index 39afadb34..606efb6d9 100644 --- a/target/linux/rules.mk +++ b/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/powerpc/ppc/' \ + -e 's/sh[234]/sh/' \ +) + + define KMOD_template ifeq ($$(strip $(4)),) KDEPEND_$(1):=m @@ -39,3 +46,5 @@ endif $(IPKG_BUILD) $$(I_$(1)) $(PACKAGE_DIR) endef + +