Chuck, Unless I am missing something (which I cannot entirely rule out), the default PREMIRRORS should actually do what you want. For the poky distro configuration has this:
PREMIRRORS ??= "\ bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" This causes the fetcher to intercept and translate all the SCM protocols into http downloads from the YP mirror. Since you are saying wget works for you this should actually automatically work for you. If you build system can at least download using http then bitbake <target> --runall=fetch should download all the sources for you. Then you can disconnect the box from the Internet and start the build offline. :rjs On 9/26/19 8:06 PM, Chuck Wolber wrote: > Hi All, > > Our build environment is stuck behind a firewall with no access to the > Internet. When a Yocto build requires a new package, we normally > extract the URL from the failed build log and "wget" the package from > the upstream source, do our due diligence (checksums, etc), and then > add it to the server pointed to by ${LOCAL_MIRROR}. > > Obviously that procedure does not work so well when a git repository > needs to be fetched. We have tried various methods, but nothing seems > to work reliably. Our current method is an annoying hack involving a > virtual machine clone of the build server. > > I have searched far and wide, and cannot find any sort of procedure. > Can someone point me at a procedure for translating something like > git://git.yoctoproject.org/pseudo <http://git.yoctoproject.org/pseudo> > into a file we can store in our ${LOCAL_MIRROR}? > > Thank you, > > ..Ch:W.. > -- ----- Rudolf J Streif CEO/CTO ibeeto +1.855.442.3386 x700
signature.asc
Description: OpenPGP digital signature
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto