X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f1ec3cf1276ff0bae1b58e6db55d48ade93c4a47..3f7e469c04ed985684006c462ff94340b224c4d4:/openwrt/target/linux/rules.mk?ds=sidebyside diff --git a/openwrt/target/linux/rules.mk b/openwrt/target/linux/rules.mk index 39afadb34..2c0fa09c5 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 @@ -36,6 +43,8 @@ ifneq ($(6),) done endif $(8) - $(IPKG_BUILD) $$(I_$(1)) $(PACKAGE_DIR) + $(IPKG_BUILD) $$(I_$(1)) $(PACKAGE_DIR) $(MAKE_TRACE) endef + +