arm/lib/oeqa: fix module lookup
PATCH 1/5 arm/lib/oeqa: fix module lookup
As multiple paths can and do provide modules under oeqa.controllers, all of these paths need to call pkgutil.extend_path() so the lookup works correctly.
--- meta-arm/lib/oeqa/controllers/__init__.py | 3 +++ 1 file changed, 3 insertions(+)
meta-arm/lib/oeqa/controllers/__init__.py +3 -0
@@ -0,0 +1,3 @@ +# This is needed so that multiple locations can provide the same package +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__)
Signature · 1 line
2.25.1
PATCH 2/5 arm/trusted-firmware-m: enabling PACKAGECONFIG when using CMake
From: Abdellatif El Khlifi <[email protected]>
In case of CMake, PACKAGECONFIG configs take effect when passing PACKAGECONFIG_CONFARGS to the configure task.
--- .../recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb +1 -1
@@ -101,7 +101,7 @@ do_patch[postfuncs] += "apply_local_patches" do_configure[cleandirs] = "${B}" do_configure() { - cmake -G"Unix Makefiles" -S ${S} -B ${B} ${EXTRA_OECMAKE} + cmake -G"Unix Makefiles" -S ${S} -B ${B} ${EXTRA_OECMAKE} ${PACKAGECONFIG_CONFARGS} } # Invoke install here as there's no point in splitting compile from install: the
Signature · 1 line
2.25.1
PATCH 3/5 arm/trusted-firmware-m: setting the toolchain file path in PACKAGECONFIG
In reply to Ross BurtonFrom: Abdellatif El Khlifi <[email protected]>
Toolchain files toolchain_GNUARM.cmake and toolchain_ARMCLANG.cmake are located at trusted-firmware-m source directory.
This commit sets that.
--- .../trusted-firmware-m/trusted-firmware-m_1.3.0.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb +2 -2
@@ -69,8 +69,8 @@ python() { PACKAGECONFIG ??= "cc-gnuarm" # What compiler to use -PACKAGECONFIG[cc-gnuarm] = "-DTFM_TOOLCHAIN_FILE=toolchain_GNUARM.cmake,,gcc-arm-none-eabi-native" -PACKAGECONFIG[cc-armclang] = "-DTFM_TOOLCHAIN_FILE=toolchain_ARMCLANG.cmake,,armcompiler-native" +PACKAGECONFIG[cc-gnuarm] = "-DTFM_TOOLCHAIN_FILE=${S}/toolchain_GNUARM.cmake,,gcc-arm-none-eabi-native" +PACKAGECONFIG[cc-armclang] = "-DTFM_TOOLCHAIN_FILE=${S}/toolchain_ARMCLANG.cmake,,armcompiler-native" # Whether to integrate the test suite PACKAGECONFIG[test-secure] = "-DTEST_S=ON,-DTEST_S=OFF" PACKAGECONFIG[test-nonsecure] = "-DTEST_NS=ON,-DTEST_NS=OFF"
Signature · 1 line
2.25.1
PATCH 4/5 arm/trusted-firmware-m: upgrade to 1.4.0
In reply to Ross BurtonFrom: Satish Kumar <[email protected]>
Update TF-M to version 1.4.0, mbed TLS to 3.0.0, TF-M tests to 1.4.0, and MCUBoot to TF-Mv1.4-integ tag.
---
...-m_1.3.0.bb => trusted-firmware-m_1.4.0.bb} | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
rename meta-arm/recipes-bsp/trusted-firmware-m/{trusted-firmware-m_1.3.0.bb => trusted-firmware-m_1.4.0.bb} (92%)meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.4.0.bb renamed from meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb +9 -9
@@ -18,18 +18,18 @@ LIC_FILES_CHKSUM = "file://license.rst;md5=07f368487da347f3c7bd0fc3085f3afa \ SRC_URI = "git://git.trustedfirmware.org/TF-M/trusted-firmware-m.git;protocol=https;branch=master;name=tfm;destsuffix=${S} \ git://git.trustedfirmware.org/TF-M/tf-m-tests.git;protocol=https;branch=master;name=tfm-tests;destsuffix=${S}/../tf-m-tests \ git://github.com/ARMmbed/mbedtls.git;protocol=https;branch=master;name=mbedtls;destsuffix=${S}/../mbedtls \ - git://github.com/mcu-tools/mcuboot.git;protocol=https;branch=v1.7-branch;name=mcuboot;destsuffix=${S}/../mcuboot \ + git://github.com/mcu-tools/mcuboot.git;protocol=https;branch=main;name=mcuboot;destsuffix=${S}/../mcuboot \ " # The required dependencies are documented in tf-m/config/config_default.cmake -# TF-Mv1.3.0 -SRCREV_tfm = "aa7d90a23b045e50c26ef66b11250842b665f54b" -# mbedtls 2.26 -SRCREV_mbedtls = "e483a77c85e1f9c1dd2eb1c5a8f552d2617fe400" -# tf-m-tests v1.3.0 -SRCREV_tfm-tests = "e7430d13b388a106c9f4cfb534e7340ce1482575" -# 1.7.2 -SRCREV_mcuboot = "4aa516e7281fc6f9a2dce0b0efda9acc580fa254" +# TF-Mv1.4.0 +SRCREV_tfm = "7ef9178adad866d48e3af42d8a3129dfab792ed8" +# mbedtls-3.0.0 +SRCREV_mbedtls = "8df2f8e7b9c7bb9390ac74bb7bace27edca81a2b" +# TF-Mv1.4.0 +SRCREV_tfm-tests = "e1a8c9fb8394b1f6ea66d2611c070915b0d4b573" +# TF-Mv1.4-integ +SRCREV_mcuboot = "4f8091318b4026d14af9e5a7036825bff62fb612" UPSTREAM_CHECK_GITTAGREGEX = "^TF-Mv(?P<pver>\d+(\.\d+)+)$"
Signature · 1 line
2.25.1
PATCH 5/5 arm-bsp/musca*: update trusted-firmware-m platform names
In reply to Ross BurtonWith trusted-firmware-m 1.4 the platform names have changed.
--- meta-arm-bsp/conf/machine/musca-b1.conf | 2 +- meta-arm-bsp/conf/machine/musca-s1.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta-arm-bsp/conf/machine/musca-b1.conf +1 -1
@@ -25,4 +25,4 @@ ZEPHYR_BOARD = "v2m_musca_b1" ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot" ARCH:musca-b1 = "arm" -TFM_PLATFORM = "musca_b1/sse_200" +TFM_PLATFORM = "arm/musca_b1/sse_200"
meta-arm-bsp/conf/machine/musca-s1.conf +1 -1
@@ -9,4 +9,4 @@ require conf/machine/include/arm/armv8-m/tune-cortexm33.inc # GLIBC will not work with Cortex-M. TCLIBC = "newlib" -TFM_PLATFORM = "musca_s1" +TFM_PLATFORM = "arm/musca_s1"
Signature · 1 line
2.25.1