From patchwork Wed Dec 2 14:25:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106996 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36787.1796221529846951858 for ; Wed, 02 Dec 2026 06:25:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=MZa8zYtJ; 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 CC9B24E41846 for ; Wed, 2 Dec 2026 14:25:27 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 9C9426075F; Wed, 2 Dec 2026 14:25:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C210F11EA1B48; Wed, 02 Dec 2026 15:25:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221527; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=KNrPFZ4dPljdhVh0m+gSCfGoaZI2dBBOhpuLucuAIDM=; b=MZa8zYtJY9VfemF7HeMhpToin5iTzKCY90Rf10XRjbGK3gSB7ft7dBuJq/Ft44PUTPInpD oiFkpsS6k8lgVvBR1TgNTRi5zDOEsK8EDcVRl8PHjxEniLdwzi3ZX7NWqM/epwm09PAEQ3 hN4ikpeX9iZ7ff1/lD6kxNINXdZNCz/AxPErokXe/3Kzu8KJS6389PvVJOFDEAXCgHkTKv +oG4onUQHVdgu4yImRx88bJXTkkK9iBQzOY/Y6SgUzotHB1jeW4lXHLkjiX0UnxsYVPG79 NVdtTS4ccyt45zbBuF1q2/QoBZivfrJ7gt01T0qXXKStZdcPFkf9Te6Lz8GWcw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:05 +0100 Subject: [PATCH 2/9] doc/bitbake-user-manual-ref-variables: rework the DEFAULT_PREFERENCE definition MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-2-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=2481; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=C7+41DssSsJr2ZYyxl9Tpjk90SpkxQex8YRUf2UmLtQ=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpJA+f4KoHprM4FD6Q6L2OiONnCIRKrTw3sm zllMNgrJxeJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSQAKCRDRgEFAKaOo Nh3ND/9Zy5Eb78SNwz0qnq3/iD3gqmTS/Plkt4Uxz/vadC0pHHjZPAsL0KOD8SyggzrFScxWS1k rz4VH2cIIXSly7iKBZRirjdOPfH7qkBVSH76sjnVwkwBQ3cfWRckucxtBHnEFgifFKUQhoyx3m9 0ilVAwPJeFToohBYjvsPsKgveg6oZMFgnbWFyVg6DaMdiDrfjN4Y20Xk7rqcYD+gHolLvf8ncig b7jbCS7I6u2trkTFP2jKI8JEmmw27AoKQ+Mo0eGecv9113/7s+59TSmyvTJKNLN0GxIybC5uA2T MlSpYRWBGoPsTtm/FiFoBpfLFwGn4H1YWeoQwvYKV9Dz02k7OVf8Tr9hYKARFlgnFMkyHudaZgS 07kOaYuNSc8dR9/75n0YbgvdaCgkfHrj4YWB0Lt1Gwr4ZEhMQGArsFyT+BQ7d6j6+AGfkZA8qGp BlKvJEpYE83rMw3MZnN3MZrqPOKeVslLW+QWPvLhAylfnUU7qOFIDupo37vcb6fiRjdyAxrtfEG mOVUlZnT1nsQbRguaMoqDjJYeMk4ZOBb/stsMx8XOS7k+qwO+nkdGGqAbA85C89VRXVW1mcM9Fx 3s+wAfBt19JvLQ2g9Iey7TSWy8MQmyvraBIarY4/z7im6Xix1wYEqZOjtBIQyqovjOJ/tWb+bgp T1/4CY1HSG9rGoA== 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:42 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10879 The bitbake-user-manual-execution.rst contained a better explanation for how this variable works, so move this explanation here. Also remove the BBFILE_PRIORITY mention as this is not supported anymore, after the layer configuration format changes. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-ref-variables.rst | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 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 8dcda6431..fa5dc9b35 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst @@ -1177,19 +1177,19 @@ overview of their function and contents. so it does not need to be parsed every time BitBake is started. :term:`DEFAULT_PREFERENCE` - Specifies a weak bias for recipe selection priority. - - The most common usage of this is variable is to set it to "-1" within - a recipe for a development version of a piece of software. Using the - variable in this way causes the stable version of the recipe to build - by default in the absence of :term:`PREFERRED_VERSION` being used to - build the development version. - - .. note:: - - The bias provided by DEFAULT_PREFERENCE is weak and is overridden by - :term:`BBFILE_PRIORITY` if that variable is different between two - layers that contain different versions of the same recipe. + Specifies a weak bias for recipe selection priority, when the same recipe + is provided by different layers. + + By default, recipes have a preference of "0". Setting + :term:`DEFAULT_PREFERENCE` to "-1" makes the recipe unlikely to be used + unless it is explicitly selected. Setting :term:`DEFAULT_PREFERENCE` to + "1" makes it likely the recipe is used. :term:`PREFERRED_VERSION` + overrides any :term:`DEFAULT_PREFERENCE` setting, if the same recipe is + provided with different versions among the different layers. + + :term:`DEFAULT_PREFERENCE` is often used to mark newer and more + experimental recipe versions until they have undergone sufficient testing + to be considered stable. :term:`DEPENDS` Lists a recipe's build-time dependencies (i.e. other recipe files).