cpb- / yocto-cooker

Meta buildtool for Yocto Project based Linux embedded systems
GNU General Public License v2.0
43 stars 22 forks source link

[RFC] How about `dumpenv` command? #152

Closed cpb- closed 2 months ago

cpb- commented 3 months ago

I would be interested in a cooker dumpenv [build] command.

Instead of running bitbake <image-name> it would run bitbake -e <image-name> and redirect the standard output to a environment.txt file located in the build directory.

It would be useful to see the content of some quite complex variables (*OVERRIDES or *_FEATURES for example) after bitbake parsing of the recipes.

Any comment?

boucman commented 3 months ago

hmm

bitbake -e has multiple variants, all of which are usefull

bitbake -e
bitbake -e <image>
bitbake -e <any recipe>

how would you proposal work for that ?

cpb- commented 3 months ago

🤨

pboettch commented 3 months ago

what about cooker shell <target> bitbake -e ?

cpb- commented 3 months ago
$ cooker shell raspberrypi4   bitbake -e
usage: cooker [-h] [--debug] [--version] [-v] [-n]
              {cook,init,update,diff,log,generate,show,build,shell,clean} ...
cooker: error: unrecognized arguments: -e

$ cooker shell raspberrypi4   "bitbake -e"
/bin/bash: line 1: bitbake -e: command not found
pboettch commented 3 months ago

Doesn't work, but would this be an acceptable solution?

cpb- commented 2 months ago

Never mind, I've done it another way.