[bitbake-devel] bitbake-layers add-layer issue

Grzegorz Heldt grzegorz.heldt at gmail.com
Wed Sep 25 20:38:10 UTC 2019


Hello.

To setup my projects im usually using bash scripts like that performs
following steps:

-------------------------------
wiesniak at desk:~/projects/yocto-rasp/poky/build/conf$ cat ../../../setup
#!/bin/bash

BRANCH=warrior
git clone git://git.yoctoproject.org/meta-raspberrypi -b $BRANCH
git clone git://git.yoctoproject.org/poky -b $BRANCH
git clone git://git.openembedded.org/meta-openembedded -b $BRANCH

cd poky
. oe-init-build-env
bitbake-layers add-layer ../../meta-raspberrypi/
bitbake-layers add-layer ../../meta-openembedded/meta-python/
bitbake-layers add-layer ../../meta-openembedded/meta-oe/
bitbake-layers add-layer ../../meta-openembedded/meta-multimedia/
bitbake-layers add-layer ../../meta-openembedded/meta-networking/

echo INHERIT += \"rm_work\" >> conf/local.conf
echo DL_DIR = \"/home/yocto-downloads\" >> conf/local.conf

-----------------------------

The problem is that at one of steps that invokes bitbake-layers add-layer,
issue is reported and script fails.

Im not sure whether this issue is related to layers, or bitbake-layers
command.

However, if I add those layers manually to build/conf/bblayers.conf :
--------------------------
wiesniak at desk:~/projects/yocto-rasp/poky/build/conf$ cat bblayers.conf
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/wiesniak/projects/yocto-rasp/poky/meta \
  /home/wiesniak/projects/yocto-rasp/poky/meta-poky \
  /home/wiesniak/projects/yocto-rasp/poky/meta-yocto-bsp \
  /home/wiesniak/projects/yocto-rasp/meta-raspberrypi \
  /home/wiesniak/projects/yocto-rasp/meta-openembedded/meta-python \
  /home/wiesniak/projects/yocto-rasp/meta-openembedded/meta-oe/ \
  /home/wiesniak/projects/yocto-rasp/meta-openembedded/meta-multimedia/ \
  /home/wiesniak/projects/yocto-rasp/meta-openembedded/meta-networking/ \
"
------------------------------

Then the build can finish sucessfully, so I believe this problem is related
to bitbake-layers command.

Can someone give me some advice ?
I found using bitbake-layers command much more convenient that manually
adding layers to bblayers.conf.

Best Regards
Greg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20190925/a0272800/attachment-0001.html>


More information about the bitbake-devel mailing list