From: "Antonin Godard" <antonin.godard@bootlin.com>
To: <alex.kanavin@gmail.com>, <bitbake-devel@lists.openembedded.org>
Cc: "Alexander Kanavin" <alex@linutronix.de>
Subject: Re: [bitbake-devel] [PATCH] bitbake-setup: replace {THISDIR} token with an explicit keyword
Date: Thu, 06 Nov 2025 13:11:01 +0100 [thread overview]
Message-ID: <DE1LO4GV39WM.156UBA1PODPOV@bootlin.com> (raw)
In-Reply-To: <20251106114714.918370-1-alex.kanavin@gmail.com>
Hi,
On Thu Nov 6, 2025 at 12:47 PM CET, Alexander Kanavin via lists.openembedded.org wrote:
> From: Alexander Kanavin <alex@linutronix.de>
>
> {THISDIR} is a special value token that can be used in the list of enabled
> layers to specify the layer location relative to the confguration file:
> https://git.openembedded.org/bitbake/commit/?id=b3153be29de8b8570b0c184369bd41f4c646cf92
>
> This replaces the token with an explicit separate keyword for such layers:
> so that special processing to determine the final value can be avoided, and
> the feature can be formalized in the json schema:
>
> instead of
> "bb-layers": [
> "{THISDIR}/meta-my-project"
> ]
>
> this allows
> "bb-layers-relative-to-this-file": [
Can I suggest naming it "bb-layers-local"? "bb-layers-relative-to-this-file"
feels bit overwhelming, I think with associated documentation users will be
able to figure what "local" stands for in this case.
I can't help but wonder: why is there a need to have a separate keyword? Can't
bitbake-setup do:
for <layer> in bb-layers; do
if <layer> is not in <sources>; then
if <layer> is found next to the .conf.json; then
use this local layer
else
error
fi
else
use setup/layers/<layer>
fi
done
?
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2025-11-06 12:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-06 11:47 [PATCH] bitbake-setup: replace {THISDIR} token with an explicit keyword Alexander Kanavin
2025-11-06 12:11 ` Antonin Godard [this message]
2025-11-06 12:28 ` [bitbake-devel] " Alexander Kanavin
2025-11-06 15:15 ` Richard Purdie
2025-11-06 15:26 ` Robert P. J. Day
2025-11-06 17:09 ` Alexander Kanavin
2025-11-07 0:59 ` Peter Kjellerstedt
2025-11-07 3:32 ` Alexander Kanavin
2025-11-07 9:55 ` Richard Purdie
2025-11-07 10:14 ` Alexander Kanavin
2025-11-07 10:17 ` Richard Purdie
2025-11-07 10:20 ` Alexander Kanavin
2025-11-07 13:18 ` Richard Purdie
[not found] ` <18759C05E6F46C57.499307@lists.openembedded.org>
2025-11-07 8:07 ` Alexander Kanavin
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=DE1LO4GV39WM.156UBA1PODPOV@bootlin.com \
--to=antonin.godard@bootlin.com \
--cc=alex.kanavin@gmail.com \
--cc=alex@linutronix.de \
--cc=bitbake-devel@lists.openembedded.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.