summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-05-28 13:30:53 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-05-28 13:30:53 +0000
commit64b2dd2c8d9362c0a90ea0c4fa4f1e458829b336 (patch)
tree72646b27f411d1c391a5a35ad35b42777e4ef2d3
parentf3e0f0bd0d48083bcd9b681d6420c810b3a11904 (diff)
downloadptxdist-64b2dd2c8d9362c0a90ea0c4fa4f1e458829b336.tar.gz
ptxdist-64b2dd2c8d9362c0a90ea0c4fa4f1e458829b336.tar.xz
[option-disabled] add with without helper function
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10598 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r--rules/pre/01-option-disabled.make11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/pre/01-option-disabled.make b/rules/pre/01-option-disabled.make
index 119af53a..e9665921 100644
--- a/rules/pre/01-option-disabled.make
+++ b/rules/pre/01-option-disabled.make
@@ -42,4 +42,15 @@ define ptx/endis
$(call ptx/ifdef, $(1), enable, disable)
endef
+#
+# $(call ptx/wwo, PTXCONF_SYMBOL) returns "with" or "without"
+# depending on the symbol is defined or not
+#
+# $(call ptx/wwo, PTXCONF_SYMBOL)
+# $1
+#
+define ptx/wwo
+$(call ptx/ifdef, $(1), with, without)
+endef
+
# vim: syntax=make