summaryrefslogtreecommitdiffstats
path: root/rules/pre
diff options
context:
space:
mode:
authorAlexander Dahl <ada@thorsis.com>2021-10-25 15:09:09 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2021-10-29 08:22:27 +0200
commit609370bb5cb27050bf7c90edacbc6145f2c50723 (patch)
treede567d6663f06e2dd2214c237d430e63b7f80f9f /rules/pre
parent1f4688b04f35887b7abfbde8004351f40b2b8d43 (diff)
downloadptxdist-609370bb5cb27050bf7c90edacbc6145f2c50723.tar.gz
ptxdist-609370bb5cb27050bf7c90edacbc6145f2c50723.tar.xz
Add macro 'noyes' as reverse of 'yesno'
This will be useful for some packages using scons. Signed-off-by: Alexander Dahl <ada@thorsis.com> Message-Id: <20211025130910.7257-2-ada@thorsis.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/pre')
-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 fa0e8a294..9a068b39c 100644
--- a/rules/pre/000-option-disabled.make
+++ b/rules/pre/000-option-disabled.make
@@ -146,6 +146,18 @@ $(call ptx/ifdef, $(1), yes, no)
endef
+#
+# $(call ptx/noyes, PTXCONF_SYMBOL) returns "no" or "yes"
+# depending on the symbol is defined or not
+#
+# $(call ptx/noyes, PTXCONF_SYMBOL)
+# $1
+#
+define ptx/noyes
+$(call ptx/ifdef, $(1), no, yes)
+endef
+
+
define ptx/config-foo
$(strip $(if $($(strip $(1))),
$(if $(call remove_quotes,$($(2))),