[bitbake-devel] Generating extensible SDK fails because of missing LAYERSERIES_CORENAMES
Damien Riegel
damien.riegel at savoirfairelinux.com
Mon May 28 15:01:58 UTC 2018
On Sat, May 26, 2018 at 08:22:39AM -0400, Damien Riegel wrote:
> Hi,
>
>
> When generating the extended SDK, my setup fails with the following
> error:
>
> ERROR: Failed to generate filtered task list for extensible SDK:
> ERROR: bitbake failed:
> ERROR: Unable to start bitbake server
>
> I digged into the issue and found out why bitbake doesn't
> start.
>
> bitbake thinks layers are incompatible because they define
> LAYERSERIES_COMPAT but LAYERSERIES_CORENAMES is not set. So this check
> in cookerdata.py fails [1].
>
> The reason this check fails is that the core `meta` layer is not listed
> in the generated BBLAYERS, because it's treated in a special way in
> populate_sdk_ext.bbclass [2]. So as this layer is not listed in
> BBLAYERS, the compatibility check fails and bitbake cannot start.
>
>
> Shouldn't `meta` simply be added to BBLAYERS as any other layer? If not,
> what is the proper way to solve my bug?
I think it got confused because the `meta` layer is contained in a
folder named `meta` as well.
I managed to go further in my build with the following snippet:
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -207,7 +207,7 @@ python copy_buildsystem () {
sdkbblayers = []
corebase = os.path.basename(d.getVar('COREBASE'))
for layer in layers_copied:
- if corebase == os.path.basename(layer):
+ if corebase == layer:
conf_bbpath = os.path.join('layers', layer, 'bitbake')
else:
sdkbblayers.append(layer)
>
> [1] https://github.com/openembedded/bitbake/blob/master/lib/bb/cookerdata.py#L397
> [2] https://github.com/openembedded/openembedded-core/blob/master/meta/classes/populate_sdk_ext.bbclass#L208
>
> Thank you,
> --
> Damien
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel
--
Damien Riegel
Free Software Consultant
Tel: +1 514 276 5468 (ext: 355)
More information about the bitbake-devel
mailing list