[honister,14/19] arm-bsp/python3-imgtool: add the recipe

Message ID 20211123155926.31743-15-abdellatif.elkhlifi@arm.com
State New
Headers show
Series adding corstone1000-fvp on honister | expand

Commit Message

Abdellatif El Khlifi Nov. 23, 2021, 3:59 p.m. UTC
From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>

Until this is integrated into meta-python, hold a copy of
python3-imgtool in meta-arm-bsp used by trusted-firmware-m.

Change-Id: I2e86be503bee03de549f5714dc52921165afa2bf
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Signed-off-by: Arpita S.K <Arpita.S.K@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 meta-arm-bsp/conf/layer.conf                       |  1 +
 .../corstone1000-imgtool/python3-imgtool_1.7.1.bb  | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-devtool/corstone1000-imgtool/python3-imgtool_1.7.1.bb

Patch

diff --git a/meta-arm-bsp/conf/layer.conf b/meta-arm-bsp/conf/layer.conf
index f4306a6..954e5d8 100644
--- a/meta-arm-bsp/conf/layer.conf
+++ b/meta-arm-bsp/conf/layer.conf
@@ -13,6 +13,7 @@  LAYERSERIES_COMPAT_meta-arm-bsp = "honister"
 
 LAYERDEPENDS_meta-arm-bsp = "core meta-arm"
 # This won't be used by layerindex-fetch, but works everywhere else
+LAYERDEPENDS_meta-arm-bsp:append:corstone1000 = " meta-python"
 LAYERDEPENDS_meta-arm-bsp:append:musca-b1 = " meta-python"
 LAYERDEPENDS_meta-arm-bsp:append:musca-s1 = " meta-python"
 
diff --git a/meta-arm-bsp/recipes-devtool/corstone1000-imgtool/python3-imgtool_1.7.1.bb b/meta-arm-bsp/recipes-devtool/corstone1000-imgtool/python3-imgtool_1.7.1.bb
new file mode 100644
index 0000000..06d52d0
--- /dev/null
+++ b/meta-arm-bsp/recipes-devtool/corstone1000-imgtool/python3-imgtool_1.7.1.bb
@@ -0,0 +1,14 @@ 
+SUMMARY = "MCUboot's image signing and key management"
+LICENSE = "Apache-2.0"
+AUTHOR = "The MCUboot committers <mcuboot@groups.io>, \
+          Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>"
+
+LIC_FILES_CHKSUM = "file://PKG-INFO;md5=e32b214fd9c204b77a99a97aa903757b"
+
+SRC_URI[md5sum] = "de0005dc13ce9e5e6aecdedfd0956286"
+
+DEPENDS:corstone1000 = "python3-cryptography python3-intelhex python3-click python3-cbor"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"