From patchwork Wed Dec 2 14:25:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106994 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36791.1796221532242163950 for ; Wed, 02 Dec 2026 06:25:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=RDO8Lcf4; 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 957901A18E5 for ; Wed, 2 Dec 2026 14:25:30 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 6CC626075F; Wed, 2 Dec 2026 14:25:30 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9E19711EA1B48; Wed, 02 Dec 2026 15:25:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221529; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=RiV+HrKFHxNZ9Wvr7HkpAOC/7HTwTJSIsnbdd116RPg=; b=RDO8Lcf4ORwXuL8VlAc8CWgparhNWkihRosP10YpaOHocrkW2+MRG+A/3tkvR91RnkZK6O b3KD5tomYM/JLybFLFL0oZL69nTvZqhcZG5bH1CztloUHD1MDWGH3YczArOuzEMl3AWaPM GS1nb3vvF9X9PmAULzkpTi3tG8nN0nPT7emagZWYvxJEgmobP9LBSfmCg7tcRCTeOze0fM 1kC+e35Zw/IXgJgTpZs9+AyOwHPStC0JXr4/zwj2Clk6h9DyI55gREsn3n5qryzD0yksb+ 1a1UZDkOL0xF8PCD90G1+Qumcl6nKb8lObxZQ8iezlEybOXlwkG5t2tIbEJELw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:09 +0100 Subject: [PATCH 6/9] doc/bitbake-user-manual-hello: refresh the layer creation walkthrough MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-6-266a5f5d51ad@bootlin.com> References: <20261202-layer-conf-doc-changes-v1-0-266a5f5d51ad@bootlin.com> In-Reply-To: <20261202-layer-conf-doc-changes-v1-0-266a5f5d51ad@bootlin.com> To: bitbake-devel@lists.openembedded.org Cc: Thomas Petazzoni , docs@lists.yoctoproject.org, Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2668; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=VPctjN29Xz4yq+7jrdzcK+UMRqGVKE1rHSIKHIQu/mg=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpKPLYTO7ETgwdmzEHNvNmFb8ulHPR37t7Dy GWHtG1vh3+JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSgAKCRDRgEFAKaOo Nm6WD/0UT869Y85EBQkDumey4vfyUZ5mwlkxtd1d47blAIZ1F8y0N/Lw6NqLv7KTRreHF32jDAK lyhSshFH4cYuu5ZkOLpxtLNA9efywjm5fGbXNKel400hLpv1UO/XfzqJYdApaPQtujrQKPOSoEH smDzdnj83TE/GDXjKyN/IQg/bQ+ak4asr8v+q6dZ/rEyKGVqWb5Lf313iEFQVC7GwjV0jHnfliO SxWhtQEzmJkxpKriORhzeTQUROZhwncLIqTccmUUHYnsx40CIYviysOBuRicWmbFJRpXz+s9XeV ReR58GSV/Ln0gtAUbKEKRmJaammSW2tq1F6TdmHdGL3A26hCz74e0rEZw2UlqOXHiEsG80aDj1g FyX3oHKhTKcIC/G7dSgChIRgWBw452GvjlMSuknhX5KjFw9OSp+5nDsDG6gNoNLsvnNyS+rnGh4 NnfhzjSNqRufaAhHdJvPgA3HvFga4hvlhOT90PNvHbYkzImMiLRbkLxx1i1zA2hZ+fdSwc+UO86 1VD2NSdw14UmCFCe+w3a3/00uYQ1nVFbZkyhhUIYaosULJoNww3NoY6PdMdDHgnarAmaAKxUK18 GO3rGiab5sym99bCW8qbb+xXzSPNkAA4PfK8dEhBcL8wm4lliaX3QrW+sOOSGDhtk5HsYXV+6JM LbACGm/GiieXQ4Q== 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:25:41 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10883 The new layer.conf format takes a minimal number of variable assignments - reflect it in the intro example. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-hello.rst | 26 +++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-hello.rst b/doc/bitbake-user-manual/bitbake-user-manual-hello.rst index 654196ca2..a9666a507 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-hello.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-hello.rst @@ -306,16 +306,14 @@ Following is the complete "Hello World" example. Move to the ``conf`` directory and create a ``layer.conf`` file that has the following:: - BBPATH .= ":${LAYERDIR}" - BBFILES += "${LAYERDIR}/*.bb" - BBFILE_COLLECTIONS += "mylayer" - BBFILE_PATTERN_mylayer := "^${LAYERDIR_RE}/" + LAYERNAME = "mylayer" + LAYERVERSION = "1" LAYERSERIES_CORENAMES = "hello_world_example" - LAYERSERIES_COMPAT_mylayer = "hello_world_example" + LAYERSERIES_COMPAT = "hello_world_example" - For information on these variables, click on :term:`BBFILES`, - :term:`LAYERDIR`, :term:`BBFILE_COLLECTIONS`, :term:`BBFILE_PATTERN_mylayer ` - or :term:`LAYERSERIES_COMPAT` to go to the definitions in the glossary. + For information on these variables, click on :term:`LAYERNAME`, + :term:`LAYERVERSION`, :term:`LAYERSERIES_CORENAMES` or + :term:`LAYERSERIES_COMPAT` to go to the definitions in the glossary. .. note:: @@ -325,8 +323,14 @@ Following is the complete "Hello World" example. is compatible, and add the meta-openembedded layer to your project. You need to create the recipe file next. Inside your layer at the - top-level, use an editor and create a recipe file named - ``printhello.bb`` that has the following:: + top-level, create the ``recipes-hello/hello`` directories: + + .. code-block:: + + mkdir -p recipes-hello/hello + + Then, in the ``hello`` directory created above, use an editor and create a + recipe file named ``printhello.bb`` that has the following:: DESCRIPTION = "Prints Hello World" PN = 'printhello' @@ -351,7 +355,7 @@ Following is the complete "Hello World" example. $ cd $HOME/hello $ bitbake printhello - ERROR: no recipe files to build, check your BBPATH and BBFILES? + ERROR: Nothing PROVIDES 'printhello' Summary: There was 1 ERROR message shown, returning a non-zero exit code.