From patchwork Tue Nov 24 13:14:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 105402 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.17423.1795526093765163149 for ; Tue, 24 Nov 2026 05:14:54 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=prZrElsl; spf=pass (domain: bootlin.com, ip: 185.171.202.116, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 6B875C2C648 for ; Tue, 24 Nov 2026 13:14:59 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 0353F601E1 for ; Tue, 24 Nov 2026 13:14:52 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4DDD411E6868D; Tue, 24 Nov 2026 14:14:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795526087; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Mz7VrdZJs9P+blclLLPD49oLTuoM3b3FI92jvPchAz8=; b=prZrElslU48g7lsiLS8d4XoI2NsetcrOUxgN9cGkKckmUDiWPnpNK21ZaGvTdxg7J0RIwn /KhXwn4WxoDaA0ndLoJO6waNqIlzYymZBaRvER09MfoZ8B9sU98xX1EHFryedrTL5lXGV5 4oIkTiMctLyJzFkWoNu0Z1/FOXoty7Xe+cE18Pw8IlW689qXljGLnRrvkn1ZNRehmdPtd6 RPnVqjon2NKth+/ZSbT33B2p+WChbxVp4qz3fqMF4+aEjCLeISO9llVkRn/SzLSPxkdA6p YWe40BOQbhDYCnm5uAPenqE13pHryvxwFO/2+cW2PGBEBAZpKj30DnpuC5Sdrw== From: Antonin Godard Date: Tue, 24 Nov 2026 14:14:35 +0100 Subject: [yocto-autobuilder-helper][PATCH 1/4] scripts/run-docs-build: add openembedded-core as new argument of the script MIME-Version: 1.0 Message-Id: <20261124-docs-build-oecore-functions-v1-1-ce9f3c4fbad4@bootlin.com> References: <20261124-docs-build-oecore-functions-v1-0-ce9f3c4fbad4@bootlin.com> In-Reply-To: <20261124-docs-build-oecore-functions-v1-0-ce9f3c4fbad4@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=769; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=dtiwNZYXLI5JPAn3olbHhjUccEpT1YmBshA3OVtedfM=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrBY282KjrGaPADZtTOQWSD9ZdTKBCsP8vbVKh3 Ux+GJVdouaJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCawWNvAAKCRDRgEFAKaOo Nnb8D/97xD6yngdkwnk5EoN2NEazaeMwrECWyZvMn3I7F4VqvOWC4KITB6o/Vg4x1CmFK4D5v62 yP0EvxC1i93GiDm/FZrzUUGRDRUsc6amMdwcoXF8RAXzd7teotBal3CoIMnvO1qLhNdX3nbPlnU xpc03BUNAQdbogGzKGC6+OqbC20y8fQGQPcpsGBlxNWixvYIK0YqNqNgA1OXCSv6e2dx5Kow8q0 GlfDbbpWzFmenYyN/hQNfr7MtMZT0ltNNahWq2D8RdzxKejRu5hRWw6+szdueb5PRoWhN6aIjPX 9ubxvmDiG+w7j/vqjXEzsg2Ajute+A1JvOGDI6DmllkfrLhREFWrNvED1a3kABtbWF8uqutnf+P UgDd5Na1x2GI9FY3qvpTsG94HOQsXucoubzYvMytPI102mhTtBYMqtwJu5QgmvRpFN4b44uf6re isuGGAC2BmCTXJs1rfJPDhg2YdQ1p5mGDpoqZlD1i8WoV1zJmD8hZiMOmpxUoZqQdIdNqKdeWur FyzlN6o/eXUYehhQ4uLrnuqcQLPQO+nVzewZPcg5i6XJJoCtiSQ6WoFKstBIR2kqfVU2ZTYa6VG jwGRHKm05eYwDL5YYK37ZD8EA1qlRsZPO0yBtSthV38JYqpSFsQv1rDNXdsaE2ktLJwLmYUclaB 3fozPRRaoFGKy4A== 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 ; Tue, 24 Nov 2026 13:14:56 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5508 The script should now support openembedded-core as an argument to be able to auto-document library functions in meta/lib/. This directory is passed from yocto-autobuilder2's Buildbot configuration. Signed-off-by: Antonin Godard --- scripts/run-docs-build | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/run-docs-build b/scripts/run-docs-build index 438a1fd..57044f2 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -24,6 +24,7 @@ set -x builddir=$(realpath "$1") ypdocs=$(realpath "$2/documentation/") bbdocs=$(realpath "$3/doc/") +oecore=$(realpath "$4") outputdir=$builddir/output scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" PUBLISH=${PUBLISH:-1} From patchwork Tue Nov 24 13:14:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 105403 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.17425.1795526098588562780 for ; Tue, 24 Nov 2026 05:14:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=2czRQAvc; spf=pass (domain: bootlin.com, ip: 185.171.202.116, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 09B53C2C648 for ; Tue, 24 Nov 2026 13:15:04 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 92D75601E1 for ; Tue, 24 Nov 2026 13:14:56 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id DAEBB11E685A3; Tue, 24 Nov 2026 14:14:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795526092; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=l6DFQrRMIPNUl1lLi2BKAxO57bkO7SH8zwhdYAiDkHE=; b=2czRQAvcmf40XxYJA+k6EuAiILas7pR/JWgl9ThW1ZA+btC1VGCzkIK8IpFbHXd+2LGvZ9 H/L3IB8SjiM4FnFCNxGBXKzVTMIEngE+fmDzsQfCkyxJgPwX6SWCe8QW2ppMUWd0AiWzzk CooZli6kdzR+j/6kWA07neADDZs5OKYVNaQHJf8r3qV6BPlhyvBonIq8TGYXWzA4EkQAUr 55Ud3ChrYgvRsbQjAMuzw4D4qc/uMmki5UybmbQZTi5QqBXQQRnvcG+lOC0ut8CccAgE1/ JOpwpDdz97FgkqFcWjcKeNkFex6lZBNWmmYPpkT1erPEQMG6gbZlyihhkAIAhQ== From: Antonin Godard Date: Tue, 24 Nov 2026 14:14:36 +0100 Subject: [yocto-autobuilder-helper][PATCH 2/4] scripts/run-docs-build: checkout closest known ref for oecore/bitbake MIME-Version: 1.0 Message-Id: <20261124-docs-build-oecore-functions-v1-2-ce9f3c4fbad4@bootlin.com> References: <20261124-docs-build-oecore-functions-v1-0-ce9f3c4fbad4@bootlin.com> In-Reply-To: <20261124-docs-build-oecore-functions-v1-0-ce9f3c4fbad4@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=4218; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=K0er8NPng9GPwM5Em3whZOV8SO2tNdX4BMmyxooPa2I=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrBY29TQO7l0cOMNCPgNOkBH1bEOUl7pNJ4l9Rg 8PVuHq/tlmJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCawWNvQAKCRDRgEFAKaOo NuZRD/9yqSW9ZGHjyVZGs7PwGnAqhUY2gXeziifp1Y1dp5FaiDYwCxDOfX73ZZ0TuBBoG5h5Vi3 Za3c7DXYAs8BXI8zKhFmfHUHs1w4EZnFQ2YrPYCmREfCQ9Al7VL7vvL4DRIcV8rVNQCW6sQmetE f8f2+Hznmf3eVo+96YrCtfR3EWlqyM2NAJ5cGo77AgRvzzJafwBVEHBP/tn3XOpKJs5NWUvTOgH rqVZ4JF+QClTbU9GRxvheK0xhjo1rLiycmO+q8rZcvGUzf+Ja1qPyKgafwGTBSfk52u3NQDn/12 Aivu83q08c4ySjuCS6Hwl/2wi2ELf6SrnlrONiYwBR+RxJn13Et5/rzk2ohA4u9BabS11Zr8uPe dQ6v4G4QcVQ1DiK14aYnj23SFtewIKR15pRUfSGUI1uf6kHjwIQ0MmYP2MBfyPyZKl2rY3oj53s ETr8PBcRBBalLNcBRAsNu3tE6GzFtRm72Kv3fO1I3/g1cRm7bHXZ6GlSZLxhA8Pu3rFnXssOgUY T6XMCaAcWAeHFnKxJ5Ax+XXI3CByNfSLZnApWhGSqnUN1r8+IBEXDq/dOcefpFT0yvsXTWzmHOQ I0eLPkQkye8kDhawb8fYKGcQER8UxMbdvIKP3qgdAb39qDbnBXoiBrnkfz4DUwhZjIWJMUuwCuA oLMj4DIRfgktYuw== 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 ; Tue, 24 Nov 2026 13:15:06 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5509 Define a checkout_closest_ref function that checks out a given $repo (bitbake or openembedded-core) and tries to checkout $ref (existing ref in yocto-docs). If not found, try to checkout the closest tag to this ref in yocto-docs in $repo. For bitbake, we have to get the mapping between a Yocto release and a bitbake version: define a simple Python script for that leverages the json Python library to read the already available releases.json file. Signed-off-by: Antonin Godard --- scripts/docsutils/get-bbmapping | 24 ++++++++++++++++++++++++ scripts/run-docs-build | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/scripts/docsutils/get-bbmapping b/scripts/docsutils/get-bbmapping new file mode 100755 index 0000000..3b78c0e --- /dev/null +++ b/scripts/docsutils/get-bbmapping @@ -0,0 +1,24 @@ +#!/usr/bin/env python3 +# +# SPDX-License-Identifier: GPL-2.0-only +# +# Simple utility script called from run-docs-build, to be able to get the +# mapping between a Yocto release name and a BitBake branch, by parsing the +# releases.json file from https://dashboard.yoctoproject.org/releases.json. +# +# Takes the releases.json file as first argument and branch name as second. +# Prints the mapping when found, or empty string in all other cases. + +import json +import sys + +releases_json_path = sys.argv[1] +branch_name = sys.argv[2] + +with open(sys.argv[1], "r") as fd: + releases = json.load(fd) + +for release in releases: + if branch_name.capitalize() == release.get("release_codename", ""): + print(release.get("bitbake_version", "").strip()) + exit(0) diff --git a/scripts/run-docs-build b/scripts/run-docs-build index 57044f2..157a201 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -189,6 +189,38 @@ git clean -ffdx export LATEXMKOPTS="-silent" +function checkout_closest_ref() { + # The purpose of this function is to take a ref from yocto-docs (ref=$1) and + # checkout the closes possible ref on given (repo=$2). + # The way it works is by: + # 1. Trying to checkout the same ref on $repo. + # 2. If this fails, look for the tag closest to $ref on yocto-docs (CWD) and + # checkout this tag on $repo. + # If neither work, exit. + local repo="$1" + local ref="$2" + local bbmapping="$3" + + # keep a copy of the original ref for later + docsref="$ref" + if [ -n "$bbmapping" ]; then + ref="$bbmapping" + fi + + if git -C "$repo" rev-parse --verify --quiet "origin/${ref}" >/dev/null; then + echo "Closest ref from $docsref for $repo: origin/$ref" + git -C "$repo" checkout "origin/$ref" + return + fi + ydocs_closest_tag=$(git describe --tags --match "yocto-*" --abbrev=0 "$docsref") + if ! git -C "$repo" rev-parse --verify --quiet "${ydocs_closest_tag}"; then + echo "Tag $ydocs_closest_tag does not exists in $repo, quitting" + exit 1 + fi + echo "Closest ref from $docsref for $repo: $ydocs_closest_tag" + git -C "$repo" checkout "$ydocs_closest_tag" +} + for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_sphinx_commit" --format '%(refname:lstrip=3)') $(git tag --contains "$first_sphinx_commit" --contains "$first_dunfell_sphinx_commit" 'yocto-*'); do if [ "$branch" = "HEAD" ]; then continue @@ -215,6 +247,14 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s git reset --hard git clean -ffdx + # Tags/branches before this commit in yocto-docs do not have automatic library + # functions documentation for openembedded-core. + if git merge-base --is-ancestor 2c5846cc2c2649b29de7e7a6ac07fef5c2e7f302 HEAD; then + bbmapping="$("$scriptdir"/docsutils/get-bbmapping "$builddir/releases.json" "$branch")" + checkout_closest_ref "$bbdocs" "$branch" "$bbmapping" + checkout_closest_ref "$oecore" "$branch" "" + fi + if [ -e "${scriptdir}/docs-build-patches/${branch}/" ]; then echo "Adding patch for $branch" git apply -3 "${scriptdir}/docs-build-patches/${branch}/"000* From patchwork Tue Nov 24 13:14:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 105404 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.17426.1795526102909681759 for ; Tue, 24 Nov 2026 05:15:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=SjqVCUDT; spf=pass (domain: bootlin.com, ip: 185.171.202.116, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 8D6D7C2C648 for ; Tue, 24 Nov 2026 13:15:08 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 19A0B601E1 for ; Tue, 24 Nov 2026 13:15:01 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7778411E6992F; Tue, 24 Nov 2026 14:14:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795526096; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Zptt4DDfWgBwLD9mL4k9BaSYuMvIrBAmZRvUaeZTR1Q=; b=SjqVCUDT4DQ3Z3Fv/DNARLb9SFmiJ59TVdmH9laFmlWF7wLrFiwuGxSpxgJYdhl5r1UH+K twXv3fHzYUNeJAQsB3DuZHWL9RKONa+KjPJEv2AQdN2CZQmaCtLv7THanZhWOTO2AWVZyK kzZoclj6zmOhfIJ2ib1SFokrGyjiDCYM+EAlDnfSI7dl3pK304F3luEW8aGmhgmNnCt9li SKwVzT/cEE+BBxDyBkxMEskuSdZJl+V4ODkaKIWO1MEF9MJvldEEmZmzxAFiCOqBPRdTXg kjSRQ6sUC/gI8mEdnmKyOPs3uOgufANXvdtnqmi7H3S3sA/HVZY83uvzH8V1Pw== From: Antonin Godard Date: Tue, 24 Nov 2026 14:14:37 +0100 Subject: [yocto-autobuilder-helper][PATCH 3/4] scripts/run-docs-build: export AUTOBUILDER_BUILD when building the docs MIME-Version: 1.0 Message-Id: <20261124-docs-build-oecore-functions-v1-3-ce9f3c4fbad4@bootlin.com> References: <20261124-docs-build-oecore-functions-v1-0-ce9f3c4fbad4@bootlin.com> In-Reply-To: <20261124-docs-build-oecore-functions-v1-0-ce9f3c4fbad4@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=984; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=9Qk6eYNwXIR0NCJvSb+la6/FBSNjglXdmBJ0Rp9SdWc=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrBY29hHOjAoaKhfwFXlbZ9+/HOB1isUZYKBahM w/vTgkKQAuJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCawWNvQAKCRDRgEFAKaOo NtKREAC0F9agqwhhLLsR2D/p8UPttC2t7Z8BzINnTFZqw3jKPsOF+1wRo0LIGHkgXLnxWtQbJm8 EfDoQnVL7pvsOn1rhhnJ/iJZhLNzMBh8g+bb//cSnTMrpvzEGgBPtzpOmItfH9/yJ9qJmek/GuI NJ5oew8xyMSNirmmJcwQ1tn97RJCPEtpCijMkV4IbHxkUZhcez7BDl7KPpV6e/EnlHzxc6liV3/ CB/lOTAr+hOXgkWyXDvk0PFgM0mOokcwKBq5VSurWiFn94zKRpacNf1+BRcWmbvz7oY2uI9l7P/ /BV11pSJhNwWwb5xbBdJ8Q/ZfM/fpTNe00EqxfXso96N4nI1KzE960jU55xOBro/vK1sfncUe45 x9QZSXsbFlR6aIo5NIPGRzROaUpNh/QLnAAWKo/QGiSTM7eUgaQ3gyVAw1PMG+qgT8emH+AOvjK 8GxaERxo3Q0n0V3FZgzg0UQCKErwT7gm3qToJxCJcvUUy3Xse2ioYjTt7eDwn5fCYHeiQ/wcHaC I/W2gx6e4B4w+mz2sFwc9foKi/QJDRPq9VEvLqaiZef5EAS3y0tSxjTFoJ9U+Dd5WRkYX8reVbe oNBT7U7YTNQrCOYb5wgDNZFI5H5CRlu9dQbJXf4xSvEkItm8gBLvG2+K7dTcppj7iCm8w8DI7RV tIjERyHLcb4DYYA== 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 ; Tue, 24 Nov 2026 13:15:06 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5510 yocto-docs reads this variable to perform stricter checks to make sure everything is setup correctly for building the docs. This ensures that docs are built correctly before publishing them. See how it is used in yocto-docs directly. Signed-off-by: Antonin Godard --- scripts/run-docs-build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/run-docs-build b/scripts/run-docs-build index 157a201..36e0793 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -21,6 +21,12 @@ set -u set -o pipefail set -x +# yocto-docs reads this variable to perform stricter checks to make sure +# everything is setup correctly for building the docs. This ensures that docs +# are built correctly before publishing them. See how it is used in yocto-docs +# directly. +export AUTOBUILDER_BUILD=1 + builddir=$(realpath "$1") ypdocs=$(realpath "$2/documentation/") bbdocs=$(realpath "$3/doc/") From patchwork Tue Nov 24 13:14:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 105405 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.17430.1795526108151064459 for ; Tue, 24 Nov 2026 05:15:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=fzNvGp8G; spf=pass (domain: bootlin.com, ip: 185.171.202.116, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id ED462C2C648 for ; Tue, 24 Nov 2026 13:15:13 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 8516B601E1 for ; Tue, 24 Nov 2026 13:15:06 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id F3CC311E69951; Tue, 24 Nov 2026 14:15:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795526101; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=8pyQtrf7yCiviEcYu9RQtRZvOt2pqY75FInzdlluXk8=; b=fzNvGp8Gc9vjzpeZbC7NXzLjI3ghU/jKUQNuZFTU76+vRnC5sSkp+B4jmIlV+IFiGLeojg DUhAMhpSMJjn2Twg5YfJIfP/zhe0E3yDzTqE3jAyDlwzIJtWnmw2jeIArMYPo6hKvLqvHZ /YsNXb3EzxMIlqHj27QE33W4jE7dcwII2CPb54nFWZwOc2gaHV+EyzecP/qGsmUvFTnjxa GEMd0aG3Q1FPq24oSYIR9L1ocQ+TW8U2MEZEijQRjvm9lJ74ry74B89XDm/rQ17c+IXUkd 8WJ4iSrUKuB+1yaxuGT/8NZom1JDF55u/5htIRVJyVEDt9lHQ9HUwxN/YqGKzA== From: Antonin Godard Date: Tue, 24 Nov 2026 14:14:38 +0100 Subject: [yocto-autobuilder-helper][PATCH 4/4] scripts/run-docs-build: export bitbake/oecore repository paths MIME-Version: 1.0 Message-Id: <20261124-docs-build-oecore-functions-v1-4-ce9f3c4fbad4@bootlin.com> References: <20261124-docs-build-oecore-functions-v1-0-ce9f3c4fbad4@bootlin.com> In-Reply-To: <20261124-docs-build-oecore-functions-v1-0-ce9f3c4fbad4@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=982; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=i+qoB0J1p+9EhzYzBShr1JefAqbgGbH4U1ZCe0b/oCQ=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrBY29DSUTT9gvUqZhvVfIyeyYlADUjBnmj/Al8 CVL0CSdprmJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCawWNvQAKCRDRgEFAKaOo NixoD/9D5+Dcf7hqqwcxnZQ0774V+w8u7hNunfMHN4TN6yKX9PcnICQ1P515lqN747XzTNifIq5 U5fmgiMPO5vnPaniX5mD/ZxB2FpqYsLJ70MEvU4S94wlTA7y/WBmCi+49UoogPKpxrkTbAhGF5p Mbf8NPL3Yebq0/TR99j6GVcL2vTETUt7ugpiKkQ92d3dqcHsB7VVpw6HMI9T+TefXp3g7c5Jxa6 dNoFCzvy1LiWiW7VW/kH5X+L9Y9DhZAWwplJmFn+qaEW8TvjTWiESjyprYOr5a6s3+9Kqv6iLt3 3Y5ymvEIkdTV/gEO4Rmfx2M6traXe3z/+EWDcDSkJDqKIb+w+I+6dlQRzbknTnXXkzw7CjBZutJ FuxNS9nCLtUEG9GdFH0O56BS8WLa9x54qMIn1rWGrnDXYrH1HKsbdhLEr1Nv4IilxqRGw7WRQVb zKkeD8tXI+oeKDx3Km6QGROuGQbBsNEVCEIYoyED+GvzkvOFMc7MQ2clrQaefuF9PzNtxyh9E/t v5ZoddiE6bmgyDtWggfogAhvxJrz8k1EplGheUzbo12q2UMcphhHWg70DiHlzp3oJCuxgD3MV8b ru3lwYcc+fLQw9d6VT0oBzHWPxMCh+3Mu0frI0PiM77UMig9g6OXvBlxHKk1tGcuTaAtP3cwCK6 xDGwK7zvEO50W6A== 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 ; Tue, 24 Nov 2026 13:15:16 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5511 While the Autobuilder default layout is already the one expected by yocto-docs to document docstrings, export the two environment read by yocto-docs in case this layout changes in the future, so we won't forget to update it. Signed-off-by: Antonin Godard --- scripts/run-docs-build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/run-docs-build b/scripts/run-docs-build index 36e0793..4a7e5be 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -195,6 +195,11 @@ git clean -ffdx export LATEXMKOPTS="-silent" +# These two variables are used by yocto-docs to locate these two repositories +# and document Python docstrings. +export BITBAKE_REPO_PATH="$bbdocs/../" +export OECORE_REPO_PATH="$oecore" + function checkout_closest_ref() { # The purpose of this function is to take a ref from yocto-docs (ref=$1) and # checkout the closes possible ref on given (repo=$2).