mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-07 04:58:57 +00:00
arm/trusted-firmware-m: Synchronize with 1.7.0 release
Update the TF-M image signing scripts to use the TF-M 1.7.0 sources, so it is in sync with the TF-M recipe itself. Synchronize the trusted-firmware-m and -scripts Python dependencies with the in-repo requirements.txt files. This requires a recipe to be carried for pyhsslms. 1.7.0 introduces the --measured-boot-record argument to the image signing script, which is required to maintain existing behavior. Add it to the arguments in the tfm_sign_image bbclass. Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -72,6 +72,7 @@ EOF
|
||||
--align 1 \
|
||||
--pad \
|
||||
--pad-header \
|
||||
--measured-boot-record \
|
||||
-H ${RE_IMAGE_OFFSET} \
|
||||
-s auto \
|
||||
"${1}" \
|
||||
|
||||
@@ -59,15 +59,21 @@ INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
# See tools/requirements.txt for Python dependencies
|
||||
DEPENDS += "cmake-native \
|
||||
ninja-native \
|
||||
gcc-arm-none-eabi-native \
|
||||
python3-intelhex-native \
|
||||
python3-jinja2-native \
|
||||
python3-pyyaml-native \
|
||||
python3-cbor2-native \
|
||||
python3-click-native \
|
||||
python3-cryptography-native \
|
||||
python3-cbor2-native"
|
||||
python3-pyasn1-native \
|
||||
python3-imgtool-native \
|
||||
python3-jinja2-native \
|
||||
python3-pyyaml-native \
|
||||
python3-pyhsslms-native \
|
||||
python3-ecdsa-native \
|
||||
python3-kconfiglib-native \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git/tfm"
|
||||
B = "${WORKDIR}/build"
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
SUMMARY = "Pure-Python implementation of HSS/LMS Digital Signatures (RFC 8554)"
|
||||
HOMEPAGE ="https://pypi.org/project/pyhsslms"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=58f6f7065b99f9d01d56e759256a6f1b"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
PYPI_PACKAGE = "pyhsslms"
|
||||
SRC_URI[sha256sum] = "58bf03e34c6f9d5a3cfd77875d0a1356d4f23d7ad6ffd129b1e60de1208db753"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+11
-3
@@ -1,9 +1,9 @@
|
||||
|
||||
SRC_URI_TRUSTED_FIRMWARE_M ?= "git://git.trustedfirmware.org/TF-M/trusted-firmware-m.git;protocol=https"
|
||||
SRC_URI = "${SRC_URI_TRUSTED_FIRMWARE_M};branch=${SRCBRANCH}"
|
||||
# Use the wrapper script from TF-Mv1.6.0
|
||||
# Use the wrapper script from TF-Mv1.7.0
|
||||
SRCBRANCH ?= "master"
|
||||
SRCREV = "7387d88158701a3c51ad51c90a05326ee12847a8"
|
||||
SRCREV = "b725a1346cdb9ec75b1adcdc4c84705881e8fd4e"
|
||||
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://license.rst;md5=07f368487da347f3c7bd0fc3085f3afa"
|
||||
@@ -12,7 +12,15 @@ S = "${WORKDIR}/git"
|
||||
|
||||
inherit native
|
||||
|
||||
RDEPENDS:${PN} = "python3-imgtool-native python3-click-native"
|
||||
# See bl2/ext/mcuboot/scripts/requirements.txt
|
||||
RDEPENDS:${PN} = "\
|
||||
python3-cryptography-native \
|
||||
python3-pyasn1-native \
|
||||
python3-pyyaml-native \
|
||||
python3-cbor2-native \
|
||||
python3-imgtool-native \
|
||||
python3-click-native \
|
||||
"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
Reference in New Issue
Block a user