1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-07 04:58:57 +00:00

arm/trusted-firmware-m-scripts: Create inc file for common config

To simplify adding support for new versions of TF-M scripts in the
future, create a common .inc file with the non-version-specific
configuration.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Peter Hoyes
2023-02-22 12:04:40 +00:00
committed by Jon Mason
parent 064a97e745
commit f474a0fee9
2 changed files with 26 additions and 26 deletions
@@ -0,0 +1,25 @@
SUMMARY = "Trusted Firmware image signing scripts"
DESCRIPTION = "Trusted Firmware-M image signing scripts"
HOMEPAGE = "https://git.trustedfirmware.org/trusted-firmware-m.git"
inherit 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"
do_install() {
install -d ${D}/${libdir}
cp -rf ${S}/bl2/ext/mcuboot/scripts/ ${D}/${libdir}/tfm-scripts
cp -rf ${S}/bl2/ext/mcuboot/*.pem ${D}/${libdir}/tfm-scripts
}
FILES:${PN} = "${libdir}/tfm-scripts"
@@ -1,27 +1,2 @@
SUMMARY = "Trusted Firmware image signing scripts"
DESCRIPTION = "Trusted Firmware-M image signing scripts"
HOMEPAGE = "https://git.trustedfirmware.org/trusted-firmware-m.git"
require recipes-bsp/trusted-firmware-m/trusted-firmware-m-1.7.0-src.inc
inherit 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"
do_install() {
install -d ${D}/${libdir}
cp -rf ${S}/bl2/ext/mcuboot/scripts/ ${D}/${libdir}/tfm-scripts
cp -rf ${S}/bl2/ext/mcuboot/*.pem ${D}/${libdir}/tfm-scripts
}
FILES:${PN} = "${libdir}/tfm-scripts"
require recipes-devtools/trusted-firmware-m-scripts/trusted-firmware-m-scripts-native.inc