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

Mark Hatle mark.hatle at kernel.crashing.org
Thu Sep 26 23:04:35 UTC 2019



On 9/26/19 4:00 PM, Jeremy A. Puhlman wrote:
> 
> 
> On 9/25/2019 1:38 PM, Grzegorz Heldt wrote:
>> 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
>> <http://git.yoctoproject.org/meta-raspberrypi> -b $BRANCH
>> git clone git://git.yoctoproject.org/poky <http://git.yoctoproject.org/poky>
>> -b $BRANCH
>> git clone git://git.openembedded.org/meta-openembedded
>> <http://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
>>
> You need to add meta-oe before meta-python since meta-python depends on it. Once
> meta-python is added bitbake the next add
> fail because it cannot satisfy the meta-oe requirement. The error is not really
> helpful.
> 
> This is what you get on thud.
> 
> [cluge at jptest01 build]$ bitbake-layers add-layer ../meta-openembedded/meta-python/
> NOTE: Starting bitbake server...
> [cluge at jptest01 build]$ bitbake-layers add-layer ../meta-openembedded/meta-oe/
> NOTE: Starting bitbake server...

Ya, the dredded circular dependency.  I thought you could add them both at the
same time to resolve this.  (You can via the layer index mechanism at least..)
I believe the circular dependency has been resolved in master.)

--Mark

> Traceback (most recent call last):
>   File
> "/local/cluge/builds/2.6/x86-generic-64-4.19-2.6-cgx/layers/poky/bitbake/bin/bitbake-layers",
> line 103, in <module>
>     ret = main()
>   File
> "/local/cluge/builds/2.6/x86-generic-64-4.19-2.6-cgx/layers/poky/bitbake/bin/bitbake-layers",
> line 71, in main
>     tinfoil.prepare(True)
>   File
> "/local/cluge/builds/2.6/x86-generic-64-4.19-2.6-cgx/layers/poky/bitbake/lib/bb/tinfoil.py",
> line 418, in prepare
>     self.run_command('parseConfiguration')
>   File
> "/local/cluge/builds/2.6/x86-generic-64-4.19-2.6-cgx/layers/poky/bitbake/lib/bb/tinfoil.py",
> line 476, in run_command
>     raise TinfoilCommandFailed(result[1])
> bb.tinfoil.TinfoilCommandFailed: Traceback (most recent call last):
>   File
> "/local/cluge/builds/2.6/x86-generic-64-4.19-2.6-cgx/layers/poky/bitbake/lib/bb/command.py",
> line 84, in runCommand
>     result = command_method(self, commandline)
>   File
> "/local/cluge/builds/2.6/x86-generic-64-4.19-2.6-cgx/layers/poky/bitbake/lib/bb/command.py",
> line 285, in parseConfiguration
>     command.cooker.parseConfiguration()
>   File
> "/local/cluge/builds/2.6/x86-generic-64-4.19-2.6-cgx/layers/poky/bitbake/lib/bb/cooker.py",
> line 438, in parseConfiguration
>     self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS"))
>   File
> "/local/cluge/builds/2.6/x86-generic-64-4.19-2.6-cgx/layers/poky/bitbake/lib/bb/cooker.py",
> line 1232, in handleCollections
>     raise CollectionError("Errors during parsing layer configuration")
> bb.cooker.CollectionError: Errors during parsing layer configuration
>>
>>
>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>> 	Virus-free. www.avg.com
>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>>
>>
>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
> 
> -- 
> Jeremy A. Puhlman
> jpuhlman at mvista.com
> 
> 


More information about the bitbake-devel mailing list