From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 05 Nov 2021 08:56:19 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1miu5D-000888-0n for lore@lore.pengutronix.de; Fri, 05 Nov 2021 08:56:19 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1miu5C-0003sq-1J; Fri, 05 Nov 2021 08:56:18 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1miu4M-0003Hg-Lt; Fri, 05 Nov 2021 08:55:26 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1miu4M-0006i8-2R; Fri, 05 Nov 2021 08:55:26 +0100 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1miu4L-00D3ZC-RR; Fri, 05 Nov 2021 08:55:25 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 5 Nov 2021 08:55:25 +0100 Message-Id: <20211105075525.3110998-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211025130910.7257-2-ada@thorsis.com> References: <20211025130910.7257-2-ada@thorsis.com> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] Add macro 'noyes' as reverse of 'yesno' X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 609370bb5cb27050bf7c90edacbc6145f2c50723. Michael [sent from post-receive hook] On Fri, 05 Nov 2021 08:55:25 +0100, Alexander Dahl wrote: > This will be useful for some packages using scons. > > Signed-off-by: Alexander Dahl > Message-Id: <20211025130910.7257-2-ada@thorsis.com> > Signed-off-by: Michael Olbrich > > diff --git a/doc/ref_make_macros.rst b/doc/ref_make_macros.rst > index ae65cb9408cf..730687daf47e 100644 > --- a/doc/ref_make_macros.rst > +++ b/doc/ref_make_macros.rst > @@ -673,6 +673,7 @@ Usage: > $(call ptx/wow, VARIABLE) > $(call ptx/wwo, VARIABLE) > $(call ptx/yesno, VARIABLE) > + $(call ptx/noyes, VARIABLE) > $(call ptx/truefalse, VARIABLE) > $(call ptx/falsetrue, VARIABLE) > $(call ptx/onoff, VARIABLE) > @@ -694,6 +695,8 @@ These are useful for ``_CONF_OPT`` variables, and expand as follows: > +--------------------+-------------------------------+---------------------------------+---------------------+ > | ptx/yesno | ``yes`` | ``no`` | autoconf cache vars | > +--------------------+-------------------------------+---------------------------------+---------------------+ > +| ptx/noyes | ``no`` | ``yes`` | scons | > ++--------------------+-------------------------------+---------------------------------+---------------------+ > | ptx/truefalse | ``true`` | ``false`` | meson | > +--------------------+-------------------------------+---------------------------------+---------------------+ > | ptx/falsetrue | ``false`` | ``true`` | meson | > diff --git a/rules/pre/000-option-disabled.make b/rules/pre/000-option-disabled.make > index fa0e8a294421..9a068b39ce83 100644 > --- a/rules/pre/000-option-disabled.make > +++ b/rules/pre/000-option-disabled.make > @@ -146,6 +146,18 @@ $(call ptx/ifdef, $(1), yes, no) > endef > > > +# > +# $(call ptx/noyes, PTXCONF_SYMBOL) returns "no" or "yes" > +# depending on the symbol is defined or not > +# > +# $(call ptx/noyes, PTXCONF_SYMBOL) > +# $1 > +# > +define ptx/noyes > +$(call ptx/ifdef, $(1), no, yes) > +endef > + > + > define ptx/config-foo > $(strip $(if $($(strip $(1))), > $(if $(call remove_quotes,$($(2))), _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de