From 7d9fbd4922823435c0d2b76b77438efd7d80d712 Mon Sep 17 00:00:00 2001 From: Antonin Godard Date: Tue, 28 Jul 2026 13:29:48 +0200 Subject: [PATCH] slides: yocto: mention use of bitbake-getvar -r sooner We already introduce the notion of global and local scope earlier in the "Variables" section. With 8997911c5a99 ("yocto: slides: present bitbake-getvar earlier"), the bitbake-getvar utility was introduced to this section, but without mentions of the `-r` argument, which is useful to illustrate the difference between the local and global scopes. Later in the slides we talk about bitbake-getvar again, to lead into the presentation of the `-e` flag. Just add a "(Reminder)" there and detail the difference between single `-e` and `-e` for a recipe. Signed-off-by: Antonin Godard --- slides/yocto-advanced/yocto-advanced.typ | 7 +++++-- slides/yocto-recipe-basics/yocto-recipe-basics.typ | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/slides/yocto-advanced/yocto-advanced.typ b/slides/yocto-advanced/yocto-advanced.typ index dcb10896db..10dbbd422e 100644 --- a/slides/yocto-advanced/yocto-advanced.typ +++ b/slides/yocto-advanced/yocto-advanced.typ @@ -226,11 +226,14 @@ - `bitbake-getvar` can be used to understand and debug how variables are assigned -- `bitbake-getvar ` - - Lists each configuration file touching the variable, the pre-expansion value and the final value +- `bitbake-getvar `: dump the variable value in the *global* scope + +- `bitbake-getvar -r `: dump the variable value in the + *local* scope of `recipe` + #v(0.5em) ```console diff --git a/slides/yocto-recipe-basics/yocto-recipe-basics.typ b/slides/yocto-recipe-basics/yocto-recipe-basics.typ index c28bac90dc..b4e08a8b1f 100644 --- a/slides/yocto-recipe-basics/yocto-recipe-basics.typ +++ b/slides/yocto-recipe-basics/yocto-recipe-basics.typ @@ -581,9 +581,9 @@ SRC_URI[sha256sum] = "731140004fdb6..." - These can be inspected to understand what is being done by the tasks -=== Debugging variable assignment +=== Debugging variable assignments -- `bitbake-getvar` can dump the per-recipe variable value using the `-r` +- (Reminder) `bitbake-getvar` can dump the per-recipe variable value using the `-r` option - `bitbake-getvar -r ncurses SRC_URI` @@ -591,6 +591,6 @@ SRC_URI[sha256sum] = "731140004fdb6..." - Similarly, `bitbake -e` dumps the entire environment, and also the task code - - `bitbake -e` + - `bitbake -e` (*global* environment) - - `bitbake -e ncurses` + - `bitbake -e ncurses` (environment of `ncurses`)