From patchwork Wed Dec 2 14:25:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106992 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36790.1796221530802021055 for ; Wed, 02 Dec 2026 06:25:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=1syawoXk; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 6915C4E41847 for ; Wed, 2 Dec 2026 14:25:29 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 3FEBA6075F; Wed, 2 Dec 2026 14:25:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 1281711EA1B50; Wed, 02 Dec 2026 15:25:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221528; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=inKFelckFyJ0rKuUe6JKJvcxFgUAuO9NuVuoslQx0sM=; b=1syawoXk5H10dTCenis/UZf+7FCXU022xNDea8MmF0Shv/tYP3SwJPCYs5JGDYQjmADpTM EaslJJcv/hvCMaG3qWWvWKvk/aYVG7QOtRFROYKQOlA7W9xo5oHK24sE+2FBAKBNW0l+GM OnAfoA1YYZS/cvwtxd1UGA5OwrE38iGwbVciFU6kxj/pUVaAMXmpCoaGS98IJ6NZIpfUVi TXppLXy/ecM2N0fsd584AVkeRcdbG4u4J9yDJbiikoQjDhkTXGkrWUJmWRrE/g+8VuS9hO vPFL+sjCV7d1tpU7ucJeyAFvTo0yZK3A1vL4G4KkMoeuxqadOScxbnvK8tSwzA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:07 +0100 Subject: [PATCH 4/9] doc/bitbake-user-manual-ref-variables: BBMASK: refresh definition MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-4-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=3729; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=KBSlyniwGrDhlUPnlQriOx0mZFC7jwa6zvQm09Xejgo=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpKFudfB9F8calFSe1YdHgiy/BsY6QdSGKTK LpZJ6DnDX6JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSgAKCRDRgEFAKaOo NoOoD/9EeGeeXJzdbqE5dFDFEdBXblRsjxso1q+c90sXuKjOUJxIC6XhqLF+fWCeSf78RE6xWn4 drdNySwiK4VZM2wPVGs3JxtJx2Fus+T1CXhq8y2pOv01nDKzYtSaLDUcmFy5CNLwgtq1VeIzgol a7y0nyXQYwB6/AkBHSiVAvizdiQKxSCBjEDanxrtYia8l1p8R+dE3L634y0rWKc7XrTqpJRxEjz CPS4Vyn52C10YGA/mBe/tAcK8SKgAxJcQ5AhgDrvNZx4+Or8150ZVG4mglp2/XjkPJzFWKieKY0 PiHqtHuqPlJ4XcJHkSNAN3dn7cH6rrjngVOPCv/KcIKzJHjH0bq3QhMqrZ4dofxGxMGflmx3FxF bUVSk4hrdwAN57mLcX7rS52jtpsISo29zwzv4NNAYs3lP3g46E6hDWqlIRNPsreG5jK9qEcowNX 29LUMf59YCr/RXo4WBUQF/cOWQ+kwB9ziABeVT7r8z83uppjJYwxlZEEBvu2tnD09KmskEdSlMd FFDobYpClB7RgN2KFCPfNV9Dq4XPayMOstwmloMBJt2+SlVYTAGvRjX+NePJOS/8un84II3qFMj dbsHjw1nxL+KxlHyw7T8eBYWcjUrd4XU4KvyYiEIszuKPfzbwW+5tSLHDGgHvzztBp1nFQiD5R1 pD4x/nHv2JCUYVQ== 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:40 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10881 After the layer configuration format changes, update the BBMASK definition which used the BBFILE_PATTERN variable for its examples. The LAYERDIR variable has replaced it. Note that compared to BBFILE_PATTERN, LAYERDIR does not contain the leading "^" which was used in the regular expression. Add it manually in the examples. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-ref-variables.rst | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst index 4baea1550..5b163b74e 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst @@ -1023,16 +1023,16 @@ overview of their function and contents. BitBake to ignore all recipe and recipe append files in ``recipes-bsp`` directory (recursively) of ``meta-ti-bsp``:: - BBMASK = "${BBFILE_PATTERN_meta-ti-bsp}/recipes-bsp/" + BBMASK = "^${LAYERDIR_meta-ti-bsp}/recipes-bsp/" If you want to mask out multiple directories or recipes, you can specify multiple regular expression fragments. This next example masks out multiple directories and individual recipes:: - BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/recipes-graphics/libgal/" - BBMASK += "${BBFILE_PATTERN_openembedded-layer}/recipes-support/" - BBMASK += "${BBFILE_PATTERN_openembedded-layer}/.*/openldap" - BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/.*/optee.*\.bbappend" + BBMASK += "^${LAYERDIR_meta-ti-bsp}/recipes-graphics/libgal/" + BBMASK += "^${LAYERDIR_meta-oe}/recipes-support/" + BBMASK += "^${LAYERDIR_meta-oe}/.*/openldap" + BBMASK += "^${LAYERDIR_meta-ti-bsp}/.*/optee.*\.bbappend" This masks: @@ -1053,12 +1053,12 @@ overview of their function and contents. directory and not a file, you must end the expression with a trailing slash. That is:: - BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/recipes-graphics/libgal/" + BBMASK += "^${LAYERDIR_meta-ti-bsp}/recipes-graphics/libgal/" Will match anything under ``recipes-graphics/ligbal/`` directory of ``meta-ti-bsp``. And:: - BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/recipes-graphics/libgal" + BBMASK += "^${LAYERDIR_meta-ti-bsp}/recipes-graphics/libgal" Will match in ``meta-ti-bsp`` any file prefixed with ``libgal`` in ``recipes-graphics/`` and any directory (recursively; and its @@ -1075,8 +1075,7 @@ overview of their function and contents. .. note:: Because these are complete regular expressions, failing to start the - pattern with a ``^`` sign (which is usually the first character in - :term:`BBFILE_PATTERN`) means it can match *any* portion of a path. + pattern with a ``^`` sign means it can match *any* portion of a path. Take the following as an example:: BBMASK = "recipes-graphics/libgal/" @@ -1110,7 +1109,7 @@ overview of their function and contents. makes sure that doesn't happen. However, this doesn't prevent matching a directory ``recipes-graphics/libgal/`` from another layer. - Again, we highly recommend using :term:`BBFILE_PATTERN` in the + Again, we highly recommend using ``^`` and :term:`LAYERDIR` in the expressions to specify absolute paths specific to one layer. :term:`BBMULTICONFIG`