summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2007-09-16 16:10:37 +0000
committerNicolas Thill <nico@openwrt.org>2007-09-16 16:10:37 +0000
commit892b16a352cfeb53d54e315ec4872fe7a78c1fac (patch)
tree60dce09515a5a4d19605ab2679fd0339885ec0c7 /include
parentf34b4c6e578da2315c490cfbe053fa99c22f922e (diff)
downloadmtk-20170518-892b16a352cfeb53d54e315ec4872fe7a78c1fac.zip
mtk-20170518-892b16a352cfeb53d54e315ec4872fe7a78c1fac.tar.gz
mtk-20170518-892b16a352cfeb53d54e315ec4872fe7a78c1fac.tar.bz2
revert CONFIG_* symbols set m enforcement introduced in [8591], it can't work when symbols from different kernel versions are mixed in KCONFIG
SVN-Revision: 8798
Diffstat (limited to 'include')
-rw-r--r--include/kernel.mk3
-rw-r--r--include/netfilter.mk4
2 files changed, 2 insertions, 5 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 788e3f2..7486057 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -115,8 +115,7 @@ $(call KernelPackage/$(1)/description)
endef
endif
- # check that all CONFIG_* symbols in $(KCONFIG) are set to 'm'
- ifeq ($(filter-out m,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$(if $($(c)),$($(c)),n))),)
+ ifneq ($(if $(KCONFIG),$(filter m,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),.),)
ifneq ($(strip $(FILES)),)
define Package/kmod-$(1)/install
mkdir -p $$(1)/lib/modules/$(LINUX_VERSION)
diff --git a/include/netfilter.mk b/include/netfilter.mk
index 6f77f96..35efc03 100644
--- a/include/netfilter.mk
+++ b/include/netfilter.mk
@@ -16,9 +16,7 @@ endif
define nf_add
$(1)-$$($(2)) += $(3)
- ifeq ($$($(2)),m)
- KCONFIG_$(1) += $(2)
- endif
+ KCONFIG_$(1) += $(2)
endef
IPT_CONNTRACK-m :=