summaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-10 15:22:53 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-10 15:22:53 +0000
commit1cf8903c6926b17c9990cb284dca3494d5a09081 (patch)
tree27d82db7aa46c639e6ed3140ca3a6c73068c8a23 /rules.mk
parent0cdad2de240968bf161a2ee44cf7da35b2f5239e (diff)
add config symbols for the kernel version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9520 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 5c66dfde1..4a0fa32e3 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)))