Re: Offline Build #yocto


Fred Baksik
 


On Mon, Jul 27, 2020, at 12:38 AM, Amrun Nisha.R wrote:
Hi Fred,

check whether the downloads folder has all the files. I found that while checking the folders, I can't able to find the branches and ref folders in the git2 folder (downloads/git2). Once i placed the empty folders branch and ref, it works fine for me. And I didnt update on the config file.
-=-=-=-=-=-=-=-=-=-=-=-



The downloads folder that I used to setup the pre-mirror didn't even contain the git2 folder.  From the directions:
Optionally Remove Any Git or other SCM Subdirectories From the Downloads Directory: If you want, you can clean up your downloads directory by removing any Git or other Source Control Management (SCM) subdirectories such as ${DL_DIR}/git2/*. The tarballs already contain these subdirectories.

FYI, the documentation states for DL_DIR:
By default, DL_DIR gets files suitable for mirroring for everything except Git repositories. If you want tarballs of Git repositories, use the BB_GENERATE_MIRROR_TARBALLS variable.

All I can say is that following these directions for replicating the build offline worked.
When skipping any of the steps I saw similar errors like the one in the original post.

Join yocto@lists.yoctoproject.org to automatically receive all group messages.