Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Quentin Schulz" <quentin.schulz@streamunlimited.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
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 15:05:57 +0200	[thread overview]
Message-ID: <20210528130557.zr762og6uvyv577b@qschulz> (raw)
In-Reply-To: <f25c1d23-ce3-bd0-a5b5-8c5d4e0fda6@crashcourse.ca>

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?

In any case, an example recipe is very much welcomed so thanks for
suggesting one!

Cheers,
Quentin

  reply	other threads:[~2021-05-28 13:06 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 ` Quentin Schulz [this message]
2021-05-28 13:37   ` [OE-core] " Robert P. J. Day
2021-05-28 13:57   ` Robert P. J. Day
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=20210528130557.zr762og6uvyv577b@qschulz \
    --to=quentin.schulz@streamunlimited.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=rpjday@crashcourse.ca \
    /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