From 8bb455f9466fe0727d440f39308414fe43242ca0 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sun, 8 Apr 2018 17:41:45 +0800 Subject: [PATCH] include kmod-ipt-offload in kernel 4.14 target --- include/target.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/target.mk b/include/target.mk index cefb19b24..810b02fb8 100644 --- a/include/target.mk +++ b/include/target.mk @@ -21,7 +21,7 @@ luci-app-pptp-server luci-app-ipsec-vpnd luci-app-vlmcsd luci-app-wifischedule l # For nas targets DEFAULT_PACKAGES.nas:=block-mount fdisk lsblk mdadm # For router targets -DEFAULT_PACKAGES.router:=dnsmasq-full iptables ip6tables ppp ppp-mod-pppoe firewall +DEFAULT_PACKAGES.router:=dnsmasq-full iptables ip6tables ppp ppp-mod-pppoe firewall kmod-ipt-offload DEFAULT_PACKAGES.bootloader:= ifneq ($(DUMP),) @@ -55,6 +55,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))