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

Richard Purdie <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <27270d33ba31945912e47b5a3c4acd2461ca6471.camel@linuxfoundation.org>
On Wed, 2024-11-06 at 11:49 +0100, Steve via lists.yoctoproject.org
wrote:
> Well, the idea with work-shared sounds good. But I didn't figure out
> what param makes fetcher to checkout into work-shared?
> Just modify $S doesn't help, it is checked out still to tmp/work/<my-
> arch>/my-fw/${TAG}+git${SRCPV}/git
> To workaround that for the moment I create a link, but that doesn't
> work reliable.

The way gcc handles it is a single recipe responsible for the source
(gcc-source) which the other recipes all then depend upon.

The kernel works a bit differently as the kernel creates the shared
source and then the other recipes depend on virtual/kernel.

Both approaches have complications and end up needing to be special
cased in various places (archiver.bbclass for example) so they're
definitely advanced usage.

Cheers,

Richard
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.