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`)