Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I generate an ordered lists of the executed tasks when bitbaking a package?

Tags:

yocto

I know that I can list the possible tasks with:

bitbake package -c listtasks

But this list also includes tasks that need to be called explicitly (like do_devshell or do_clean), and I wish to watch what is called when running:

bitbake package

Looking through the output obtained with 'bitbake -e package' also didn't provide much information I was able to parse.

Given that the order of tasks has to be explicitly defined with 'before' and 'after' when adding a task, I would expect it to be stored in some form.

like image 586
ytm Avatar asked Jul 26 '17 05:07

ytm


People also ask

What does BitBake command do?

The bitbake command builds platform projects, application source, and packages. BitBake is the overall control program, which manages builds of all the packages and of the overall system. It builds platform projects, application source, and packages.

What does Do_install do in yocto?

10 do_install. Copies files that are to be packaged into the holding area ${ D } . This task runs with the current working directory set to ${ B } , which is the compilation directory.

What is BitBake option?

BitBake is a make-like build tool with the special focus of distributions and packages for embedded Linux cross compilation although it is not limited to that. It is derived from Portage, which is the package management system used by the Gentoo Linux distribution.


2 Answers

The order in which all tasks executes are generally stored in

poky/<build_directory>/tmp/work/<machine_toolchain>/<package_name>/<package_version>/temp/log.task_order

For example If you build python v2.7.12 utility, using bitbake python then the detailed task order will be available at

poky/build/tmp/work/<machine_toolchain>/python/2.7.12-r1/temp/log.task_order

like image 82
Krupal Tharwala Avatar answered Sep 21 '22 02:09

Krupal Tharwala


Another place to look is the cooker log file found here: build_directory/tmp/log/cooker/machine_toolchain

It has a .log extension: (eg. 20190205192546.log) and shows the exact order of execution of tasks (all the do_... in the order that they are invoked).

like image 30
Tomas Avatar answered Sep 22 '22 02:09

Tomas