Re: [yocto-autobuilder-helper][PATCH 06/11] config.json: add vcontainer-tarball build target

Paul Barker <[email protected]> Mon, 11 May 2026 09:48:10 +0100
Newsgroups org.yoctoproject.lists.yocto,org.yoctoproject.lists.yocto-patches
Message-ID <[email protected]>
On Thu, 2026-05-07 at 18:25 -0700, [email protected] wrote:
> From: Tim Orling <[email protected]>
> 
> Add the vcontainer-tarball build target which produces the
> meta-virtualization SDK used by downstream container build/test
> jobs. Modelled after the buildtools-tarball target.
> 
> The target uses EXTRACMDS to reset BBMULTICONFIG for the worker
> shell, places the extravars in the per-step config, and includes
> a publish-artefacts step so the resulting SDK tarball is staged
> for reuse by container-tests and other consumers.
> 
> Signed-off-by: Tim Orling <[email protected]>
> ---
>  config.json | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
> 
> diff --git a/config.json b/config.json
> index ab0ad7c..9e6898d 100644
> --- a/config.json
> +++ b/config.json
> @@ -1869,6 +1869,32 @@
>          },
>          "toaster" : {
>              "EXTRACMDS" : ["${SCRIPTSDIR}/run-toaster-tests ${HELPERBUILDDIR} ${HELPERBUILDDIR}/../layers/bitbake"]
> +        },
> +        "vcontainer-tarball": {
> +            "NEEDREPOS" : ["bitbake", "meta-openembedded", "meta-virtualization"],
> +            "ADDLAYER" : [
> +                "${BUILDDIR}/../meta-openembedded/meta-oe",
> +                "${BUILDDIR}/../meta-openembedded/meta-python",
> +                "${BUILDDIR}/../meta-openembedded/meta-networking",
> +                "${BUILDDIR}/../meta-openembedded/meta-filesystems",
> +                "${BUILDDIR}/../meta-virtualization"
> +            ],
> +            "step1" : {
> +                "shortname" : "Build vcontainer-tarballs",
> +                "BBTARGETS" : "vcontainer-tarball",
> +                "extravars" : [
> +                    "DISTRO_FEATURES:append = ' virtualization vcontainer'",
> +                    "BBMULTICONFIG = 'vruntime-aarch64 vruntime-x86-64'",
> +                    "INIT_MANAGER = 'systemd'"
> +                ],
> +                "EXTRACMDS" : ["sed -i '/vruntime-aarch64 vruntime-x86-64/d' ${HELPERBUILDDIR}/conf/auto.conf"]

What does this sed command achieve? EXTRACMDS run after building
BBTARGETS.

Best regards,

-- 
Paul Barker
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----

iIcEABYKAC8WIQSzjPXf5Y1BDWhU2iCrY1Tsnbr0bgUCagGXyhEccGF1bEBwYmFy
a2VyLmRldgAKCRCrY1Tsnbr0bpYYAQDpJ9raayzlLeTIwdWlxEcrQz231OlCpUAI
PmUGp8ii5AEA1BgTLARXYafWeu1VqwoJGAN+YOK9RIfWFFlCVmpT6QE=
=RcpM
-----END PGP SIGNATURE-----