summaryrefslogtreecommitdiff
path: root/meta-arm/meta-arm/recipes-devtools/trusted-firmware-m-scripts/trusted-firmware-m-scripts-native.inc
blob: afe655f8451c4efc5814a84ec3864e9ed8666963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"