summaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-17 14:14:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-17 14:14:16 +0000
commit4235aee8c25e5725d40fdd1a2b22f1807bda26bd (patch)
tree0dd72777d1961660a008abfd75ccf04914d43a4f /rules.mk
parent992e1f5e0476b90b6371de3413f493ee03ecdb29 (diff)
downloadmtk-20170518-4235aee8c25e5725d40fdd1a2b22f1807bda26bd.zip
mtk-20170518-4235aee8c25e5725d40fdd1a2b22f1807bda26bd.tar.gz
mtk-20170518-4235aee8c25e5725d40fdd1a2b22f1807bda26bd.tar.bz2
fix hostapd rebuild check, isolate the common src/ directory for hostapd variants as well to fix compile errors when both variants are selected (#2722)
SVN-Revision: 9575
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk10
1 files changed, 4 insertions, 6 deletions
diff --git a/rules.mk b/rules.mk
index 14ff5ac..d36c994 100644
--- a/rules.mk
+++ b/rules.mk
@@ -138,12 +138,10 @@ $(call shvar,$(1))=$$(call $(1))
export $(call shvar,$(1))
endef
-define confvar
-$(1):=$$(strip $$($(1)))_
-$(foreach v,$(2),
- $(1):=$$(strip $$($(1)))$(if $($(v)),y,n)
-)
-endef
+empty:=
+space:= $(empty) $(empty)
+merge=$(subst $(space),,$(1))
+confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n)))
# file extension
ext=$(word $(words $(subst ., ,$(1))),$(subst ., ,$(1)))