package/python-uswid: new host package

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
James Hilliard
2024-07-19 00:32:33 -06:00
committed by Thomas Petazzoni
parent 8270da3e4f
commit ab11a03899
4 changed files with 32 additions and 0 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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))