Bitbake: How to only fetch the sources?

Viewed 10150

There is a project in which we use project yocto, and our metas fetch source from some remote git repositories.

The problem is that these repositories are only accessible in some particular situations/specific times.

Therefore, I need a way to fetch the repos (when they are available), as to have them locally, but not build anything at that time.

Is this possible?

2 Answers

Starting from Yocto 2.5, it has changed:

 bitbake <target> --runall=fetch

Previously it was:

bitbake <target> -c fetchall

Bitbake Usage-and-syntax

Try bitbake -c fetchall <target>

It might help to add:

BB_GENERATE_MIRROR_TARBALLS = "1" 

to local.conf, which generates tarballs for all fetched sources which aren't already an archive.

Related