Skip to contentSkip to conversation

whether "bitbake -e" examples should be updated

DISCUSSION Robert P. J. Day 2 participants 3 messages Oct 28, 2025 – Oct 29, 2025

lore
Share & tools
lore
#0 lore raw

more nitpicky pedantry ... here:

https://docs.yoctoproject.org/dev-manual/new-recipe.html#running-a-build-on-the-recipe

the reader is advised to display the value of a variable relative to a recipe basename with:

  $ bitbake -e basename | grep ^WORKDIR=

well, sure, but as we all know, there's the newer:

  $ bitbake-getvar -r basename WORKDIR

which inspires the question -- should that second variation be *added* to that page, or should it *replace* the older command because there's little point in explaining the earlier command?

more globally, how complete are the docs in terms of explaining all
the cool debugging scripts provided in oe-core/scripts? i know the dev manual has an entire section on debugging, so i'll get to that later.

rday

#1 lore raw
Quoted 10 lines · Robert P. J. Day

more nitpicky pedantry ... here:

https://docs.yoctoproject.org/dev-manual/new-recipe.html#running-a-build-on-the-recipe

the reader is advised to display the value of a variable relative to a recipe basename with:

  $ bitbake -e basename | grep ^WORKDIR=
Quoted 7 lines

well, sure, but as we all know, there's the newer:

  $ bitbake-getvar -r basename WORKDIR

which inspires the question -- should that second variation be *added* to that page, or should it *replace* the older command because there's little point in explaining the earlier command?

I think it's worth showing the bitbake-getvar here and I would replace it (also in other places if you find any other).

Quoted 3 lines

more globally, how complete are the docs in terms of explaining all
the cool debugging scripts provided in oe-core/scripts? i know the dev manual has an entire section on debugging, so i'll get to that later.

The debugging document has a "Viewing Variable Values" section. It would be great to add bitbake-getvar there, if you have some time a patch would be appreciated.

Thanks,
Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
Quoted 22 lines · Antonin Godard
Quoted 10 lines · Robert P. J. Day

more nitpicky pedantry ... here:

https://docs.yoctoproject.org/dev-manual/new-recipe.html#running-a-build-on-the-recipe

the reader is advised to display the value of a variable relative to a recipe basename with:

  $ bitbake -e basename | grep ^WORKDIR=
Quoted 7 lines

well, sure, but as we all know, there's the newer:

  $ bitbake-getvar -r basename WORKDIR

which inspires the question -- should that second variation be *added* to that page, or should it *replace* the older command because there's little point in explaining the earlier command?

I think it's worth showing the bitbake-getvar here and I would replace it (also in other places if you find any other).

Quoted 7 lines
Quoted 3 lines

more globally, how complete are the docs in terms of explaining all
the cool debugging scripts provided in oe-core/scripts? i know the dev manual has an entire section on debugging, so i'll get to that later.

The debugging document has a "Viewing Variable Values" section. It would be great to add bitbake-getvar there, if you have some time a patch would be appreciated.

i can't guarantee that i'll have time to submit patches for all
these observations/questions -- i'm keeping track of all of it but i'm concentrating on getting through all the docs first.

regarding this issue, it seems that the cleanest approach is, in the
general documentation, to focus on the newer debugging utilities like bitbake-getvar.

then, in the debugging chapter, to open with something like, "once
upon a time, one would use 'bitbake -e' to examine the properties of a build such as its variables, and while that approach still works, there are a bunch of newer utilities that are more convenient and should be used instead."

so i would minimize any explanation involving 'bitbake -e' other
than to mention that that was the original way and it still works, but there are newer, better ways.

rday

p.s. this assumes that that debugging chapter better be really complete and comprehensive.