diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-11 15:46:29 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-18 10:29:36 +0100 |
commit | e45c3116ef5a03b2e3b9e958ee2b6ec9688d9cbf (patch) | |
tree | 4ca801b9a4277f855d9b98f4c0155c55544454c5 | |
parent | 4d033e1a4233dc4bcb7f591696607c55e2449c7d (diff) | |
download | ptxdist-e45c3116ef5a03b2e3b9e958ee2b6ec9688d9cbf.tar.gz ptxdist-e45c3116ef5a03b2e3b9e958ee2b6ec9688d9cbf.tar.xz |
[option-disabled] make ptx/ifdef more robust, e.g. for empty parameters
Also, use ptx/ifdef for ptx/opt-dis
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
(cherry picked from commit 4dc5faf6829df9984fa15fa902aadd6e2433eb5b)
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/pre/000-option-disabled.make | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/pre/000-option-disabled.make b/rules/pre/000-option-disabled.make index 501424bf2..a4a31c495 100644 --- a/rules/pre/000-option-disabled.make +++ b/rules/pre/000-option-disabled.make @@ -20,7 +20,7 @@ # define ptx/opt-dis -$(firstword $(subst y,n,$(filter y,$($(strip $(1))))) y) +$(call ptx/ifdef,$(1),n,y) endef @@ -34,7 +34,7 @@ endef # $1, $2, $3 # define ptx/ifdef -$(strip $(firstword $(subst y,$(2),$(filter y,$($(strip $(1))))) $(3))) +$(strip $(if $(filter y,$($(strip $(1)))),$(2),$(3))) endef |