From patchwork Tue Jun 18 15:41:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 45319 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 6DE6FC27C4F for ; Tue, 18 Jun 2024 15:41:34 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.89909.1718725292436036655 for ; Tue, 18 Jun 2024 08:41:32 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); 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 A6AE3DA7 for ; Tue, 18 Jun 2024 08:41:56 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.oss.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 A75283F6A8 for ; Tue, 18 Jun 2024 08:41:31 -0700 (PDT) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 1/3] arm/optee-ftpm: silence new compiler errors from GCC 14.1 Date: Tue, 18 Jun 2024 15:41:27 +0000 Message-Id: <20240618154129.456464-1-ross.burton@arm.com> X-Mailer: git-send-email 2.34.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 ; Tue, 18 Jun 2024 15:41:34 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5825 GCC 14.1 is stricter with code validation and the build now fails. However as upstream appear to be about to remove this source entirely from upstream[1] I didn't want to spend long investigating this if upstream changes will obsolete it, so just silence the errors for now. [1] https://github.com/microsoft/ms-tpm-20-ref/pull/108 Signed-off-by: Ross Burton --- meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb b/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb index d5f6e01d..9546215a 100644 --- a/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb +++ b/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb @@ -42,6 +42,11 @@ EXTRA_OEMAKE:append:aarch64:qemuall = "\ CFG_ARM64_ta_arm64=y \ " +# TODO: GCC 14.1 is finding genuine issues with the code but as upstream appear to be removing +# the code we're building (https://github.com/microsoft/ms-tpm-20-ref/pull/108) lets just +# ignore them for now. +CFLAGS += "-Wno-implicit-function-declaration -Wno-incompatible-pointer-types" + # python3-cryptography needs the legacy provider, so set OPENSSL_MODULES to the # right path until this is relocated automatically. export OPENSSL_MODULES="${STAGING_LIBDIR_NATIVE}/ossl-modules" From patchwork Tue Jun 18 15:41:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 45320 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 A57E8C2BA18 for ; Tue, 18 Jun 2024 15:41:34 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.89634.1718725292886924438 for ; Tue, 18 Jun 2024 08:41:33 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); 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 369461042 for ; Tue, 18 Jun 2024 08:41:57 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.oss.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 376213F6A8 for ; Tue, 18 Jun 2024 08:41:32 -0700 (PDT) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 2/3] arm-bsp/firmware-image-juno: use UNPACKDIR Date: Tue, 18 Jun 2024 15:41:28 +0000 Message-Id: <20240618154129.456464-2-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240618154129.456464-1-ross.burton@arm.com> References: <20240618154129.456464-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 ; Tue, 18 Jun 2024 15:41:34 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5826 Update the source/fetching for the new S/UNPACKDIR behaviour. This patch is complicated by the recipe using UNPACK_DIR already, so I changed that to avoid confusion. Signed-off-by: Ross Burton --- .../recipes-bsp/images/firmware-image-juno.bb | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/meta-arm-bsp/recipes-bsp/images/firmware-image-juno.bb b/meta-arm-bsp/recipes-bsp/images/firmware-image-juno.bb index 45f2ec72..0b17b024 100644 --- a/meta-arm-bsp/recipes-bsp/images/firmware-image-juno.bb +++ b/meta-arm-bsp/recipes-bsp/images/firmware-image-juno.bb @@ -14,7 +14,7 @@ COMPATIBLE_MACHINE = "juno" LINARO_RELEASE = "19.06" -SRC_URI = "http://releases.linaro.org/members/arm/platforms/${LINARO_RELEASE}/juno-latest-oe-uboot.zip;subdir=${UNPACK_DIR} \ +SRC_URI = "http://releases.linaro.org/members/arm/platforms/${LINARO_RELEASE}/juno-latest-oe-uboot.zip;subdir=${S} \ file://images-r0.txt \ file://images-r1.txt \ file://images-r2.txt \ @@ -23,7 +23,8 @@ SRC_URI = "http://releases.linaro.org/members/arm/platforms/${LINARO_RELEASE}/ju SRC_URI[md5sum] = "01b662b81fa409d55ff298238ad24003" SRC_URI[sha256sum] = "b8a3909bb3bc4350a8771b863193a3e33b358e2a727624a77c9ecf13516cec82" -UNPACK_DIR = "juno-firmware-${LINARO_RELEASE}" +FIRMWARE_DIR = "juno-firmware-${LINARO_RELEASE}" +S = "${UNPACKDIR}/${FIRMWARE_DIR}" inherit deploy nopackages @@ -33,23 +34,23 @@ do_compile[noexec] = "1" # The ${D} is used as a temporary directory and we don't generate any # packages for this recipe. do_install() { - cp -a ${WORKDIR}/${UNPACK_DIR} ${D} + cp -a ${S} ${D}/ cp -f ${RECIPE_SYSROOT}/firmware/bl1-juno.bin \ - ${D}/${UNPACK_DIR}/SOFTWARE/bl1.bin + ${D}/${FIRMWARE_DIR}/SOFTWARE/bl1.bin cp -f ${RECIPE_SYSROOT}/firmware/fip-juno.bin \ - ${D}/${UNPACK_DIR}/SOFTWARE/fip.bin + ${D}/${FIRMWARE_DIR}/SOFTWARE/fip.bin cp -f ${RECIPE_SYSROOT}/firmware/scp_romfw_bypass.bin \ - ${D}/${UNPACK_DIR}/SOFTWARE/scp_bl1.bin + ${D}/${FIRMWARE_DIR}/SOFTWARE/scp_bl1.bin # u-boot environment file - cp -f ${WORKDIR}/uEnv.txt ${D}/${UNPACK_DIR}/SOFTWARE/ + cp -f ${UNPACKDIR}/uEnv.txt ${D}/${FIRMWARE_DIR}/SOFTWARE/ # Juno images list file - cp -f ${WORKDIR}/images-r0.txt ${D}/${UNPACK_DIR}/SITE1/HBI0262B/images.txt - cp -f ${WORKDIR}/images-r1.txt ${D}/${UNPACK_DIR}/SITE1/HBI0262C/images.txt - cp -f ${WORKDIR}/images-r2.txt ${D}/${UNPACK_DIR}/SITE1/HBI0262D/images.txt + cp -f ${UNPACKDIR}/images-r0.txt ${D}/${FIRMWARE_DIR}/SITE1/HBI0262B/images.txt + cp -f ${UNPACKDIR}/images-r1.txt ${D}/${FIRMWARE_DIR}/SITE1/HBI0262C/images.txt + cp -f ${UNPACKDIR}/images-r2.txt ${D}/${FIRMWARE_DIR}/SITE1/HBI0262D/images.txt } do_deploy() { @@ -59,18 +60,18 @@ do_deploy() { # task. for f in ${KERNEL_DEVICETREE}; do install -m 755 -c ${DEPLOY_DIR_IMAGE}/$(basename $f) \ - ${D}/${UNPACK_DIR}/SOFTWARE/. + ${D}/${FIRMWARE_DIR}/SOFTWARE/ done if [ "${INITRAMFS_IMAGE_BUNDLE}" -eq 1 ]; then cp -L -f ${DEPLOY_DIR_IMAGE}/Image.gz-initramfs-juno.bin \ - ${D}/${UNPACK_DIR}/SOFTWARE/Image + ${D}/${FIRMWARE_DIR}/SOFTWARE/Image else - cp -L -f ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} ${D}/${UNPACK_DIR}/SOFTWARE/ + cp -L -f ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} ${D}/${FIRMWARE_DIR}/SOFTWARE/ fi # Compress the files - tar -C ${D}/${UNPACK_DIR} -zcvf ${WORKDIR}/${PN}.tar.gz ./ + tar -C ${D}/${FIRMWARE_DIR} -zcvf ${WORKDIR}/${PN}.tar.gz ./ # Deploy the compressed archive to the deploy folder install -D -p -m0644 ${WORKDIR}/${PN}.tar.gz ${DEPLOYDIR}/${PN}.tar.gz From patchwork Tue Jun 18 15:41:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 45321 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 A74BCC2BBCA for ; Tue, 18 Jun 2024 15:41:34 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.89910.1718725293460892126 for ; Tue, 18 Jun 2024 08:41:33 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); 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 C2EEADA7 for ; Tue, 18 Jun 2024 08:41:57 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.oss.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 BB3213F6A8 for ; Tue, 18 Jun 2024 08:41:32 -0700 (PDT) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 3/3] arm/libts: use UNPACKDIR Date: Tue, 18 Jun 2024 15:41:29 +0000 Message-Id: <20240618154129.456464-3-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240618154129.456464-1-ross.burton@arm.com> References: <20240618154129.456464-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 ; Tue, 18 Jun 2024 15:41:34 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5827 Single files in SRC_URI are now in UNPACKDIR not WORKDIR. Signed-off-by: Ross Burton --- meta-arm/recipes-security/trusted-services/libts_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-arm/recipes-security/trusted-services/libts_git.bb b/meta-arm/recipes-security/trusted-services/libts_git.bb index 789bde7c..dfcd4bde 100644 --- a/meta-arm/recipes-security/trusted-services/libts_git.bb +++ b/meta-arm/recipes-security/trusted-services/libts_git.bb @@ -19,7 +19,7 @@ TEE_GROUP_NAME ?= "teeclnt" do_install:append () { if ${@oe.utils.conditional('VIRTUAL-RUNTIME_dev_manager', 'busybox-mdev', 'false', 'true', d)}; then install -d ${D}${nonarch_base_libdir}/udev/rules.d/ - install -m 755 ${WORKDIR}/tee-udev.rules ${D}${nonarch_base_libdir}/udev/rules.d/ + install -m 755 ${UNPACKDIR}/tee-udev.rules ${D}${nonarch_base_libdir}/udev/rules.d/ sed -i -e "s/teeclnt/${TEE_GROUP_NAME}/" ${D}${nonarch_base_libdir}/udev/rules.d/tee-udev.rules fi