X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/25768f1c4d22195764ef1e818d25d2b14f95bb97..7c05c465eafee57623aac45cf2aed4c3423c174c:/openwrt/target/linux/rules.mk diff --git a/openwrt/target/linux/rules.mk b/openwrt/target/linux/rules.mk index 2c0fa09c5..f7e108658 100644 --- a/openwrt/target/linux/rules.mk +++ b/openwrt/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)),)