From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cpanel8.indieserve.net (cpanel8.indieserve.net [199.212.143.3]) by mx.groups.io with SMTP id smtpd.web11.8459.1622209077034834484 for ; Fri, 28 May 2021 06:37:57 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: crashcourse.ca, ip: 199.212.143.3, mailfrom: rpjday@crashcourse.ca) Received: from cpeac202e043973-cmac202e043970.sdns.net.rogers.com ([174.114.107.13]:37806 helo=fedora) by cpanel8.indieserve.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lmcgW-008F8e-43; Fri, 28 May 2021 09:37:55 -0400 Date: Fri, 28 May 2021 09:37:52 -0400 (EDT) From: "Robert P. J. Day" To: Quentin Schulz cc: OE Core mailing list Subject: Re: [OE-core] follow up: keeping the source with an "externalsrc"-based recipe In-Reply-To: <20210528130557.zr762og6uvyv577b@qschulz> Message-ID: References: <20210528130557.zr762og6uvyv577b@qschulz> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel8.indieserve.net X-AntiAbuse: Original Domain - lists.openembedded.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Get-Message-Sender-Via: cpanel8.indieserve.net: authenticated_id: rpjday+crashcourse.ca/only user confirmed/virtual account not confirmed X-Authenticated-Sender: cpanel8.indieserve.net: rpjday@crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset=US-ASCII 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? i know you could use SRC_URI, but i really want to stress the usage of "externalsrc" and force the developer to think that the source is really elsewhere. rday