aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-03-29 16:12:43 +0200
committerFelix Fietkau <nbd@nbd.name>2018-03-30 00:34:25 -0700
commitfd588dbf6becc9be2fb34f132f132b3e9a985bfb (patch)
tree7dc6eb98f5bf3230e33a5d4cad7010ad7e24a706
parent605b6a0993ce19612098beba6dd443501a4badd1 (diff)
downloadupstream-fd588dbf6becc9be2fb34f132f132b3e9a985bfb.tar.gz
upstream-fd588dbf6becc9be2fb34f132f132b3e9a985bfb.tar.bz2
upstream-fd588dbf6becc9be2fb34f132f132b3e9a985bfb.zip
build: filter out kmod-ipt-offload from the default selection on targets that do not support it
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--include/target.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/target.mk b/include/target.mk
index d4950e5b2b..8d5ae1e1d3 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -51,6 +51,10 @@ else
endif
endif
+ifneq ($(filter 3.18 4.4 4.9,$(KERNEL_PATCHVER)),)
+ DEFAULT_PACKAGES.router:=$(filter-out kmod-ipt-offload,$(DEFAULT_PACKAGES.router))
+endif
+
# Add device specific packages (here below to allow device type set from subtarget)
DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE))