From: "Enrico Jörns" <ejo@pengutronix.de>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: openembedded-core@lists.openembedded.org, yocto@pengutronix.de
Subject: Re: [OE-core] [PATCH v5 1/7] barebox: add initial support
Date: Wed, 11 Sep 2024 13:16:43 +0200 [thread overview]
Message-ID: <2ff3be0dce3a39f59ba7d0dc2dc78fc43a54bcee.camel@pengutronix.de> (raw)
In-Reply-To: <CANNYZj92yih_U+qQ=Ow8sOV6BZ2vWZFXmwajzT6e=bHe=ej6gQ@mail.gmail.com>
Am Mittwoch, dem 11.09.2024 um 12:15 +0200 schrieb Alexander Kanavin:
> On Tue, 10 Sept 2024 at 20:42, Enrico Jörns via lists.openembedded.org
> <ejo=pengutronix.de@lists.openembedded.org> wrote:
>
> > --- /dev/null
> > +++ b/meta/recipes-bsp/barebox/barebox_2024.08.0.bb
> > @@ -0,0 +1,3 @@
> > +require barebox.inc
> > +
> > +SRC_URI[sha256sum] = "b08a762da8d63dd18b4f2d9f5d0a8da001b6e608d1b3eff6dcebc6a2e575d535"
>
> The checksum should be in barebox-common.inc, so it's not repeated in
> barebox-tools.
I kept it in the version-specific .bb file since this is the only information that would necessarily
change when bumping the PV.
> Is there a reason to set S and B explicitly? They look like defaults to me.
S is the default actually (${BPN}-${PV}). I can omit that.
B defaults to S in bitbake.conf and is only changed by build tool-specific classes.
> Also, is there a need to keep barebox.inc separate? Why not merge that
> into barebox.bb?
Personally, I find it easier to diff recipes when they don't move with every version bump.
Splitting .inc and .bb up is one way to achieve this.
I see a notable number of recipes having a .inc that is required by only a single .bb.
Is there any generic rule when to (not) use a .inc file?
For barebox specifically, it makes the creation of recipes for a custom barebox easier since one can
decide to either .bbappend the existing recipe or just create a new .bb and only require the .inc.
Regards, Enrico
> Alex
>
--
Pengutronix e.K. | Enrico Jörns |
Embedded Linux Consulting & Support | https://www.pengutronix.de/ |
Steuerwalder Str. 21 | Phone: +49-5121-206917-180 |
31137 Hildesheim, Germany | Fax: +49-5121-206917-9 |
next prev parent reply other threads:[~2024-09-11 11:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-10 18:41 [PATCH v5 0/7] Add barebox bootloader support (and testing) Enrico Jörns
2024-09-10 18:41 ` [PATCH v5 1/7] barebox: add initial support Enrico Jörns
2024-09-11 10:15 ` [OE-core] " Alexander Kanavin
2024-09-11 11:16 ` Enrico Jörns [this message]
2024-09-11 11:27 ` [yocto] " Enrico Jörns
2024-09-11 12:10 ` Alexander Kanavin
2024-09-11 12:27 ` Enrico Jörns
2024-09-11 14:20 ` Alexander Kanavin
2024-09-12 9:26 ` Enrico Jörns
2024-09-10 18:41 ` [PATCH v5 2/7] barebox-tools: add initial barebox tools support Enrico Jörns
2024-09-10 18:41 ` [PATCH v5 3/7] barebox: set default BAREBOX_CONFIG for qemu machines Enrico Jörns
2024-09-10 18:41 ` [PATCH v5 4/7] oeqa/utils/qemurunner: support ignoring vt100 escape sequences Enrico Jörns
2024-09-10 18:41 ` [PATCH v5 5/7] oeqa: support passing custom boot patterns to runqemu Enrico Jörns
2024-09-10 18:41 ` [PATCH v5 6/7] oeqa/selftest/cases: add basic u-boot test Enrico Jörns
2024-09-10 18:41 ` [PATCH v5 7/7] oeqa/selftest/cases: add basic barebox tests Enrico Jörns
[not found] ` <17F3F6252B938560.10184@lists.openembedded.org>
2024-09-11 9:42 ` [OE-core] [PATCH v5 1/7] barebox: add initial support Enrico Jörns
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=2ff3be0dce3a39f59ba7d0dc2dc78fc43a54bcee.camel@pengutronix.de \
--to=ejo@pengutronix.de \
--cc=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=yocto@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