瀏覽代碼

build: filter out kmod-ipt-offload from the default selection on targets that do not support it

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 7 年之前
父節點
當前提交
fd588dbf6b
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/target.mk

+ 4 - 0
include/target.mk

@@ -51,6 +51,10 @@ else
   endif
   endif
 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)
 # Add device specific packages (here below to allow device type set from subtarget)
 DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE))
 DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE))