Yocto Project Documentation
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Quentin Schulz <quentin.schulz@cherry.de>
Cc: YP docs mailing list <docs@lists.yoctoproject.org>
Subject: Re: [docs] BB manual needs to refer to additional "classes-recipe" and "classes-global" dirs?
Date: Sun, 8 Jun 2025 08:35:51 -0400 (EDT)	[thread overview]
Message-ID: <e8c5fbbf-2f02-e166-8d1f-6ad659b0cc20@crashcourse.ca> (raw)
In-Reply-To: <1b626abd-3ce1-48cc-b9e5-7ba03aec0762@cherry.de>

On Tue, 3 Jun 2025, Quentin Schulz wrote:

> Hi Robert,
>
> On 6/3/25 1:08 PM, Robert P. J. Day via lists.yoctoproject.org wrote:
> >
> > I note at least a couple places in the BB manual that refer to
> > searching for class files only in the "classes" subdirectory, but no
> > mention about the "classes-global" and "classes-recipe" directories --
> > should those also be mentioned in the BB manual?
> >
>
> I'm not too surprised, the BitBake documentation is typically not
> receiving the same level of interest compared to YP :) (also I'm not
> entirely sure people are aware it exists as I would imagine most
> people are familiar with docs.yoctoproject.org but not
> docs.yoctoproject.org/bitbake for example?
>
> That seems like a reasonable change to make in any case, so patches
> welcome :)

  going through all my outstanding docs questions, and this issue is
problematic in that, technically, the BB manual should stand alone and
not refer "upwards" to build systems like OE-Core, however, bitbake
itself, here, in BB function list_recipes():

https://github.com/openembedded/bitbake/blob/master/lib/bblayers/query.py#L124

clearly hard-codes references to extra class directories
classes-global and classes-recipe, which don't exist in bitbake
itself, so this is obviously(?) a case where bitbake *does* refer
upwards to oe-core.

  is this worth even clarifying in the BB manual? i suspect that the
simplest way to explain it is that, while BB defines only
classes/base.bbclass, its own layers code simply *supports* the
existence of those two additional class subdirectories, and leave it
at that.

  thoughts?

rday


      reply	other threads:[~2025-06-08 12:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-03 11:08 BB manual needs to refer to additional "classes-recipe" and "classes-global" dirs? Robert P. J. Day
2025-06-03 15:36 ` [docs] " Quentin Schulz
2025-06-08 12:35   ` Robert P. J. Day [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=e8c5fbbf-2f02-e166-8d1f-6ad659b0cc20@crashcourse.ca \
    --to=rpjday@crashcourse.ca \
    --cc=docs@lists.yoctoproject.org \
    --cc=quentin.schulz@cherry.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