@@ -255,48 +255,16 @@ you create and prepare your own layer in which to do your work. Your
layer contains its own :term:`BitBake`
append files (``.bbappend``) and provides a convenient mechanism to
create your own recipe files (``.bb``) as well as store and use kernel
-patch files. For background information on working with layers, see the
-":ref:`dev-manual/layers:understanding and creating layers`"
-section in the Yocto Project Development Tasks Manual.
-
-.. note::
-
- The Yocto Project comes with many tools that simplify tasks you need
- to perform. One such tool is the ``bitbake-layers create-layer``
- command, which simplifies creating a new layer. See the
- ":ref:`dev-manual/layers:Creating Your Own Layer`"
- section in the Yocto Project Development Tasks Manual for
- information on how to use this script to quick set up a new layer.
+patch files.
To better understand the layer you create for kernel development, the
following section describes how to create a layer without the aid of
-tools. These steps assume creation of a layer named ``mylayer`` in your
+tools. These steps assume creation of a layer named ``meta-mylayer`` in your
home directory:
-#. *Create Structure*: Create the layer's structure::
-
- $ mkdir -p meta-mylayer/conf meta-mylayer/recipes-kernel/linux/linux-yocto
-
- The ``conf`` directory holds your configuration files, while the
- ``recipes-kernel`` directory holds your append file and eventual
- patch files.
-
-#. *Create the Layer Configuration File*: Move to the
- ``meta-mylayer/conf`` directory and create the ``layer.conf`` file as
- follows::
-
- # We have a conf and classes directory, add to BBPATH
- BBPATH .= ":${LAYERDIR}"
-
- # We have recipes-* directories, add to BBFILES
- BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
- ${LAYERDIR}/recipes-*/*/*.bbappend"
-
- BBFILE_COLLECTIONS += "mylayer"
- BBFILE_PATTERN_mylayer = "^${LAYERDIR}/"
- BBFILE_PRIORITY_mylayer = "5"
-
- Notice ``mylayer`` as part of the last three statements.
+#. *Create Structure*: Follow the instructions in
+ :ref:`dev-manual/layers:Creating Your Own Layer` to create the basic
+ structure for your layer.
#. *Create the Kernel Recipe Append File*: Move to the
``meta-mylayer/recipes-kernel/linux`` directory and create the
Simplify the kernel-dev/common section where the user creates a layer to reference to the existing docs rather than re-explaining how to create a layer again. This removes the obsolete layer.conf variables too. Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- documentation/kernel-dev/common.rst | 42 +++++-------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-)