我正在一个项目中工作,该项目有许多 bitbake 食谱并且需要很多时间 - 在某些情况下长达 13 小时。我是 bitbake 的新手,我正在寻求一些方法:
- 检查哪些软件包需要更多构建
- 检查非常长的依赖项(我已经使用了 bitbake -g)
- 检查是否有任何循环依赖以及如何解决它们
- 检查是否有未使用的食谱以及如何安全删除它们
或使用任何工具更好地管理和理解食谱的任何建议。
或任何用于加速构建过程的方法/方式。
欢迎提出建议和确切的技术。
编辑日期 07/08/2013:
找到了这个用于跟踪依赖项的有用工具
https://github.com/scottellis/oe-deptools
描述:
./oey.py -h
Usage: ./oey.py [options] [package]
Displays OE build dependencies for a given package or recipe.
Uses the pn-depends.dot file for its raw data.
Generate a pn-depends.dot file by running bitbake -g <recipe>.
Options:
-h Show this help message and exit
-v Show error messages such as recursive dependencies
-r Show reverse dependencies, i.e. packages dependent on package
-f Flat output instead of default tree output
-d <depth> Maximum depth to follow dependencies, default and max is 10
-s Show child package dependencies that are already listed
as direct parent dependencies.
Provide a package name from the generated pn-depends.dot file.
Run the program without a package name to get a list of
available package names.