arm/trusted-firmware-m: upgrade to 1.6.0.
PATCH 1/2 arm/trusted-firmware-m: upgrade to 1.6.0.
Upgrade all SRCREVs, and drop the merged patch to use cbor2.
Signed-off-by Ross Burton <[email protected]>
---
.../trusted-firmware-m/files/cbor2.patch | 80 -------------------
...m_1.5.0.bb => trusted-firmware-m_1.6.0.bb} | 21 +++--
2 files changed, 10 insertions(+), 91 deletions(-)
delete mode 100644 meta-arm/recipes-bsp/trusted-firmware-m/files/cbor2.patch
rename meta-arm/recipes-bsp/trusted-firmware-m/{trusted-firmware-m_1.5.0.bb => trusted-firmware-m_1.6.0.bb} (91%)meta-arm/recipes-bsp/trusted-firmware-m/files/cbor2.patch deleted +0 -80
@@ -1,80 +0,0 @@ -Upstream-Status: Backport [https://github.com/mcu-tools/mcuboot/commit/a6df132b68f8e08c2b0ab428377d478436376556] -Signed-off-by: Ross Burton <[email protected]> - -From a5f747643e3a51b8dfce192203b9b84e033728b9 Mon Sep 17 00:00:00 2001 -From: Ross Burton <[email protected]> -Date: Tue, 2 Nov 2021 11:12:04 +0000 -Subject: [PATCH] imgtool: prefer cbor2 over cbor - -The cbor module is unmaintained, with the last release in 2016[1]. The -cbor2 module however is under active development and was last released -just last month[2]. - -As the APIs are identical, we can import cbor2 and if that fails fall -back to cbor. - -[1] https://pypi.org/project/cbor/#history -[2] https://pypi.org/project/cbor2/#history - -Closes #1189 - -Signed-off-by: Ross Burton <[email protected]> -Change-Id: Iaf2d0df625a200a5cebf72dec4a89877a26194ea ---- - scripts/imgtool.nix | 2 +- - scripts/imgtool/boot_record.py | 9 ++++++--- - scripts/requirements.txt | 2 +- - scripts/setup.py | 2 +- - 4 files changed, 9 insertions(+), 6 deletions(-) - -diff --git a/scripts/imgtool.nix b/scripts/imgtool.nix -index 9ac41bc..ea9ba8b 100644 -diff --git a/scripts/imgtool/boot_record.py b/scripts/imgtool/boot_record.py -index ac433aa..8ab2f60 100644 ---- a/scripts/imgtool/boot_record.py -+++ b/scripts/imgtool/boot_record.py -@@ -14,8 +14,11 @@ - # limitations under the License. - - from enum import Enum --import cbor - -+try: -+ from cbor2 import dumps -+except ImportError: -+ from cbor import dumps - - class SwComponent(int, Enum): - """ -@@ -46,4 +49,4 @@ def create_sw_component_data(sw_type, sw_version, sw_measurement_description, - # list because later it will be modified by the bootloader. - properties[SwComponent.MEASUREMENT_VALUE] = sw_measurement_value - -- return cbor.dumps(properties) -+ return dumps(properties) -diff --git a/scripts/requirements.txt b/scripts/requirements.txt -index 9481e2c..2446928 100644 ---- a/scripts/requirements.txt -+++ b/scripts/requirements.txt -@@ -1,4 +1,4 @@ - cryptography>=2.6 - intelhex - click --cbor>=1.0.0 -+cbor2 -diff --git a/scripts/setup.py b/scripts/setup.py -index a228ea3..692cfb7 100644 ---- a/scripts/setup.py -+++ b/scripts/setup.py -@@ -15,7 +15,7 @@ setuptools.setup( - 'cryptography>=2.4.2', - 'intelhex>=2.2.1', - 'click', -- 'cbor>=1.0.0', -+ 'cbor2', - ], - entry_points={ - "console_scripts": ["imgtool=imgtool.main:imgtool"] --- -2.25.1 -
meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.6.0.bb renamed from meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.5.0.bb +10 -11
@@ -16,22 +16,21 @@ LIC_FILES_CHKSUM = "file://license.rst;md5=07f368487da347f3c7bd0fc3085f3afa \ file://../mcuboot/LICENSE;md5=b6ee33f1d12a5e6ee3de1e82fb51eeb8" SRC_URI = "git://git.trustedfirmware.org/TF-M/trusted-firmware-m.git;protocol=https;branch=${SRCBRANCH_tfm};name=tfm;destsuffix=git/tfm \ - git://git.trustedfirmware.org/TF-M/tf-m-tests.git;protocol=https;branch=release/1.5.x;name=tfm-tests;destsuffix=git/tf-m-tests \ + git://git.trustedfirmware.org/TF-M/tf-m-tests.git;protocol=https;branch=release/1.6.x;name=tfm-tests;destsuffix=git/tf-m-tests \ git://github.com/ARMmbed/mbedtls.git;protocol=https;branch=master;name=mbedtls;destsuffix=git/mbedtls \ git://github.com/mcu-tools/mcuboot.git;protocol=https;branch=main;name=mcuboot;destsuffix=git/mcuboot \ - file://cbor2.patch;patchdir=../mcuboot \ " # The required dependencies are documented in tf-m/config/config_default.cmake -# TF-Mv1.5.0 -SRCBRANCH_tfm = "release/1.5.x" -SRCREV_tfm = "6fb14a14140f94150f959c88e3b880f48372da06" -# mbedtls-3.0.0 -SRCREV_mbedtls = "8df2f8e7b9c7bb9390ac74bb7bace27edca81a2b" -# TF-Mv1.5.0 -SRCREV_tfm-tests = "6131778527cf60d9b5b7ea73700a30c0fdb9ff66" -# v1.8.0 -SRCREV_mcuboot = "29099e1d17f93ae1d09fe945ad191b703aacd3d8" +# TF-Mv1.6.0 +SRCBRANCH_tfm = "release/1.6.x" +SRCREV_tfm = "7387d88158701a3c51ad51c90a05326ee12847a8" +# mbedtls-3.1.0 +SRCREV_mbedtls = "d65aeb37349ad1a50e0f6c9b694d4b5290d60e49" +# TF-Mv1.6.0 +SRCREV_tfm-tests = "723905d46019596f3f2df66d79b5d6bff6f3f213" +# v1.9.0 +SRCREV_mcuboot = "c657cbea75f2bb1faf1fceacf972a0537a8d26dd" UPSTREAM_CHECK_GITTAGREGEX = "^TF-Mv(?P<pver>\d+(\.\d+)+)$"
Signature · 1 line
2.25.1
PATCH 2/2 arm-bsp/trusted-firmware-m: move corstone1000 to TF-M 1.6.0.
Move the TFM_PLATFORM assignment to the bbappend.
Drop the SRCREV changes, these are all incorporated into the 1.6.0 release.
Signed-off-by Ross Burton <[email protected]>
---
meta-arm-bsp/conf/machine/include/corstone1000.inc | 2 --
.../trusted-firmware-m-corstone1000.inc | 14 +++-----------
....bbappend => trusted-firmware-m_1.6.%.bbappend} | 0
3 files changed, 3 insertions(+), 13 deletions(-)
rename meta-arm-bsp/recipes-bsp/trusted-firmware-m/{trusted-firmware-m_1.5%.bbappend => trusted-firmware-m_1.6.%.bbappend} (100%)meta-arm-bsp/conf/machine/include/corstone1000.inc +0 -2
@@ -10,8 +10,6 @@ TFA_BL2_BINARY = "bl2-corstone1000.bin" TFA_FIP_BINARY = "fip-corstone1000.bin" # TF-M -PREFERRED_VERSION_trusted-firmware-m ?= "1.5%" -TFM_PLATFORM = "arm/corstone1000" EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-m" # TF-M settings for signing host images
meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc +3 -11
@@ -2,6 +2,8 @@ COMPATIBLE_MACHINE = "(corstone1000)" +TFM_PLATFORM = "arm/corstone1000" + TFM_DEBUG = "1" ## Default is the MPS3 board
@@ -9,14 +11,6 @@ TFM_PLATFORM_IS_FVP ?= "FALSE" EXTRA_OECMAKE += "-DPLATFORM_IS_FVP=${TFM_PLATFORM_IS_FVP}" EXTRA_OECMAKE += "-DCC312_LEGACY_DRIVER_API_ENABLED=OFF" -SRCBRANCH_tfm = "master" -SRCREV_tfm = "f8c7e5361b92b16108165601ea81c5d01feb3c22" -SRCREV_mbedtls = "d65aeb37349ad1a50e0f6c9b694d4b5290d60e49" -SRCREV_mcuboot = "29099e1d17f93ae1d09fe945ad191b703aacd3d8" - -PV = "1.5.0+git${SRCPV}" -SRCREV_FORMAT = "tfm" - # libmetal LICENSE += "& BSD-3-Clause" LIC_FILES_CHKSUM += "file://../libmetal/LICENSE.md;md5=fe0b8a4beea8f0813b606d15a3df3d3c"
@@ -31,9 +25,7 @@ SRC_URI += "git://github.com/OpenAMP/open-amp.git;protocol=https;branch=main;nam SRCREV_openamp = "347397decaa43372fc4d00f965640ebde042966d" EXTRA_OECMAKE += "-DLIBOPENAMP_SRC_PATH=${WORKDIR}/git/openamp -DLIBOPENAMP_BIN_PATH=${B}/libopenamp-build" -# The install task signs the TF-A BL2 and FIP binaries. -# So they need to be copied to the sysroot. Hence the dependencies below: -do_prepare_recipe_sysroot[depends]+= "trusted-firmware-a:do_populate_sysroot" +DEPENDS += "trusted-firmware-a" # adding host images signing support require trusted-firmware-m-sign-host-images.inc
meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.6.%.bbappend renamed from meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.5%.bbappend +0 -0
Signature · 1 line
2.25.1
Jon Mason
AppliedQuoted 1 line · Ross Burton
Upgrade all SRCREVs, and drop the merged patch to use cbor2.
Applied, thanks!
[1/2] arm/trusted-firmware-m: upgrade to 1.6.0.
commit: 83df1de70980d929c6c0ebc14d74d2e86b21aad4
[2/2] arm-bsp/trusted-firmware-m: move corstone1000 to TF-M 1.6.0.
commit: 68b1e2d3e3c9d25d894bf76e2cf700bf383e464cBest regards,
Signature · 1 line
Jon Mason <[email protected]>