From patchwork Wed Dec 2 22:48:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107043 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1034.1796251735389008714 for ; Wed, 02 Dec 2026 14:48:55 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=lLQ/oihE; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B8A921516 for ; Wed, 2 Dec 2026 14:48:51 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1D26A3F86F for ; Wed, 2 Dec 2026 14:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796251734; bh=hvkNdIQWlVuUZwXqLlaku0XL/7K1N1xFnFh+1KzH2tE=; h=From:To:Subject:Date:From; b=lLQ/oihEa9HqcNBYPJxUf88SiyIhb7Bk5PcqzwDZeQGFS/ATp27VUa/UonhimUDfV C+PuAh1l6FyoxAaK1fupW2/0hV3SZ5jD76Zc3aF66WoHprfkEi17uZDTWbIwTE1q7f cKbpVe7kH8+e/M+HFtu1DX5+ZbsYoOQ9awVTqtIw= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/2] populate_sdk_base: fix typo in error message Date: Wed, 2 Dec 2026 22:48:45 +0000 Message-ID: <20261202224846.576290-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer 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 22:48:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251863 When listing the valid SDK_ARCHIVE_TYPEs, the value should be "7zip" not "7z". Signed-off-by: Ross Burton --- meta/classes-recipe/populate_sdk_base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/populate_sdk_base.bbclass b/meta/classes-recipe/populate_sdk_base.bbclass index 35d2f203399..f29e12c27c1 100644 --- a/meta/classes-recipe/populate_sdk_base.bbclass +++ b/meta/classes-recipe/populate_sdk_base.bbclass @@ -115,7 +115,7 @@ python () { d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; tar ${SDKTAROPTS} -cf - . | xz ${SDK_XZ_OPTIONS} > ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE}') else: - bb.fatal("Invalid SDK_ARCHIVE_TYPE: %s, the supported SDK archive types are: zip, 7z, tar.xz, tar.zst" % d.getVar('SDK_ARCHIVE_TYPE')) + bb.fatal("Invalid SDK_ARCHIVE_TYPE: %s, the supported SDK archive types are: zip, 7zip, tar.xz, tar.zst" % d.getVar('SDK_ARCHIVE_TYPE')) } SDK_RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" From patchwork Wed Dec 2 22:48:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107044 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1035.1796251735906375737 for ; Wed, 02 Dec 2026 14:48:56 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=Do7Y35Jf; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 781D21570 for ; Wed, 2 Dec 2026 14:48:52 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DCB7A3F86F for ; Wed, 2 Dec 2026 14:48:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796251735; bh=HCy5jU9cNhX/Yup6BD5eGYRmgHqf1Vc5XcKE0PysBik=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Do7Y35JftzJYq7Q9gcD0qgE2G58snb2tbezVo0DV3915C+1LfZC4lKjK34T5ju48X ezRsyRDw3QiXUqABKzr1v+7pnDtEoVxBaZdK4D0YNTtmwDtqiNFvvg+vFPuL9+Sohc wxY4jThaNNl/p/GRVxjM59Zd8Z3+CK313WtgZfSw= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/2] oeqa/selftest/sdk: add install tests for all SDK_ARCHIVE_TYPE variants Date: Wed, 2 Dec 2026 22:48:46 +0000 Message-ID: <20261202224846.576290-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261202224846.576290-1-ross.burton@arm.com> References: <20261202224846.576290-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer 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 22:48:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251864 Add tests to verify that the SDK installs correctly with each of the archive types. The test is minimal: success is defined as the SDK installing and an environment script being present. The 7zip type has to be conditional on meta-oe being present, as 7zip is in that layer. Also check that the required host tools are present, so hosts with a minimal set of tools don't fail. Signed-off-by: Ross Burton --- meta/lib/oeqa/selftest/cases/sdk.py | 43 ++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/sdk.py b/meta/lib/oeqa/selftest/cases/sdk.py index ee1e4ca4200..cb31d8ec365 100644 --- a/meta/lib/oeqa/selftest/cases/sdk.py +++ b/meta/lib/oeqa/selftest/cases/sdk.py @@ -13,7 +13,7 @@ import select from tempfile import TemporaryDirectory from oeqa.selftest.case import OESelftestTestCase -from oeqa.utils.commands import bitbake, get_bb_vars +from oeqa.utils.commands import bitbake, get_bb_var, get_bb_vars class SDKTests(OESelftestTestCase): @@ -123,3 +123,44 @@ IMAGE_INSTALL:append = " selftest-hello" self.logger.debug(f"runqemu works in SDK: {runqemu_works}\n{output}") self.assertTrue(runqemu_works, f"runqemu does not work in SDK\n{output}") + +class SDKInstallTests(OESelftestTestCase): + + def do_install_with_compression(self, compression): + image = "core-image-minimal" + + self.write_config(f""" +SDK_ARCHIVE_TYPE = "{compression}" +""") + bitbake(f"{image} -c populate_sdk") + + with TemporaryDirectory() as tmpdir: + vars = get_bb_vars(["SDK_DEPLOY", "TOOLCHAIN_OUTPUTNAME"], image) + sdk_installer = os.path.join(vars["SDK_DEPLOY"], vars["TOOLCHAIN_OUTPUTNAME"] + ".sh") + # Install the SDK + subprocess.check_call([sdk_installer, "-y", "-d", tmpdir]) + # Verify that at least environment scripts were created + environment_scripts = glob.glob(os.path.join(tmpdir, "environment-setup-*")) + self.assertTrue(environment_scripts) + + def test_sdk_install_7z(self): + if "openembedded-layer" not in get_bb_var('BBFILE_COLLECTIONS').split(): + self.skipTest("Test needs meta-oe for 7zip") + if not shutil.which("7z"): + self.skipTest("Test needs 7z on the host") + self.do_install_with_compression("7z") + + def test_sdk_install_tar_xz(self): + if not shutil.which("xz"): + self.skipTest("Test needs xz on the host") + self.do_install_with_compression("tar.xz") + + def test_sdk_install_tar_zst(self): + if not shutil.which("zstd"): + self.skipTest("Test needs zstd on the host") + self.do_install_with_compression("tar.zst") + + def test_sdk_install_zip(self): + if not shutil.which("unzip"): + self.skipTest("Test needs unzip on the host") + self.do_install_with_compression("zip")