[yocto] Debugging a build issue in an isolated enviroment

Burton, Ross ross.burton at intel.com
Wed Nov 1 11:05:08 PDT 2017


On 1 November 2017 at 17:38, Alan Martinovic <alan.martinovic at senic.com>
wrote:

> Is there a way to run the above listed make command with the same
> environment as it is run when the error is produced?
>

$ bitbake <recipe> -c devshell

This drops you in a new terminal with the same environment that bitbake
sets up, and in ../temp/ you'll find run.do_compile and so on, which are
the scripts that bitbake runs for each task.

(you need to fix your recipe so that it forces the use of ${BUILD_CC}
instead of cc)

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171101/6baa3611/attachment.html>


More information about the yocto mailing list