Skip to contentSkip to conversation

dev-manual: emphasize that new layers live outside of poky

PATCH Applied Robert P. J. Day 3 participants 4 messages Aug 29, 2021 – Sep 17, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dev-manual: emphasize that new layers live outside of poky

Tweak the bblayers.conf example to encourage the reader to appreciate that any new layers should not share space with the official Poky checkout.

---

documentation/dev-manual/common-tasks.rst +4 -3
index 4a5011ea7..c23f8e09c 100644
@@ -422,8 +422,9 @@ Before the OpenEmbedded build system can use your new layer, you need to
 enable it. To enable your layer, simply add your layer's path to the
 :term:`BBLAYERS` variable in your ``conf/bblayers.conf`` file, which is
 found in the :term:`Build Directory`.
-The following example shows how to enable a layer named
-``meta-mylayer``::
+The following example shows how to enable your new
+``meta-mylayer`` layer (note how your new layer exists outside of
+the official ``poky`` repository which you would have checked out earlier)::
 
    # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
    # changes incompatibly
@@ -434,7 +435,7 @@ The following example shows how to enable a layer named
        /home/user/poky/meta \
        /home/user/poky/meta-poky \
        /home/user/poky/meta-yocto-bsp \
-       /home/user/poky/meta-mylayer \
+       /home/user/mystuff/meta-mylayer \
        "
 
 BitBake parses each ``conf/layer.conf`` file from the top down as
Signature · 6 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Reviewed-by on v1 1/1
#1 lore raw

Hi Robert,

Quoted 6 lines · Robert P. J. Day

Tweak the bblayers.conf example to encourage the reader to appreciate that any new layers should not share space with the official Poky checkout.

On a similar topic, I assume we should change the "Adding a Layer Using the ``bitbake-layers`` Script" section to have meta-scottrif in /home/scottrif/. Basically outside of build directory at least :)

Cheers,
Quentin

#2 lore raw
Quoted 7 lines · Quentin Schulz

Hi Robert,

Quoted 4 lines · Robert P. J. Day

Tweak the bblayers.conf example to encourage the reader to appreciate that any new layers should not share space with the official Poky checkout.

Quoted 8 lines
Quoted 2 lines

On a similar topic, I assume we should change the "Adding a Layer Using the ``bitbake-layers`` Script" section to have meta-scottrif in /home/scottrif/. Basically outside of build directory at least :)

ah, quite so, i missed that. i'll take care of that later today.

rday

#3 lore raw
In reply to Quentin Schulz
Quoted 10 lines · Quentin Schulz

Hi Robert,

Quoted 6 lines · Robert P. J. Day

Tweak the bblayers.conf example to encourage the reader to appreciate that any new layers should not share space with the official Poky checkout.

Merged into "master-next". Thanks for the patch and review! Cheers,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com