diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-05-28 13:30:53 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-05-28 13:30:53 +0000 |
commit | 64b2dd2c8d9362c0a90ea0c4fa4f1e458829b336 (patch) | |
tree | 72646b27f411d1c391a5a35ad35b42777e4ef2d3 | |
parent | f3e0f0bd0d48083bcd9b681d6420c810b3a11904 (diff) | |
download | ptxdist-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.make | 11 |
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 |