mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/2] bash: use ptx/ifdef and ptx/wwo macros
@ 2019-02-25 14:19 Bastian Krause
  2019-02-25 14:19 ` [ptxdist] [PATCH 2/2] bash: select termcap as alternative for curses Bastian Krause
  0 siblings, 1 reply; 2+ messages in thread
From: Bastian Krause @ 2019-02-25 14:19 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Krause

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 rules/bash.make | 16 +++++-----------
 1 file 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
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-25 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-25 14:19 [ptxdist] [PATCH 1/2] bash: use ptx/ifdef and ptx/wwo macros Bastian Krause
2019-02-25 14:19 ` [ptxdist] [PATCH 2/2] bash: select termcap as alternative for curses Bastian Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox