All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/5] arm/trusted-firmware-m: upgrade to 1.4.1
@ 2021-11-11 16:16 Ross Burton
  2021-11-11 16:16 ` [PATCH v2 2/5] arm-bsp/trusted-firmware-m: update corstone1000 customisations for 1.4.1 update Ross Burton
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ross Burton @ 2021-11-11 16:16 UTC (permalink / raw)
  To: meta-arm

Extract the TF-M branch name as a variable, as BSPs may wish to use
intermediate SHAs.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 ...mware-m_1.4.0.bb => trusted-firmware-m_1.4.1.bb} | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
 rename meta-arm/recipes-bsp/trusted-firmware-m/{trusted-firmware-m_1.4.0.bb => trusted-firmware-m_1.4.1.bb} (93%)

diff --git a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.4.0.bb b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.4.1.bb
similarity index 93%
rename from meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.4.0.bb
rename to meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.4.1.bb
index 326b5a66..77199369 100644
--- a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.4.0.bb
+++ b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.4.1.bb
@@ -15,20 +15,21 @@ LIC_FILES_CHKSUM = "file://license.rst;md5=07f368487da347f3c7bd0fc3085f3afa \
                     file://../mbedtls/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
                     file://../mcuboot/LICENSE;md5=b6ee33f1d12a5e6ee3de1e82fb51eeb8"
 
-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 \
+SRC_URI  = "git://git.trustedfirmware.org/TF-M/trusted-firmware-m.git;protocol=https;branch=${SRCBRANCH_tfm};name=tfm;destsuffix=${S} \
+            git://git.trustedfirmware.org/TF-M/tf-m-tests.git;protocol=https;branch=TF-Mv1.4.x;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=main;name=mcuboot;destsuffix=${S}/../mcuboot \
             file://cbor2.patch;patchdir=${S}/../mcuboot \
             "
 
 # The required dependencies are documented in tf-m/config/config_default.cmake
-# TF-Mv1.4.0
-SRCREV_tfm = "7ef9178adad866d48e3af42d8a3129dfab792ed8"
+# TF-Mv1.4.1
+SRCBRANCH_tfm = "TF-Mv1.4.x"
+SRCREV_tfm = "dd1fe44448db0f1750794cd9cf5596033f90f6f9"
 # mbedtls-3.0.0
 SRCREV_mbedtls = "8df2f8e7b9c7bb9390ac74bb7bace27edca81a2b"
-# TF-Mv1.4.0
-SRCREV_tfm-tests = "e1a8c9fb8394b1f6ea66d2611c070915b0d4b573"
+# TF-Mv1.4.1
+SRCREV_tfm-tests = "60faad2ead1b967ec8e73accd793d3ed0e5c56bd"
 # TF-Mv1.4-integ
 SRCREV_mcuboot = "4f8091318b4026d14af9e5a7036825bff62fb612"
 
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/5] arm-bsp/trusted-firmware-m: update corstone1000 customisations for 1.4.1 update
  2021-11-11 16:16 [PATCH v2 1/5] arm/trusted-firmware-m: upgrade to 1.4.1 Ross Burton
@ 2021-11-11 16:16 ` Ross Burton
  2021-11-11 16:16 ` [PATCH v2 3/5] arm-bsp/trusted-firmware-m: remove meaningless PACKAGECONFIGs Ross Burton
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2021-11-11 16:16 UTC (permalink / raw)
  To: meta-arm

This BSP sets an intermediate SHA that is newer than the 1.4.1, but the
branch needs specifying now.

Also remove SRCREV_FORMAT, the PV doesn't include SRCPV so it isn't being used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../trusted-firmware-m/trusted-firmware-m-corstone1000.inc     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
index 997859cf..ae28dd7e 100644
--- a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
+++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
@@ -13,10 +13,9 @@ INSANE_SKIP:${PN} = "arch"
 TFM_PLATFORM_IS_FVP ?= "TRUE"
 EXTRA_OECMAKE += "-DPLATFORM_IS_FVP=${TFM_PLATFORM_IS_FVP}"
 
+SRCBRANCH_tfm = "master"
 SRCREV_tfm = "ccd82e35f539c0d7261b2935d6d30c550cfc6736"
 
-SRCREV_FORMAT = "tfm_mcuboot_tfm-tests_mbedtls"
-
 # 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]+= "virtual/trusted-firmware-a:do_populate_sysroot"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 3/5] arm-bsp/trusted-firmware-m: remove meaningless PACKAGECONFIGs
  2021-11-11 16:16 [PATCH v2 1/5] arm/trusted-firmware-m: upgrade to 1.4.1 Ross Burton
  2021-11-11 16:16 ` [PATCH v2 2/5] arm-bsp/trusted-firmware-m: update corstone1000 customisations for 1.4.1 update Ross Burton
@ 2021-11-11 16:16 ` Ross Burton
  2021-11-11 16:16 ` [PATCH v2 4/5] arm-bsp/trusted-firmware-m: clean up corestone1000 do_install Ross Burton
  2021-11-11 16:16 ` [PATCH v2 5/5] arm-bsp/trusted-firmware-m: remove INSANE_SKIP in corstone1000 Ross Burton
  3 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2021-11-11 16:16 UTC (permalink / raw)
  To: meta-arm

The corstone1000 customisations override the test-* PACKAGECONFIGs to
always disable the tests, even when they're enabled.

The proper way to do this is to not enable the tests in the first place,
and the tests are not enabled.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../trusted-firmware-m/trusted-firmware-m-corstone1000.inc     | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
index ae28dd7e..62f5998e 100644
--- a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
+++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
@@ -4,9 +4,6 @@ COMPATIBLE_MACHINE = "(corstone1000)"
 
 TFM_DEBUG = "1"
 
-PACKAGECONFIG[test-secure] = "-DTEST_S=OFF,-DTEST_S=OFF"
-PACKAGECONFIG[test-nonsecure] = "-DTEST_NS=OFF,-DTEST_NS=OFF"
-
 INSANE_SKIP:${PN} = "arch"
 
 ## Default is the FVP ##
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 4/5] arm-bsp/trusted-firmware-m: clean up corestone1000 do_install
  2021-11-11 16:16 [PATCH v2 1/5] arm/trusted-firmware-m: upgrade to 1.4.1 Ross Burton
  2021-11-11 16:16 ` [PATCH v2 2/5] arm-bsp/trusted-firmware-m: update corstone1000 customisations for 1.4.1 update Ross Burton
  2021-11-11 16:16 ` [PATCH v2 3/5] arm-bsp/trusted-firmware-m: remove meaningless PACKAGECONFIGs Ross Burton
@ 2021-11-11 16:16 ` Ross Burton
  2021-11-11 16:16 ` [PATCH v2 5/5] arm-bsp/trusted-firmware-m: remove INSANE_SKIP in corstone1000 Ross Burton
  3 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2021-11-11 16:16 UTC (permalink / raw)
  To: meta-arm

No point checking that a directory exists before installing from it, as
it will fail immediately anyway if the files are not present.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../trusted-firmware-m/trusted-firmware-m-corstone1000.inc  | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
index 62f5998e..530968c3 100644
--- a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
+++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
@@ -21,11 +21,6 @@ do_prepare_recipe_sysroot[depends]+= "virtual/trusted-firmware-a:do_populate_sys
 require trusted-firmware-m-sign-host-images.inc
 
 do_install() {
-  if [ ! -d "${B}/install/outputs/ARM/CORSTONE1000" ]
-  then
-    bbfatal "'${B}/install/outputs/ARM/CORSTONE1000' output folder not found!"
-  fi
-
   install -D -p -m 0644 ${B}/install/outputs/ARM/CORSTONE1000/tfm_s_signed.bin ${D}/firmware/tfm_s_signed.bin
   install -D -p -m 0644 ${B}/install/outputs/ARM/CORSTONE1000/bl2_signed.bin ${D}/firmware/bl2_signed.bin
   install -D -p -m 0644 ${B}/install/outputs/ARM/CORSTONE1000/bl1.bin ${D}/firmware/bl1.bin
@@ -41,5 +36,4 @@ do_install() {
       ${RECIPE_SYSROOT}/firmware/${TFA_FIP_BINARY}
 
   sign_host_image ${TFA_FIP_BINARY} ${RECIPE_SYSROOT}/firmware ${TFA_FIP_RE_IMAGE_LOAD_ADDRESS} ${TFA_FIP_RE_SIGN_BIN_SIZE}
-
 }
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 5/5] arm-bsp/trusted-firmware-m: remove INSANE_SKIP in corstone1000
  2021-11-11 16:16 [PATCH v2 1/5] arm/trusted-firmware-m: upgrade to 1.4.1 Ross Burton
                   ` (2 preceding siblings ...)
  2021-11-11 16:16 ` [PATCH v2 4/5] arm-bsp/trusted-firmware-m: clean up corestone1000 do_install Ross Burton
@ 2021-11-11 16:16 ` Ross Burton
  3 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2021-11-11 16:16 UTC (permalink / raw)
  To: meta-arm

The build is successful without this, so presumably it's obsolete.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../trusted-firmware-m/trusted-firmware-m-corstone1000.inc    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
index 530968c3..9114905b 100644
--- a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
+++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc
@@ -4,9 +4,7 @@ COMPATIBLE_MACHINE = "(corstone1000)"
 
 TFM_DEBUG = "1"
 
-INSANE_SKIP:${PN} = "arch"
-
-## Default is the FVP ##
+# Default is the FVP
 TFM_PLATFORM_IS_FVP ?= "TRUE"
 EXTRA_OECMAKE += "-DPLATFORM_IS_FVP=${TFM_PLATFORM_IS_FVP}"
 
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-11 16:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 16:16 [PATCH v2 1/5] arm/trusted-firmware-m: upgrade to 1.4.1 Ross Burton
2021-11-11 16:16 ` [PATCH v2 2/5] arm-bsp/trusted-firmware-m: update corstone1000 customisations for 1.4.1 update Ross Burton
2021-11-11 16:16 ` [PATCH v2 3/5] arm-bsp/trusted-firmware-m: remove meaningless PACKAGECONFIGs Ross Burton
2021-11-11 16:16 ` [PATCH v2 4/5] arm-bsp/trusted-firmware-m: clean up corestone1000 do_install Ross Burton
2021-11-11 16:16 ` [PATCH v2 5/5] arm-bsp/trusted-firmware-m: remove INSANE_SKIP in corstone1000 Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.