Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to examine actual bitbake commands executed

Does bitbake store the shell-commands invoked (along the the path of invocation)? I can find the shell-command output in the log-files, but would like to view the actual command line.

like image 999
S.C. Madsen Avatar asked Nov 27 '12 14:11

S.C. Madsen


People also ask

What are the different BitBake commands?

Bitbake Commands. Bitbake Command. Description. bitbake <image>. Bake an image (add -k to continue building even errors are found in the tasks execution) bitbake <package> -c <task>. Execute a particular package's task. Default Tasks names: fetch, unpack, patch, configure, compile, install, package, package_write, and build.

How does BitBake execute tasks?

Executing tasks for a single recipe file is relatively simple. You specify the file in question, and BitBake parses it and executes the specified task. If you do not specify a task, BitBake executes the default task, which is "build”.

How to build any particular recipe or image in BitBake?

To build any particular recipe or image, need to run the below command. If you want to only compile the bitbake recipe then run the below command. Suppose if you want to clean the build output of a particular recipe then you need to run the below command. # It removes all the file related to the recipe like sstate cahche and build output files.

How does GNU Make work with BitBake?

GNU Make achieves its control through “makefiles”. BitBake uses “recipes”. BitBake executes tasks according to provided metadata that builds up the tasks. Metadata is stored in recipe (.bb), configuration (.conf), and class (.bbclass) files and provides BitBake with instructions on what tasks to run and the dependencies between those tasks.


1 Answers

Short answer: Yes. The run.* log files, found in the same directory as the log.* files are the are produced from the actual scripts that get executed by bitbake. Everything you need is there. They aren't trivial, because every aspect of the environment is set up, so they are cumbersome to read, but it's all there.

Have fun!

like image 118
challinan Avatar answered Oct 01 '22 23:10

challinan