9

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?

AmiguelS
  • 805
  • 2
  • 10
  • 28

2 Answers2

22

Starting from Yocto 2.5, it has changed:

 bitbake <target> --runall=fetch

Previously it was:

bitbake <target> -c fetchall

Bitbake Usage-and-syntax

Florian Berndl
  • 1,136
  • 8
  • 27
  • That is what I was afraid off :) Also, Yocto 2.5 is confusing, see this table to work out when the change occurred: https://wiki.yoctoproject.org/wiki/Releases – balister Jan 07 '19 at 17:36
0

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.

Florian Berndl
  • 1,136
  • 8
  • 27
balister
  • 341
  • 2
  • 4