Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Quentin Schulz <quentin.schulz@streamunlimited.com>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] follow up: keeping the source with an "externalsrc"-based recipe
Date: Fri, 28 May 2021 09:57:26 -0400 (EDT)	[thread overview]
Message-ID: <d9f5b68-e151-6848-3c4d-ea3bef28c22c@crashcourse.ca> (raw)
In-Reply-To: <20210528130557.zr762og6uvyv577b@qschulz>

On Fri, 28 May 2021, Quentin Schulz wrote:

> On Fri, May 28, 2021 at 08:51:51AM -0400, Robert P. J. Day wrote:
> >
> >   as a short followup to my earlier note about creating a bunch of
> > externalsrc-based recipes to demonstrate their proper structure, it's
> > easy to add the recipe files to a layer, but i then realized i needed
> > to figure out where to put the corresponding source, and how i would
> > refer to it with the EXTERNALSRC variable, and after some thought, it
> > occurred that the simplest solution is to simply put the source in a
> > "src" subdirectory next to the recipe itself, and use:
> >
> >   inherit externalsrc
> >
> >   EXTERNALSRC = "${THISDIR}/src"
>
> FWIW, we use multiple ../ in the variable and it works just fine.
> Might be a slightly better example than having it next to the
> recipe, since this would actually be covered by SRC_URI =
> "file://whatever". In that case, you could add the sources in
> `yocto-docs/externalsrc-src` for example?

  after further cogitation, it seems like using SRC_URI might be the
way to go after all, unless i drastically misunderstand some features
of "externalsrc".

  at the moment, most of this external source has to be compiled in
place; very little of it supports "out of tree" building, which means
that i'm forced to(?):

  EXTERNALSRC = <source location>
  EXTERNALSRC_BUILD = "${EXTERNALSRC}"

however, that obviously(?) means that only one developer can build
that recipe at a time, else they would step on each other's ongoing
builds -- do i understand that correctly?

  using SRC_URI, on the other hand, would copy the source directory
into the WORKDIR, so that solves that problem. am i understanding this
correctly?

rday

  parent reply	other threads:[~2021-05-28 13:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-28 12:51 follow up: keeping the source with an "externalsrc"-based recipe Robert P. J. Day
2021-05-28 13:05 ` [OE-core] " Quentin Schulz
2021-05-28 13:37   ` Robert P. J. Day
2021-05-28 13:57   ` Robert P. J. Day [this message]
2021-05-28 14:16     ` Quentin Schulz
2021-05-28 14:47       ` Robert P. J. Day
2021-05-28 15:07         ` Quentin Schulz
2021-05-28 15:15           ` Robert P. J. Day
2021-05-28 15:26             ` Quentin Schulz
2021-05-28 16:14               ` Robert P. J. Day
2021-05-28 21:02               ` Robert P. J. Day
2021-05-31  8:56                 ` Quentin Schulz
2021-05-31  9:52                   ` Robert P. J. Day
2021-05-31 10:25                   ` Robert P. J. Day

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9f5b68-e151-6848-3c4d-ea3bef28c22c@crashcourse.ca \
    --to=rpjday@crashcourse.ca \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=quentin.schulz@streamunlimited.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox