mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bastian Krause <bst@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bastian Krause <bst@pengutronix.de>
Subject: [ptxdist] [PATCH 1/2] bash: use ptx/ifdef and ptx/wwo macros
Date: Mon, 25 Feb 2019 15:19:19 +0100	[thread overview]
Message-ID: <20190225141920.2142-1-bst@pengutronix.de> (raw)

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

             reply	other threads:[~2019-02-25 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-25 14:19 Bastian Krause [this message]
2019-02-25 14:19 ` [ptxdist] [PATCH 2/2] bash: select termcap as alternative for curses Bastian Krause

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190225141920.2142-1-bst@pengutronix.de \
    --to=bst@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox