From: Chong Lu <Chong.Lu@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 0/1] layerindex.bbclass: Add ability to fetch layers from layer index
Date: Wed, 7 Jan 2015 14:35:41 +0800 [thread overview]
Message-ID: <cover.1420610929.git.Chong.Lu@windriver.com> (raw)
How to use this class:
For example:
If you want to build python-nova, first you should know meta-openstack layer includes python-nova.
And then, add meta-openstack to conf/bblayers.conf:
...
BBLAYERS ?= " \
/buildarea2/clu1/source/poky/meta \
/buildarea2/clu1/source/poky/meta-yocto \
/buildarea2/clu1/source/poky/meta-yocto-bsp \
/buildarea2/clu1/source/poky/meta-cloud-services/meta-openstack \
"
...
And then, run "bitbake python-nova", we will get following error:
$ bitbake python-nova
ERROR: Layer 'meta-openstack' depends on layer 'meta-ruby', but this layer is not enabled in your configuration
Add '/buildarea2/clu1/source/poky/meta-openembedded/meta-ruby' to BBLAYERS. You can check conf/bblayers.conf
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Check conf/bblayers.conf, the meta-ruby has already added to BBALYERS.
...
BBLAYERS += "/buildarea2/clu1/source/poky/meta-openembedded/meta-ruby"
And then, run "bitbake python-nova", we will get following error:
$ bitbake python-nova
ERROR: Layer 'ruby-layer' depends on layer 'openembedded-layer', but this layer is not enabled in your configuration
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
We need add meta-oe to BBLAYERS and continue to run "bitbake python-nova", still error:
$ bitbake python-nova
ERROR: Layer 'meta-openstack' depends on layer 'meta-networking', but this layer is not enabled in your configuration
Add '/buildarea2/clu1/source/poky/meta-openembedded/meta-networking' to BBLAYERS. You can check conf/bblayers.conf
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Check conf/bblayers.conf, the meta-networking has already added to BBALYERS.
...
BBLAYERS += "/buildarea2/clu1/source/poky/meta-openembedded/meta-networking"
Continue to run, will get error:
$ bitbake python-nova
ERROR: Layer 'networking-layer' depends on layer 'meta-python', but this layer is not enabled in your configuration
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Add meta-python to BBLAYERS manually:
...
BBLAYERS ?= " \
/buildarea2/clu1/source/poky/meta \
/buildarea2/clu1/source/poky/meta-yocto \
/buildarea2/clu1/source/poky/meta-yocto-bsp \
/buildarea2/clu1/source/poky/meta-cloud-services/meta-openstack \
/buildarea2/clu1/source/poky/meta-openembedded/meta-oe \
/buildarea2/clu1/source/poky/meta-openembedded/meta-python \
"
...
Still run "bitbake python-nova", will fetch layer automatically:
$ bitbake python-nova
WARNING: Fetch 'meta-virtualization' to '/buildarea2/clu1/source/poky'
Cloning into '/buildarea2/clu1/source/poky/meta-virtualization'...
remote: Counting objects: 1461, done.
remote: Compressing objects: 100% (791/791), done.
remote: Total 1461 (delta 803), reused 1262 (delta 604)
Receiving objects: 100% (1461/1461), 303.15 KiB | 158.00 KiB/s, done.
Resolving deltas: 100% (803/803), done.
Checking connectivity... done.
ERROR: Layer 'meta-openstack' depends on layer 'meta-virtualization', but this layer is not enabled in your configuration
Add '/buildarea2/clu1/source/poky/meta-virtualization' to BBLAYERS. You can check conf/bblayers.conf
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Check conf/bblayers.conf, meta-virtualization layer is added to BBLAYERS
Finally, run "bitbake python-nova", recipes are parsed.
The following changes since commit 2674ddb4b0c0645c91d1794cbd9166418b984351:
dev-manual: Some minor fixes to some text. (2015-01-06 14:27:03 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/layerindex
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/layerindex
Chong Lu (1):
layerindex.bbclass: Add ability to fetch layers from layer index
meta/classes/layerindex.bbclass | 154 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 154 insertions(+)
create mode 100644 meta/classes/layerindex.bbclass
--
1.9.1
next reply other threads:[~2015-01-07 6:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-07 6:35 Chong Lu [this message]
2015-01-07 6:35 ` [PATCH 1/1] layerindex.bbclass: Add ability to fetch layers from layer index Chong Lu
2015-01-07 9:20 ` Paul Eggleton
2015-01-08 9:18 ` Chong Lu
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=cover.1420610929.git.Chong.Lu@windriver.com \
--to=chong.lu@windriver.com \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox