From: Uladzimir Bely <ubely@ilbers.de>
To: Felix Moessbauer <felix.moessbauer@siemens.com>,
isar-users@googlegroups.com
Subject: Re: [PATCH 1/1] refactor: use to_boolean when comparing boolean vars
Date: Mon, 11 Mar 2024 15:09:42 +0300 [thread overview]
Message-ID: <3c746be1eb614f580ca68c11bd25abbae926870c.camel@ilbers.de> (raw)
In-Reply-To: <20240221093354.67929-1-felix.moessbauer@siemens.com>
On Wed, 2024-02-21 at 10:33 +0100, 'Felix Moessbauer' via isar-users
wrote:
> When comparing user-defined boolean variables (e.g. ENABLE_<FOO>),
> a comparison against the string "0" or "1" is error-prone, as the
> user
> might use other strings which also denote True / False. For that,
> bitbake offers the bb.utils.to_boolean function.
>
> This patch refactors all these patterns which are in scope of ISAR.
> The parts which are copied from OE are not touched, as well as the
> WIC
> plugins.
>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> meta-isar/recipes-app/hello/hello.bb | 2 +-
> meta/classes/base.bbclass | 6 +++-
> --
> meta/classes/compat.bbclass | 2 +-
> meta/classes/crossvars.bbclass | 4 ++--
> meta/classes/dpkg-base.bbclass | 6 +++-
> --
> meta/classes/imagetypes_container.bbclass | 2 +-
> meta/classes/imagetypes_wic.bbclass | 4 ++--
> meta/classes/multiarch.bbclass | 2 +-
> meta/classes/patch.bbclass | 4 ++--
> meta/classes/sdk.bbclass | 6 +++-
> --
> meta/conf/bitbake.conf | 2 +-
> meta/recipes-bsp/u-boot/u-boot-custom.inc | 4 ++--
> meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 6 +++-
> --
> meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb | 2 +-
> meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc | 4 ++--
> meta/recipes-kernel/kselftest/kselftest.inc | 2 +-
> meta/recipes-kernel/linux/linux-custom.inc | 2 +-
> 17 files changed, 30 insertions(+), 30 deletions(-)
Applied to next, thanks.
prev parent reply other threads:[~2024-03-11 12:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 9:33 Felix Moessbauer
2024-03-11 12:09 ` Uladzimir Bely [this message]
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=3c746be1eb614f580ca68c11bd25abbae926870c.camel@ilbers.de \
--to=ubely@ilbers.de \
--cc=felix.moessbauer@siemens.com \
--cc=isar-users@googlegroups.com \
/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