summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-04-15 20:05:55 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-04-16 20:54:31 +0200
commitedd5871feb916891bda96058c168c45a0e14b0df (patch)
tree4e547c88e4de29267cb5db10c2418c35dce24a91
parent718fc32de7fe6d4fd35f9417543bcd7f1696822c (diff)
downloadptxdist-edd5871feb916891bda96058c168c45a0e14b0df.tar.gz
ptxdist-edd5871feb916891bda96058c168c45a0e14b0df.tar.xz
add macro for yes / no options
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/pre/000-option-disabled.make12
1 files changed, 12 insertions, 0 deletions
diff --git a/rules/pre/000-option-disabled.make b/rules/pre/000-option-disabled.make
index 9f679677b..420219a28 100644
--- a/rules/pre/000-option-disabled.make
+++ b/rules/pre/000-option-disabled.make
@@ -123,4 +123,16 @@ define ptx/falsetrue
$(call ptx/ifdef, $(1), false, true)
endef
+
+#
+# $(call ptx/yesno, PTXCONF_SYMBOL) returns "yes" or "no"
+# depending on the symbol is defined or not
+#
+# $(call ptx/yesno, PTXCONF_SYMBOL)
+# $1
+#
+define ptx/yesno
+$(call ptx/ifdef, $(1), yes, no)
+endef
+
# vim: syntax=make