X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/aba665700f991d8a256729415eb28c1d32f80798..06ae601c3af0502494e2120e8f2dd00e264e2499:/target/linux/rules.mk diff --git a/target/linux/rules.mk b/target/linux/rules.mk index 606efb6d9..f7e108658 100644 --- a/target/linux/rules.mk +++ b/target/linux/rules.mk @@ -4,6 +4,11 @@ LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \ -e 's/sh[234]/sh/' \ ) +ifeq ($(KERNEL),2.6) +LINUX_KMOD_SUFFIX=ko +else +LINUX_KMOD_SUFFIX=o +endif define KMOD_template ifeq ($$(strip $(4)),) @@ -43,7 +48,7 @@ ifneq ($(6),) done endif $(8) - $(IPKG_BUILD) $$(I_$(1)) $(PACKAGE_DIR) + $(IPKG_BUILD) $$(I_$(1)) $(PACKAGE_DIR) $(MAKE_TRACE) endef