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