Re: [poky] One recipe for fetch a bigger repo, multiple recipes to build parts of it

Arno Steffens <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <[email protected]>
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

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.