$(call KCONFIG_ENABLE_OPT,CONFIG_NET))
$(if $(BR2_PACKAGE_LINUX_TOOLS_PERF),
$(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS))
- $(if $(BR2_PACKAGE_XTABLES_ADDONS),
- $(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_ADVANCED)
- $(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK)
- $(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK)
- $(call KCONFIG_ENABLE_OPT,CONFIG_NF_NAT))
$(if $(BR2_PACKAGE_WIREGUARD_LINUX_COMPAT),
$(call KCONFIG_ENABLE_OPT,CONFIG_INET)
$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) DESTDIR="$(TARGET_DIR)" install
endef
+define XTABLES_ADDONS_LINUX_CONFIG_FIXUPS
+ $(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_ADVANCED)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_NF_NAT)
+endef
+
$(eval $(autotools-package))