summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Krause <bst@pengutronix.de>2019-02-25 15:19:19 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-02-26 09:13:26 +0100
commitaf316c2afb7467d784d603c0a6ace4352473abd3 (patch)
tree8e54b5a68d62dc33db96b540e8513e24a94e1f06
parentb75c569572f52a1be5227e44dd0d14f9526bba0f (diff)
downloadptxdist-af316c2afb7467d784d603c0a6ace4352473abd3.tar.gz
ptxdist-af316c2afb7467d784d603c0a6ace4352473abd3.tar.xz
bash: use ptx/ifdef and ptx/wwo macros
Signed-off-by: Bastian Krause <bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/bash.make16
1 files changed, 5 insertions, 11 deletions
diff --git a/rules/bash.make b/rules/bash.make
index 2a862be13..4abce8323 100644
--- a/rules/bash.make
+++ b/rules/bash.make
@@ -30,8 +30,9 @@ BASH_LICENSE := GPL-3.0-only
# ----------------------------------------------------------------------------
BASH_PATH := PATH=$(CROSS_PATH)
-BASH_ENV := $(CROSS_ENV)
-
+BASH_ENV := \
+ $(CROSS_ENV) \
+ bash_cv_job_control_missing=$(call ptx/ifdef, PTXCONF_BASH_JOBS, present, missing)
BASH_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
@@ -71,15 +72,8 @@ BASH_AUTOCONF := \
--$(call ptx/endis, PTXCONF_BASH_SEP_HELPFILES)-separate-helpfiles \
--$(call ptx/endis, PTXCONF_BASH_SINGLE_HELPLINE)-single-help-strings \
--$(call ptx/endis, PTXCONF_BASH_GPROF)-profiling \
- --$(call ptx/endis, PTXCONF_BASH_STATIC)-static-link
-
-ifdef PTXCONF_BASH_CURSES
-BASH_AUTOCONF += --with-curses
-endif
-
-ifdef PTXCONF_BASH_JOBS
-BASH_ENV += bash_cv_job_control_missing=present
-endif
+ --$(call ptx/endis, PTXCONF_BASH_STATIC)-static-link \
+ --$(call ptx/wwo, PTXCONF_BASH_CURSES)-curses
# ----------------------------------------------------------------------------
# Target-Install