Re: [poky] One recipe for fetch a bigger repo, multiple recipes to build parts of it
Bruce Ashfield <[email protected]>
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <CADkTA4PkbOgqwNoN4TjXZ5JeEgheo3mHNuOH3p6O6+1WC2D=ng@mail.gmail.com> |
On Tue, Nov 5, 2024 at 7:48 AM Steve via lists.yoctoproject.org <star= [email protected]> wrote: > On 11/5/24 13:06, Alexander Kanavin via lists.yoctoproject.org wrote: > > On Tue, 5 Nov 2024 at 13:01, Steve via lists.yoctoproject.org > > <[email protected]> wrote: > >> well download may indeed happened just once, but isn't in each recipe > >> the git folder with it's complete content? > >> Maybe I described it misleading: > >> So it is not about download, but about the amount of storage needed for > >> each recipe. Assuming 10 recipes using same main repo, in each of the > >> ../build/tmp/<recipe-name>/<tag>+gitAUTOINC+<git-hash>/git > >> I see the full checked out repo. > > > > If you want to use individual submodules, then the best would be > > probably to have an external script that determines SRCREV for each of > > them from what is recorded in the parent repo, and writes that into > > recipes. > > > > Alex > > True - that is one way. > But that doesn't sound easy with external scripts. > And the approach to use one recipe for checkout and multiple recipes to > access this cloned git is more effective in terms of storage usage, > isn't it? > How a recipeB, C, ... can know the path below - where the git-has is the > unknown component in this case. > To workaround the path > ../build/tmp/>arch>/<recipe-nameA>/<tag>+gitAUTOINC+<git-hash>/git > Have you looked at the work-shared technique we use for the kernel and gcc ? Bruce > > I guess an DEPENDS=recipeA needs also be part of all recipes using it. > Well, the recipes B,C,D might need to evaluate that git-hash, but I > don't know how in a recipe. > > Thanks > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#13477): > https://lists.yoctoproject.org/g/poky/message/13477 > Mute This Topic: https://lists.yoctoproject.org/mt/109403571/1050810 > Group Owner: [email protected] > Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [ > [email protected]] > -=-=-=-=-=-=-=-=-=-=-=- > > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II