On Sat, 10 Mar 2012, Gary Thomas wrote: > All you really need are these lines: > SOURCE_MIRROR_URL ?= "file://${COREBASE}/sources/" > INHERIT += "own-mirrors" > Adjust the SOURCE_MIRROR_URL to wherever you want the files. I also always > add > BB_GENERATE_MIRROR_TARBALLS = "1" > This will let the fetcher make a git2_XXX tarball, once the repo has been > cloned. > > My understanding is that the git (and other SCM) fetcher works like this: > * If there is a git2_XXX tar file in the DL_DIR (or mirror), unpack it > into ${BUILD}/downloads/git2 > * Check to see if the desired ${SRCREV} is present. If not, do a 'git pull' > to update the local clone and then rebuild the git2_XXX tarball. > This way, you only have to clone once - just copy any generated tarballs back > to your source mirror.
one last point -- what i typically do as a test is always $ bitbake -c fetchall <target> before doing the actual build, just to see that everything is fetchable and gets fetched. is there a bitbake task that would tell me what needs actual fetching before i start that? rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto