Adds support for TrustedFirmware-M
v3 cover Adds support for TrustedFirmware-M
This series adds support for TrustedFirmware-M (TF-M).
https://trustedfirmware-m.readthedocs.io
https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git
Trusted Firmware-M implements the Secure Processing Environment (SPE) for Armv8-M, Armv8.1-M architectures (e.g. the Cortex-M33, Cortex-M23, Cortex-M55, Cortex-M85 processors) or dual-core platforms.
Patches 1-3: Address host Python package dependencies. Patch 4: Add support for TF-M.
Changes in v3:
- Add select BR2_HOST_CMAKE_AT_LEAST_3_21 to avoid cmake configure error due to old cmake version.
- Fix a Kconfig warning.
Changes in v2:
- Add TF-M to DEVELOPERS file
- Fix few nit.
Kory Maincent (4):
package/python-intelhex: Add support for host package package/python-click: Add support for host package package/python-cbor2: Add support for host package
boot: Add support for TrustedFirmware-M package
DEVELOPERS | 1 + boot/Config.in | 1 + boot/trusted-firmware-m/Config.in | 103 +++++++++++++++++ boot/trusted-firmware-m/tfm-3rdparty.mk | 7 ++ boot/trusted-firmware-m/tfm-cmsis/Config.in | 10 ++ .../tfm-cmsis/tfm-cmsis.hash | 3 + .../trusted-firmware-m/tfm-cmsis/tfm-cmsis.mk | 31 +++++ boot/trusted-firmware-m/tfm-mbedtls/Config.in | 10 ++ .../tfm-mbedtls/tfm-mbedtls.hash | 3 + .../tfm-mbedtls/tfm-mbedtls.mk | 30 +++++ boot/trusted-firmware-m/tfm-mcuboot/Config.in | 10 ++ .../tfm-mcuboot/tfm-mcuboot.hash | 3 + .../tfm-mcuboot/tfm-mcuboot.mk | 29 +++++ boot/trusted-firmware-m/tfm-qcbor/Config.in | 10 ++ .../tfm-qcbor/tfm-qcbor.hash | 3 + .../trusted-firmware-m/tfm-qcbor/tfm-qcbor.mk | 29 +++++ boot/trusted-firmware-m/tfm-tests/Config.in | 10 ++ .../tfm-tests/tfm-tests.hash | 3 + .../trusted-firmware-m/tfm-tests/tfm-tests.mk | 30 +++++ .../trusted-firmware-m.hash | 3 + boot/trusted-firmware-m/trusted-firmware-m.mk | 107 ++++++++++++++++++ package/python-cbor2/python-cbor2.mk | 3 + package/python-click/python-click.mk | 1 + package/python-intelhex/python-intelhex.mk | 1 + support/testing/tests/boot/test_tfm.py | 12 ++ 25 files changed, 453 insertions(+) create mode 100644 boot/trusted-firmware-m/Config.in create mode 100644 boot/trusted-firmware-m/tfm-3rdparty.mk create mode 100644 boot/trusted-firmware-m/tfm-cmsis/Config.in create mode 100644 boot/trusted-firmware-m/tfm-cmsis/tfm-cmsis.hash create mode 100644 boot/trusted-firmware-m/tfm-cmsis/tfm-cmsis.mk create mode 100644 boot/trusted-firmware-m/tfm-mbedtls/Config.in create mode 100644 boot/trusted-firmware-m/tfm-mbedtls/tfm-mbedtls.hash create mode 100644 boot/trusted-firmware-m/tfm-mbedtls/tfm-mbedtls.mk create mode 100644 boot/trusted-firmware-m/tfm-mcuboot/Config.in create mode 100644 boot/trusted-firmware-m/tfm-mcuboot/tfm-mcuboot.hash create mode 100644 boot/trusted-firmware-m/tfm-mcuboot/tfm-mcuboot.mk create mode 100644 boot/trusted-firmware-m/tfm-qcbor/Config.in create mode 100644 boot/trusted-firmware-m/tfm-qcbor/tfm-qcbor.hash create mode 100644 boot/trusted-firmware-m/tfm-qcbor/tfm-qcbor.mk create mode 100644 boot/trusted-firmware-m/tfm-tests/Config.in create mode 100644 boot/trusted-firmware-m/tfm-tests/tfm-tests.hash create mode 100644 boot/trusted-firmware-m/tfm-tests/tfm-tests.mk create mode 100644 boot/trusted-firmware-m/trusted-firmware-m.hash create mode 100644 boot/trusted-firmware-m/trusted-firmware-m.mk create mode 100644 support/testing/tests/boot/test_tfm.py
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 1/4 package/python-intelhex: Add support for host package
Add support for the host package to enable future support for TrustedFirmware-M, which depends on it.
--- package/python-intelhex/python-intelhex.mk | 1 + 1 file changed, 1 insertion(+)
package/python-intelhex/python-intelhex.mk +1 -0
@@ -12,3 +12,4 @@ PYTHON_INTELHEX_LICENSE = BSD-3-Clause PYTHON_INTELHEX_LICENSE_FILES = LICENSE.txt $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 2/4 package/python-click: Add support for host package
In reply to Kory Maincent via buildrootAdd support for the host package to enable future support for TrustedFirmware-M, which depends on it.
--- package/python-click/python-click.mk | 1 + 1 file changed, 1 insertion(+)
package/python-click/python-click.mk +1 -0
@@ -12,3 +12,4 @@ PYTHON_CLICK_LICENSE_FILES = LICENSE.rst PYTHON_CLICK_SETUP_TYPE = setuptools $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 3/4 package/python-cbor2: Add support for host package
In reply to Kory Maincent via buildrootAdd support for the host package to enable future support for TrustedFirmware-M, which depends on it.
--- package/python-cbor2/python-cbor2.mk | 3 +++ 1 file changed, 3 insertions(+)
package/python-cbor2/python-cbor2.mk +3 -0
@@ -12,5 +12,8 @@ PYTHON_CBOR2_LICENSE = MIT PYTHON_CBOR2_LICENSE_FILES = LICENSE.txt PYTHON_CBOR2_DEPENDENCIES = host-python-setuptools-scm PYTHON_CBOR2_ENV = CBOR2_BUILD_C_EXTENSION=1 +HOST_PYTHON_CBOR2_SETUP_TYPE = pep517 +HOST_PYTHON_CBOR2_DEPENDENCIES += host-python-setuptools-scm $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 4/4 boot: Add support for TrustedFirmware-M package
In reply to Kory Maincent via buildrootAdd support for TrustedFirmware-M:
https://trustedfirmware-m.readthedocs.io
https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git
Trusted Firmware-M (TF-M) implements the Secure Processing Environment (SPE) for Armv8-M, Armv8.1-M architectures (e.g. the Cortex-M33, Cortex-M23, Cortex-M55, Cortex-M85 processors) or dual-core platforms.
Use subpackages to download the third-party project sources to be able to apply patches located in the TF-M sources. This approach is also necessary because the tfm-tests git host produces non-reproducible tarballs.
---
Changes in v3:
- Add select BR2_HOST_CMAKE_AT_LEAST_3_21 to avoid cmake configure error due to old cmake version.
- Fix a Kconfig check-package too long line warning.
Changes in v2:
- Add TF-M to DEVELOPERS file
- Fix few nit.
--- DEVELOPERS | 1 + boot/Config.in | 1 + boot/trusted-firmware-m/Config.in | 103 +++++++++++++++++ boot/trusted-firmware-m/tfm-3rdparty.mk | 7 ++ boot/trusted-firmware-m/tfm-cmsis/Config.in | 10 ++ .../tfm-cmsis/tfm-cmsis.hash | 3 + .../trusted-firmware-m/tfm-cmsis/tfm-cmsis.mk | 31 +++++ boot/trusted-firmware-m/tfm-mbedtls/Config.in | 10 ++ .../tfm-mbedtls/tfm-mbedtls.hash | 3 + .../tfm-mbedtls/tfm-mbedtls.mk | 30 +++++ boot/trusted-firmware-m/tfm-mcuboot/Config.in | 10 ++ .../tfm-mcuboot/tfm-mcuboot.hash | 3 + .../tfm-mcuboot/tfm-mcuboot.mk | 29 +++++ boot/trusted-firmware-m/tfm-qcbor/Config.in | 10 ++ .../tfm-qcbor/tfm-qcbor.hash | 3 + .../trusted-firmware-m/tfm-qcbor/tfm-qcbor.mk | 29 +++++ boot/trusted-firmware-m/tfm-tests/Config.in | 10 ++ .../tfm-tests/tfm-tests.hash | 3 + .../trusted-firmware-m/tfm-tests/tfm-tests.mk | 30 +++++ .../trusted-firmware-m.hash | 3 + boot/trusted-firmware-m/trusted-firmware-m.mk | 107 ++++++++++++++++++ support/testing/tests/boot/test_tfm.py | 12 ++ 22 files changed, 448 insertions(+) create mode 100644 boot/trusted-firmware-m/Config.in create mode 100644 boot/trusted-firmware-m/tfm-3rdparty.mk create mode 100644 boot/trusted-firmware-m/tfm-cmsis/Config.in create mode 100644 boot/trusted-firmware-m/tfm-cmsis/tfm-cmsis.hash create mode 100644 boot/trusted-firmware-m/tfm-cmsis/tfm-cmsis.mk create mode 100644 boot/trusted-firmware-m/tfm-mbedtls/Config.in create mode 100644 boot/trusted-firmware-m/tfm-mbedtls/tfm-mbedtls.hash create mode 100644 boot/trusted-firmware-m/tfm-mbedtls/tfm-mbedtls.mk create mode 100644 boot/trusted-firmware-m/tfm-mcuboot/Config.in create mode 100644 boot/trusted-firmware-m/tfm-mcuboot/tfm-mcuboot.hash create mode 100644 boot/trusted-firmware-m/tfm-mcuboot/tfm-mcuboot.mk create mode 100644 boot/trusted-firmware-m/tfm-qcbor/Config.in create mode 100644 boot/trusted-firmware-m/tfm-qcbor/tfm-qcbor.hash create mode 100644 boot/trusted-firmware-m/tfm-qcbor/tfm-qcbor.mk create mode 100644 boot/trusted-firmware-m/tfm-tests/Config.in create mode 100644 boot/trusted-firmware-m/tfm-tests/tfm-tests.hash create mode 100644 boot/trusted-firmware-m/tfm-tests/tfm-tests.mk create mode 100644 boot/trusted-firmware-m/trusted-firmware-m.hash create mode 100644 boot/trusted-firmware-m/trusted-firmware-m.mk create mode 100644 support/testing/tests/boot/test_tfm.py
DEVELOPERS +1 -0
@@ -1974,6 +1974,7 @@ F: board/octavo/osd32mp1-brk/ F: board/octavo/osd32mp1-red/ F: configs/octavo_osd32mp1_brk_defconfig F: configs/octavo_osd32mp1_red_defconfig +F: boot/trusted-firmware-m/ N: Kris Bahnsen <[email protected]> F: package/wilc-firmware/
boot/Config.in +1 -0
@@ -19,6 +19,7 @@ source "boot/shim/Config.in" source "boot/syslinux/Config.in" source "boot/ti-k3-boot-firmware/Config.in" source "boot/ti-k3-r5-loader/Config.in" +source "boot/trusted-firmware-m/Config.in" source "boot/uboot/Config.in" source "boot/vexpress-firmware/Config.in" source "boot/xilinx-prebuilt/Config.in"
boot/trusted-firmware-m/Config.in new file +103 -0
103 lines not on this page · raw message
boot/trusted-firmware-m/tfm-3rdparty.mk new file +7 -0
@@ -0,0 +1,7 @@ +################################################################################ +# +# TrustedFirmware-M 3rd parties +# +################################################################################ + +include $(sort $(wildcard boot/trusted-firmware-m/*/*.mk))
boot/trusted-firmware-m/tfm-cmsis/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_TARGET_TFM_CMSIS + bool + +if BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY + +config BR2_TARGET_TFM_CMSIS_CUSTOM_TARBALL_LOCATION + string "URL of custom cmcis tarball" + default "$(call github,arm-software,cmsis_6)/d0c460c169.tar.gz" + +endif
boot/trusted-firmware-m/tfm-cmsis/tfm-cmsis.hash new file +3 -0
@@ -0,0 +1,3 @@ +# sha256 locally computed +sha256 d846342840831f9124157b69b8edcdfcacc5427691f5b3341f714f0235c3cc49 tfm-cmsis-d0c460c1697d210b49a4b90998195831c0cd325c.tar.gz +sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE
boot/trusted-firmware-m/tfm-cmsis/tfm-cmsis.mk new file +31 -0
@@ -0,0 +1,31 @@ +################################################################################ +# +# cmcis +# +################################################################################ + +ifeq ($(BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY),y) +TFM_CMSIS_VERSION = custom +TFM_CMSIS_TARBALL = $(call qstrip,$(BR2_TARGET_TFM_CMSIS_CUSTOM_TARBALL_LOCATION)) +TFM_CMSIS_SITE = $(patsubst %/,%,$(dir $(TFM_CMSIS_TARBALL))) +TFM_CMSIS_SOURCE = $(notdir $(TFM_CMSIS_TARBALL)) +BR_NO_CHECK_HASH_FOR += $(TFM_CMSIS_SOURCE) +else +TFM_CMSIS_VERSION = d0c460c1697d210b49a4b90998195831c0cd325c +TFM_CMSIS_SITE = $(call github,arm-software,cmsis_6,$(TFM_CMSIS_VERSION)) +TFM_CMSIS_LICENSE = Apache-2.0 +TFM_CMSIS_LICENSE_FILES = LICENSE +endif + +TFM_CMSIS_PATCH_DEPENDENCIES = trusted-firmware-m +define TFM_CMSIS_APPLY_TFM_PATCHES + if [ -d $(TRUSTED_FIRMWARE_M_SRCDIR)lib/ext/cmsis ]; then \ + $(APPLY_PATCHES) $(@D) $(TRUSTED_FIRMWARE_M_SRCDIR)lib/ext/cmsis \*.patch; \ + fi +endef +TFM_CMSIS_POST_PATCH_HOOKS += TFM_CMSIS_APPLY_TFM_PATCHES + +# This components is not built and installed, because it is intended to +# be included as source in TrustedFirmware-M build. + +$(eval $(generic-package))
boot/trusted-firmware-m/tfm-mbedtls/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_TARGET_TFM_MBEDTLS + bool + +if BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY + +config BR2_TARGET_TFM_MBEDTLS_CUSTOM_TARBALL_LOCATION + string "URL of custom mbedtls tarball" + default "https://github.com/Mbed-TLS/mbedtls/releases/download/v3.6.0/mbedtls-3.6.0.tar.bz2" + +endif
boot/trusted-firmware-m/tfm-mbedtls/tfm-mbedtls.hash new file +3 -0
@@ -0,0 +1,3 @@ +# sha256 locally computed +sha256 3ecf94fcfdaacafb757786a01b7538a61750ebd85c4b024f56ff8ba1490fcd38 mbedtls-3.6.0.tar.bz2 +sha256 9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b LICENSE
boot/trusted-firmware-m/tfm-mbedtls/tfm-mbedtls.mk new file +30 -0
@@ -0,0 +1,30 @@ +################################################################################ +# +# mbedtls +# +################################################################################ + +ifeq ($(BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY),y) +TFM_MBEDTLS_VERSION = custom +TFM_MBEDTLS_TARBALL = $(call qstrip,$(BR2_TARGET_TFM_MBEDTLS_CUSTOM_TARBALL_LOCATION)) +TFM_MBEDTLS_SITE = $(patsubst %/,%,$(dir $(TFM_MBEDTLS_TARBALL))) +TFM_MBEDTLS_SOURCE = $(notdir $(TFM_MBEDTLS_TARBALL)) +BR_NO_CHECK_HASH_FOR += $(TFM_MBEDTLS_SOURCE) +else +TFM_MBEDTLS_VERSION = 3.6.0 +TFM_MBEDTLS_SITE = https://github.com/Mbed-TLS/mbedtls/releases/download/v$(TFM_MBEDTLS_VERSION) +TFM_MBEDTLS_SOURCE = mbedtls-$(TFM_MBEDTLS_VERSION).tar.bz2 +TFM_MBEDTLS_LICENSE = Apache-2.0 or GPL-2.0-or-later +TFM_MBEDTLS_LICENSE_FILES = LICENSE +endif + +TFM_MBEDTLS_PATCH_DEPENDENCIES = trusted-firmware-m +define TFM_MBEDTLS_APPLY_TFM_PATCHES + $(APPLY_PATCHES) $(@D) $(TRUSTED_FIRMWARE_M_SRCDIR)lib/ext/mbedcrypto \*.patch; +endef +TFM_MBEDTLS_POST_PATCH_HOOKS += TFM_MBEDTLS_APPLY_TFM_PATCHES + +# This components is not built and installed, because it is intended to +# be included as source in TrustedFirmware-M build. + +$(eval $(generic-package))
boot/trusted-firmware-m/tfm-mcuboot/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_TARGET_TFM_MCUBOOT + bool + +if BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY + +config BR2_TARGET_TFM_MCUBOOT_CUSTOM_TARBALL_LOCATION + string "URL of custom mcuboot tarball" + default "$(call github,mcu-tools,mcuboot)/v2.1.0.tar.gz" + +endif
boot/trusted-firmware-m/tfm-mcuboot/tfm-mcuboot.hash new file +3 -0
@@ -0,0 +1,3 @@ +# sha256 locally computed +sha256 bcee8c4b5a51477b27c6c587d11f46388823626aba7bd5082c77864a89dcf1b7 tfm-mcuboot-v2.1.0.tar.gz +sha256 86438164119907debf649e2f9f18a43ad506d75421c9d9675700066b0456205d LICENSE
boot/trusted-firmware-m/tfm-mcuboot/tfm-mcuboot.mk new file +29 -0
@@ -0,0 +1,29 @@ +################################################################################ +# +# mcuboot +# +################################################################################ + +ifeq ($(BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY),y) +TFM_MCUBOOT_VERSION = custom +TFM_MCUBOOT_TARBALL = $(call qstrip,$(BR2_TARGET_TFM_MCUBOOT_CUSTOM_TARBALL_LOCATION)) +TFM_MCUBOOT_SITE = $(patsubst %/,%,$(dir $(TFM_MCUBOOT_TARBALL))) +TFM_MCUBOOT_SOURCE = $(notdir $(TFM_MCUBOOT_TARBALL)) +BR_NO_CHECK_HASH_FOR += $(TFM_MCUBOOT_SOURCE) +else +TFM_MCUBOOT_VERSION = v2.1.0 +TFM_MCUBOOT_SITE = $(call github,mcu-tools,mcuboot,$(TFM_MCUBOOT_VERSION)) +TFM_MCUBOOT_LICENSE = Apache-2.0 +TFM_MCUBOOT_LICENSE_FILES = LICENSE +endif + +TFM_MCUBOOT_PATCH_DEPENDENCIES = trusted-firmware-m +define TFM_MCUBOOT_APPLY_TFM_PATCHES + $(APPLY_PATCHES) $(@D) $(TRUSTED_FIRMWARE_M_SRCDIR)lib/ext/mcuboot \*.patch; +endef +TFM_MCUBOOT_POST_PATCH_HOOKS += TFM_MCUBOOT_APPLY_TFM_PATCHES + +# This components is not built and installed, because it is intended to +# be included as source in TrustedFirmware-M build. + +$(eval $(generic-package))
boot/trusted-firmware-m/tfm-qcbor/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_TARGET_TFM_QCBOR + bool + +if BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY + +config BR2_TARGET_TFM_QCBOR_CUSTOM_TARBALL_LOCATION + string "URL of custom qcbor tarball" + default "$(call github,laurencelundblade,qcbor)/v1.2.tar.gz" + +endif
boot/trusted-firmware-m/tfm-qcbor/tfm-qcbor.hash new file +3 -0
@@ -0,0 +1,3 @@ +# sha256 locally computed +sha256 0f706ad90ada600bd1ddbdf8dc6f2f5910e11de355bb4454b9b4123f0e4ff525 tfm-qcbor-v1.2.tar.gz +sha256 fc6db297a2751188d9c2ece6ee468a295f285b9a24f96eab954a1a823c71be3b README.md
boot/trusted-firmware-m/tfm-qcbor/tfm-qcbor.mk new file +29 -0
@@ -0,0 +1,29 @@ +################################################################################ +# +# qcbor +# +################################################################################ + +ifeq ($(BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY),y) +TFM_QCBOR_VERSION = custom +TFM_QCBOR_TARBALL = $(call qstrip,$(BR2_TARGET_TFM_QCBOR_CUSTOM_TARBALL_LOCATION)) +TFM_QCBOR_SITE = $(patsubst %/,%,$(dir $(TFM_QCBOR_TARBALL))) +TFM_QCBOR_SOURCE = $(notdir $(TFM_QCBOR_TARBALL)) +BR_NO_CHECK_HASH_FOR += $(TFM_QCBOR_SOURCE) +else +TFM_QCBOR_VERSION = v1.2 +TFM_QCBOR_SITE = $(call github,laurencelundblade,qcbor,$(TFM_QCBOR_VERSION)) +TFM_QCBOR_LICENSE = BSD-3-Clause +TFM_QCBOR_LICENSE_FILES = README.md +endif + +TFM_QCBOR_PATCH_DEPENDENCIES = trusted-firmware-m +define TFM_QCBOR_APPLY_TFM_PATCHES + $(APPLY_PATCHES) $(@D) $(TRUSTED_FIRMWARE_M_SRCDIR)lib/ext/qcbor \*.patch; +endef +TFM_QCBOR_POST_PATCH_HOOKS += TFM_QCBOR_APPLY_TFM_PATCHES + +# This components is not built and installed, because it is intended to +# be included as source in TrustedFirmware-M build. + +$(eval $(generic-package))
boot/trusted-firmware-m/tfm-tests/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_TARGET_TFM_TESTS + bool + +if BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY + +config BR2_TARGET_TFM_TESTS_CUSTOM_TARBALL_LOCATION + string "URL of custom TF-M-tests tarball" + default "https://git.trustedfirmware.org/TF-M/tf-m-tests.git/+archive/TF-Mv2.1.0.tar.gz" + +endif
boot/trusted-firmware-m/tfm-tests/tfm-tests.hash new file +3 -0
@@ -0,0 +1,3 @@ +# sha256 locally computed +sha256 409dee3cbbceb3f1ea2543cfc9e06a9de23706f5ae798b866d0f12b0c21a7bd5 tfm-tests-TF-Mv2.1.0-br1.tar.gz +sha256 42195e7f4ae4655d000688af4d4b143048352461dff5849d24e5afe6d1d84808 license.rst
boot/trusted-firmware-m/tfm-tests/tfm-tests.mk new file +30 -0
@@ -0,0 +1,30 @@ +################################################################################ +# +# TF-M tests +# +################################################################################ + +ifeq ($(BR2_TARGET_TRUSTED_FIRMWARE_M_CUSTOM_3RD_PARTY),y) +TFM_TESTS_VERSION = custom +TFM_TESTS_TARBALL = $(call qstrip,$(BR2_TARGET_TFM_TESTS_CUSTOM_TARBALL_LOCATION)) +TFM_TESTS_SITE = $(patsubst %/,%,$(dir $(TFM_TESTS_TARBALL))) +TFM_TESTS_SOURCE = $(notdir $(TFM_TESTS_TARBALL)) +BR_NO_CHECK_HASH_FOR += $(TFM_TESTS_SOURCE) +else +TFM_TESTS_VERSION = TF-Mv2.1.0 +TFM_TESTS_SITE = https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git +TFM_TESTS_SITE_METHOD = git +TFM_TESTS_LICENSE = BSD-3-Clause +TFM_TESTS_LICENSE_FILES = license.rst +endif + +TFM_TESTS_PATCH_DEPENDENCIES = trusted-firmware-m +define TFM_TESTS_APPLY_TFM_PATCHES + $(APPLY_PATCHES) $(@D) $(TRUSTED_FIRMWARE_M_SRCDIR)lib/ext/tf-m-tests \*.patch; +endef +TFM_TESTS_POST_PATCH_HOOKS += TFM_TESTS_APPLY_TFM_PATCHES + +# This components is not built and installed, because it is intended to +# be included as source in TrustedFirmware-M build. + +$(eval $(generic-package))
boot/trusted-firmware-m/trusted-firmware-m.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 5da6aee3e3dffbde61ee061fed8fc0b693ce934a8a707c91b19916e9b1ade638 trusted-firmware-m-0c4c99ba33b3e66deea070e149279278dc7647f4-br1.tar.gz +sha256 c16df600171bfdae60d22a01f046d742f89ba1046e2e5ed135bbf091b21be34f license.rst
boot/trusted-firmware-m/trusted-firmware-m.mk new file +107 -0
107 lines not on this page · raw message
support/testing/tests/boot/test_tfm.py new file +12 -0
@@ -0,0 +1,12 @@ +import infra.basetest + + +class TestTFMBuild(infra.basetest.BRTest): + config = \ + """ + BR2_TARGET_TRUSTED_FIRMWARE_M=y + BR2_TARGET_TRUSTED_FIRMWARE_M_PLATFORM="arm/mps2/an521" + """ + + def test_run(self): + pass
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot