From patchwork Thu Dec 2 20:28:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 1018 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 007E7C433EF for ; Thu, 2 Dec 2021 20:28:49 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web08.2489.1638476928954323883 for ; Thu, 02 Dec 2021 12:28:49 -0800 Authentication-Results: mx.groups.io; dkim=missing; 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 0C5321435 for ; Thu, 2 Dec 2021 12:28:47 -0800 (PST) Received: from oss-tx204.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 ESMTPSA id A8EEB3F766 for ; Thu, 2 Dec 2021 12:28:46 -0800 (PST) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 1/2] arm/edk2-firmware: force debug builds when using Clang Date: Thu, 2 Dec 2021 20:28:43 +0000 Message-Id: <20211202202844.2555322-1-ross.burton@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 02 Dec 2021 20:28:49 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/2511 edk2-firmware release builds with clang fail: MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c:142:15: error: variable 'Status' set but not used [-Werror,-Wunused-but-set-variable] This is upstream as https://bugzilla.tianocore.org/show_bug.cgi?id=3758, but until that is resolved we can just force debug builds with clang. Signed-off-by: Ross Burton --- meta-arm/recipes-bsp/uefi/edk2-firmware.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-arm/recipes-bsp/uefi/edk2-firmware.inc b/meta-arm/recipes-bsp/uefi/edk2-firmware.inc index 7072d1b4..dd428d41 100644 --- a/meta-arm/recipes-bsp/uefi/edk2-firmware.inc +++ b/meta-arm/recipes-bsp/uefi/edk2-firmware.inc @@ -26,6 +26,10 @@ COMPATIBLE_MACHINE ?= "invalid" PACKAGE_ARCH = "${MACHINE_ARCH}" EDK2_BUILD_RELEASE = "1" +# Release builds don't work with clang yet: +# https://bugzilla.tianocore.org/show_bug.cgi?id=3758 +EDK2_BUILD_RELEASE:toolchain-clang = "0" + EDK2_PLATFORM = "unset" # build --platform EDK2_PLATFORM_DSC = "unset" @@ -110,3 +114,4 @@ do_deploy() { cp -rf ${D}/firmware/* ${DEPLOYDIR}/ } addtask deploy after do_install +TOOLCHAIN = "clang" \ No newline at end of file From patchwork Thu Dec 2 20:28:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 1017 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03A1CC433FE for ; Thu, 2 Dec 2021 20:28:50 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web09.2529.1638476928949884521 for ; Thu, 02 Dec 2021 12:28:49 -0800 Authentication-Results: mx.groups.io; dkim=missing; 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 98D121515 for ; Thu, 2 Dec 2021 12:28:47 -0800 (PST) Received: from oss-tx204.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 ESMTPSA id 3B7E13F766 for ; Thu, 2 Dec 2021 12:28:47 -0800 (PST) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 2/2] CI: also build qemu-generic-arm64 for clang Date: Thu, 2 Dec 2021 20:28:44 +0000 Message-Id: <20211202202844.2555322-2-ross.burton@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211202202844.2555322-1-ross.burton@arm.com> References: <20211202202844.2555322-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 02 Dec 2021 20:28:49 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/2512 Signed-off-by: Ross Burton --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index be522fc8..b2a4c438 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -177,7 +177,8 @@ qemu-generic-arm64: extends: .build parallel: matrix: - - TESTING: testimage + - TOOLCHAINS: [gcc, clang] + TESTING: testimage qemuarm64-secureboot: extends: .build