summaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-10 15:22:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-10 15:22:53 +0000
commit6e03b9ce43ade876be30c76bc95e452f3ad500a8 (patch)
tree3093fd48ad5e30560a615671106f30370c930a97 /rules.mk
parent1423753198ca023ff0c6ce7b62b24990aa925905 (diff)
downloadmtk-20170518-6e03b9ce43ade876be30c76bc95e452f3ad500a8.zip
mtk-20170518-6e03b9ce43ade876be30c76bc95e452f3ad500a8.tar.gz
mtk-20170518-6e03b9ce43ade876be30c76bc95e452f3ad500a8.tar.bz2
add config symbols for the kernel version
SVN-Revision: 9520
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 5c66dfd..4a0fa32 100644
--- a/rules.mk
+++ b/rules.mk
@@ -138,6 +138,10 @@ $(call shvar,$(1))=$$(call $(1))
export $(call shvar,$(1))
endef
+define confvar
+$(foreach v,$(1),$(if $($(v)),y,n))
+endef
+
# file extension
ext=$(word $(words $(subst ., ,$(1))),$(subst ., ,$(1)))