@@ -89,6 +89,7 @@ menu "Host utilities"
source "package/python-lxml/Config.in.host"
source "package/python-pyyaml/Config.in.host"
source "package/python-six/Config.in.host"
+ source "package/python-uswid/Config.in.host"
source "package/python-xlrd/Config.in.host"
source "package/python3/Config.in.host"
source "package/qemu/Config.in.host"
new file mode 100644
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_HOST_PYTHON_USWID
+ bool "host python-uswid"
+ select BR2_PACKAGE_HOST_PYTHON3
+ select BR2_PACKAGE_HOST_PYTHON3_XZ
+ help
+ A tiny tool for embedding CoSWID tags in EFI binaries.
+
+ https://github.com/hughsie/python-uswid
new file mode 100644
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/uswid/json
+md5 e43ff6d49ddcda0c95338d3271694b91 uswid-0.5.0.tar.gz
+sha256 bdcd7ee5afac1da60ee688c357aa12f5f8d74bc28012446b10e2b4a9cf52fc6d uswid-0.5.0.tar.gz
+# Locally computed sha256 checksums
+sha256 98bc07f3fb70d05b01ff740e8191b9f29c080159f01588991fbd872c611236f9 LICENSE
new file mode 100644
@@ -0,0 +1,18 @@
+################################################################################
+#
+# python-uswid
+#
+################################################################################
+
+PYTHON_USWID_VERSION = 0.5.0
+PYTHON_USWID_SOURCE = uswid-$(PYTHON_USWID_VERSION).tar.gz
+PYTHON_USWID_SITE = https://files.pythonhosted.org/packages/dc/bf/05291df12037befeacda2083c798e98691043978e07ca4a00b4eb94aeb61
+PYTHON_USWID_SETUP_TYPE = setuptools
+PYTHON_USWID_LICENSE = BSD-2-Clause-Patent
+PYTHON_USWID_LICENSE_FILES = LICENSE
+HOST_PYTHON_USWID_DEPENDENCIES = \
+ host-python-cbor2 \
+ host-python-lxml \
+ host-python-pefile
+
+$(eval $(host-python-package))
Signed-off-by: James Hilliard <james.hilliard1@gmail.com> --- Changes v3 -> v4: - add host python3 xz dependency --- package/Config.in.host | 1 + package/python-uswid/Config.in.host | 8 ++++++++ package/python-uswid/python-uswid.hash | 5 +++++ package/python-uswid/python-uswid.mk | 18 ++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 package/python-uswid/Config.in.host create mode 100644 package/python-uswid/python-uswid.hash create mode 100644 package/python-uswid/python-uswid.mk