在对包进行位烘焙时,如何生成已执行任务的有序列表?

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

我知道我可以列出可能的任务:

bitbake package -c listtasks

但是这个列表还包括需要显式调用的任务(比如do_devshell或do_clean),我想看看在运行:[=12时调用的是什么=]

bitbake package

查看通过 'bitbake -e package' 获得的输出也没有提供太多我能够解析的信息。

鉴于在添加任务时必须使用 'before' 和 'after' 明确定义任务顺序,我希望它以某种形式存储。

所有任务执行的顺序一般存储在

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

例如 如果您构建 python v2.7.12 实用程序,请使用 bitbake python 那么详细的任务顺序将在

提供

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

另一个要查看的地方是在此处找到的 cooker 日志文件: build_directory/tmp/log/cooker/machine_toolchain

它有一个 .log 扩展名:(例如 20190205192546.log) 并显示任务执行的确切顺序(所有 do_... 按照它们被调用的顺序)。