Embedded Linux Development Using Yocto Project Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

How to do it...

The starting point for debugging a package build error is the BitBake error message printed on the build process. This will usually point us to the task that failed to build.

  1. To list all the tasks available for a given recipe, with descriptions, we execute the following:
$ bitbake -c listtasks <target>  
  1. If you need to recreate the error, you can force a build with the following:
$ bitbake -f <target>  
  1. Or you can ask BitBake to force-run only a specific task using the following command:
$ bitbake -c compile -f <target>  
Forcing a task to run will taint the task and BitBake will show a warning. This is meant to inform that the build has been modified. You can remove the warnings by cleaning the work directory with the -c clean argument.