From: Patrick Ohly <patrick.ohly@intel.com>
To: "Koehler, Yannick (HPN Aruba)" <yannick.koehler@hpe.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Can Yocto treat layers like an external package?
Date: Fri, 26 May 2017 15:34:39 +0200 [thread overview]
Message-ID: <1495805679.16923.117.camel@intel.com> (raw)
In-Reply-To: <TU4PR84MB0176FDFE3EF004412A28517BEDFF0@TU4PR84MB0176.NAMPRD84.PROD.OUTLOOK.COM>
On Thu, 2017-05-25 at 16:04 +0000, Koehler, Yannick (HPN Aruba) wrote:
> This is my opinion, I think we could alter bitbake to retrieve the SRC_URI and S information from the bblayers.conf (instead of having recipes like for package).
>
> sample
> # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
> # changes incompatibly
> LCONF_VERSION = "6"
>
> BBPATH = "${TOPDIR}"
> BBFILES ?= ""
>
> BBLAYERS ?= " \
> ##OEROOT##/meta \
> ##OEROOT##/meta-yocto \
> ##OEROOT##/meta-yocto-bsp \
> ##OEROOT##/meta-openembedded;SRC_URI="git://git@github.com/openembedded/meta-openembedded;protocol=ssh;branch=master";SRCREV="${AUTOREV}" \
> "
> BBLAYERS_NON_REMOVABLE ?= " \
> ##OEROOT##/meta \
> ##OEROOT##/meta-yocto \
> "
>
> Bitbake could then fetch/update the layer from the SRC_URI into the location given "##OEROOT##/meta-openembedded" prior to parsing.
Richard has indeed been thinking about a solution like that for 2.4.
I agree that it looks attractive at first glance. However, I see a
chicken-and-egg problem with no (easy?) solution: a developer who wants
to get started with a distro "foo" first needs to check out the repo
containing that distro's definition and local.conf.sample, then somehow
also check out a version of bitbake that works with that distro
revision, and only then can bitbake download the additional layers.
Perhaps we can make it so that bitbake has a separate tool that works
outside of a build environment and then sets up that environment.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
prev parent reply other threads:[~2017-05-26 13:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-24 14:39 Can Yocto treat layers like an external package? Koehler, Yannick (HPN Aruba)
2017-05-24 14:49 ` Gary Thomas
2017-05-25 4:11 ` Trevor Woerner
2017-05-25 5:38 ` Andrea Galbusera
2017-05-25 13:13 ` Koehler, Yannick (HPN Aruba)
2017-05-25 14:39 ` Marcelo E. Magallon
2017-05-25 16:04 ` Koehler, Yannick (HPN Aruba)
2017-05-26 13:34 ` Patrick Ohly [this message]
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=1495805679.16923.117.camel@intel.com \
--to=patrick.ohly@intel.com \
--cc=yannick.koehler@hpe.com \
--cc=yocto@yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.