X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f1ec3cf1276ff0bae1b58e6db55d48ade93c4a47..73d4408303f245cbc6a1d4f11446ba49d97e3c39:/openwrt/target/linux/rules.mk?ds=sidebyside diff --git a/openwrt/target/linux/rules.mk b/openwrt/target/linux/rules.mk index 39afadb34..606efb6d9 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/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 + +