Changes

Jump to: navigation, search

Yocto build system FAQs

1,496 bytes added, 14:17, 27 February 2020
FAQs
''export GIT_SSL_NO_VERIFY=1''
===Q: How to graphically visualize the dependancies dependencies of an image?===
During the implementation of the production root file system image, it is convenient to graphically visualize the dependencies of the packages used in the development image (see also [[Working_with_the_Yocto_build_system#Introduction|this section]]).
This command produces a <code>recipe-depends.dot</code> file which can be visualized with the [http://www.graphviz.org/ <code>graphviz</code> tool].
 
===Q:How to solve <code>fatal: the '--set-upstream' option is no longer supported</code> bitbake error? ===
 
Using recent <code>git</code> versions (>2.14.1) with old Yocto releases (e.g. <code>krogoth</code> and older) lead to the following error during <code>do_unpack</code> task of packages downloading sources with git:
 
<pre class="board-terminal">
ERROR: PACKAGE do_unpack: Fetcher failure: ...;
git -c core.fsyncobjectfiles=0 branch --set-upstream master origin/master failed with exit code 128, output:
fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead.
 
ERROR: PACKAGE do_unpack: Function failed: base_do_unpack
</pre>
 
This is a known bitbake issue (see [https://www.yoctoproject.org/pipermail/yocto/2017-October/038472.html this Yocto mailing list message]) which has been solved in more recent bitbake releases
 
Due the fact that DAVE cannot patch bitbake on its own BSP (unless providing a mirror of the whole poky repository with this patch included), we suggest to add the follwing patch manually, after setting up Yocto repositories (in other word, after <code>repo sync</code> command)
 
 
[[File:0001-bitbake-Replace-deprecated-git-branch-parameter-set-.patch]]
 
With the following command:
 
<pre class="board-terminal">
cd sources/poky
wget https://wiki.dave.eu/images/c/cf/0001-bitbake-Replace-deprecated-git-branch-parameter-set-.patch
git am 0001-bitbake-Replace-deprecated-git-branch-parameter-set-.patch
</pre>
716
edits

Navigation menu