From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37913.1796223374663567053 for ; Wed, 02 Dec 2026 06:56:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=QkmazrWg; spf=pass (domain: bootlin.com, ip: 185.246.84.56, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 02BE91A18E1 for ; Wed, 2 Dec 2026 14:56:13 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C3E116075F for ; Wed, 2 Dec 2026 14:56:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7E1C411EA1BE1; Wed, 02 Dec 2026 15:56:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223371; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=YMLRzjnaftdxvi/OELjC+HBohssWu7mC/nfaZIsbz3U=; b=QkmazrWgOmlnTPqY4RAr+MeJU8474xPdy1Y5Z5fj/y1iq39CpGBN+KwVZ+V/Py29KFgPex vg4eGNLOXlosCYsqQYUbTC90c+MG34XHa8Y9ZnAT5jPsy71PWhuVLpUgF0zQzwyi/4cwq3 ZbktPxjkLVP3cH2twowN2egNwZvytlHUwLLNpzC47vqYxVk9BOijR1Icpv+1FiAOn/6EiU 80lk51VTCQqEt2pCYNa2UbLA1Qd3O6gcbGlvA3BtQbNZSbaK9YjKZDOWxK/vJ9gzW3RCAW qeYieWUWU+WAXuIzr4wZ9qXjizWbicsTOZt+doXgMIPtX3hLNHrgrhUmamIw1A== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:47 +0100 Subject: [PATCH 12/18] kernel-dev/common.rst: remove obsolete layer.conf references MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261202-layer-conf-changes-v1-12-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=3054; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=hsksgppWUzS7bgXkaXZyxOdLRDeEBW2n6xFen6RhqUE=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFua+wRJ9IeFW02H2S2XsjmJg8TMrXV7n/5r 4YLMtCL14CJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbgAKCRDRgEFAKaOo NqW8D/4+3tyMh8T/5kUqedmgvu3rMjovN+F+as9rdUHz/iDdoTzgIN/GgNuRQF55RzUvP1Ijj3j 0/2bBn4baGle11d8WWhlINbRjs7pB02FROo2xEjv3eE/2acUPxHjqREU99Vs9RV5VIsbxupH5Iw JEtxyewxI3epN/6gWxU64cUXJwTrzjKd1/Smf7tWeDqvefQI0OJ0xm8vu4p+qr7i/F94dRefkRm UhacL96Ifd5NDw5jZ6zsd2D9LUNLEkxHPUoo6RuIeOuBGGJ1KKVXLvgZijVYPPA8/8TAglPffTV x6ZnBUs0G6QsalOW3NiKQ2DAnrcLKLfuxws1Veq8LsvZueWmj2a1dMp0RPq3uSsq5rjte77f07H 4BDWYhztNRA36mlqjSr5oM34AIwjAlV4/TUvmYCxu03jXyWnpPTgsZbD1x1uIGD6XgQ52KnJTPp NuCsijMauKBJrCsov/xPc/xHJRo7hOLYyU2nNj+iZIE8Ok6393zMPyjfhFHALzSk7j+2ZbZPfCi yPMvNW/PDr6tXDO3Jg2SV9RxbSg41v5cBhyL7osajZF+rXeKxfj0/pwfPlWIqw04o98j6HaFUcv 8ejJop4Z2CxAHLjt4IqaBU9DSJ8Nu5fGtlLaZKUc6xujVbcwEQu6DX9hrKBAX3ViIn1h2iW9s3c +kSsGTGWnxlzpKA== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 14:56:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10899 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 --- documentation/kernel-dev/common.rst | 42 +++++-------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/documentation/kernel-dev/common.rst b/documentation/kernel-dev/common.rst index c478e64d6..e3a39e023 100644 --- a/documentation/kernel-dev/common.rst +++ b/documentation/kernel-dev/common.rst @@ -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 -- 2.56.0