Skip to contentSkip to conversation

bitbake-layers layerindex-fetch

DISCUSSION Trevor Woerner 2 participants 5 messages May 22, 2015 – Jun 3, 2015

lore
Share & tools
lore
#0 lore raw

I'm curious to know what heuristic "bitbake-layers layerindex-fetch" uses to determine where to place the fetched layers?

I asked my system to:

  $ bitbake-layers layerindex-fetch meta-qt5

and it keeps insisting on installing meta-qt5 and meta-openembedded under my openembedded-core layers resulting in:

  /z/master/layers/openembedded-core/meta-openembedded/meta-ruby \
  /z/master/layers/openembedded-core/meta-qt5 \

Is there a way that I can tell bitbake-layers that my layers are located at /z/master/layers and have it work from there?

#1 lore raw

Hi Trevor,

Quoted 7 lines · On Friday 22 May 2015 17:57:46 Trevor Woerner wrote:

I'm curious to know what heuristic "bitbake-layers layerindex-fetch" uses to determine where to place the fetched layers?

I asked my system to:

  $ bitbake-layers layerindex-fetch meta-qt5
Quoted 8 lines

and it keeps insisting on installing meta-qt5 and meta-openembedded under my openembedded-core layers resulting in:

  /z/master/layers/openembedded-core/meta-openembedded/meta-ruby \
  /z/master/layers/openembedded-core/meta-qt5 \

Is there a way that I can tell bitbake-layers that my layers are located at /z/master/layers and have it work from there?

This is controlled by BBLAYERS_FETCH_DIR; by default this is set to "${COREBASE}" with ??= so you can set it to your preferred value in local.conf as desired. (We should definitely document this, I acknowledge at the moment it isn't documented anywhere.)

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

Hi Paul,

Quoted 13 lines · Paul Eggleton

Hi Trevor,

Quoted 10 lines · On Friday 22 May 2015 17:57:46 Trevor Woerner wrote:

I'm curious to know what heuristic "bitbake-layers layerindex-fetch" uses to determine where to place the fetched layers?

I asked my system to:

  $ bitbake-layers layerindex-fetch meta-qt5

and it keeps insisting on installing meta-qt5 and meta-openembedded under my openembedded-core layers resulting in:

Quoted 8 lines
Quoted 5 lines
  /z/master/layers/openembedded-core/meta-openembedded/meta-ruby \
  /z/master/layers/openembedded-core/meta-qt5 \

Is there a way that I can tell bitbake-layers that my layers are located at /z/master/layers and have it work from there?

This is controlled by BBLAYERS_FETCH_DIR; by default this is set to "${COREBASE}" with ??= so you can set it to your preferred value in local.conf as desired.

Awesome, thanks! :-)

Quoted 3 lines

(We should definitely document this, I acknowledge at the moment it
isn't documented anywhere.)

I've sent a patch for the Bitbake User's Manual.

#3 lore raw
In reply to Paul Eggleton
Quoted 4 lines · Paul Eggleton

This is controlled by BBLAYERS_FETCH_DIR; by default this is set to "${COREBASE}" with ??= so you can set it to your preferred value in local.conf as desired. (We should definitely document this, I acknowledge at the moment it isn't documented anywhere.)

It'd be nice if "bitbake-layers remove-layer" had the same mechanism. Some way (preferably using the same BBLAYERS_FETCH_DIR variable, possibly renamed so it made sense in both cases) to specify the base of where my layers are stored:

    $ bitbake-layers remove-layer meta-realtime
    No layers matching /z/master/rpi-poky-linaro-rt/meta-realtime found
in BBLAYERS

But my layers are stored in /z/master/layers.

Of course I can get around this by using:

    $ bitbake-layers remove-layer *meta-realtime
#4 lore raw
Quoted 15 lines · On Friday 29 May 2015 16:11:41 Trevor Woerner wrote:
Quoted 4 lines · Paul Eggleton

This is controlled by BBLAYERS_FETCH_DIR; by default this is set to "${COREBASE}" with ??= so you can set it to your preferred value in local.conf as desired. (We should definitely document this, I acknowledge at the moment it isn't documented anywhere.)

It'd be nice if "bitbake-layers remove-layer" had the same mechanism. Some way (preferably using the same BBLAYERS_FETCH_DIR variable, possibly renamed so it made sense in both cases) to specify the base of where my layers are stored:

    $ bitbake-layers remove-layer meta-realtime
    No layers matching /z/master/rpi-poky-linaro-rt/meta-realtime found
in BBLAYERS
Quoted 8 lines

But my layers are stored in /z/master/layers.

Of course I can get around this by using:

    $ bitbake-layers remove-layer *meta-realtime

Right, it expects a layer path and not just a layer name. I've entered the following enhancement:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=7839

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre