aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/rules.mk')
-rw-r--r--target/linux/rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/rules.mk b/target/linux/rules.mk
index 2c0fa09c5d..f7e108658c 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)),)