Add necessary lib and python tool to handle CoSWID tag
v2 cover Add necessary lib and python tool to handle CoSWID tag
Software Identification (SWID) tags provide an extensible XML-based structure to identify and describe individual software components, patches, and installation bundles.
CoSWID supports a similar set of semantics and features as SWID tags, as well as new semantics that allow us to describe additional types of information, all in a more memory efficient format.
Changes vs V1:
- fix libcbor cmake flag and rename recipe with version
- fix python3-pefile SRC_URI sha value
Jun Nie (3):
libcbor: Add initial support
python3-pefile: Add initial support
python3-uswid: Add initial support
.../recipes-extended/libcbor/libcbor_0.10.2.bb | 14 ++++++++++++++ .../python/python3-pefile_2023.2.7.bb | 13 +++++++++++++ .../recipes-devtools/python/python3-uswid_git.bb | 15 +++++++++++++++ 3 files changed, 42 insertions(+) create mode 100755 meta-oe/recipes-extended/libcbor/libcbor_0.10.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb create mode 100644 meta-python/recipes-devtools/python/python3-uswid_git.bb
Signature · 1 line
2.34.1
PATCH v2 1/3 libcbor: Add initial support
To handle the general-purpose schema-less binary data format
--- meta-oe/recipes-extended/libcbor/libcbor_0.10.2.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 meta-oe/recipes-extended/libcbor/libcbor_0.10.2.bb
meta-oe/recipes-extended/libcbor/libcbor_0.10.2.bb new file +14 -0
@@ -0,0 +1,14 @@ +SUMMARY = "library for CBOR" +DESCRIPTION = "C library for parsing and generating CBOR, the general-purpose schema-less binary data format." + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=6f3b3881df62ca763a02d359a6e94071" + +SRC_URI = "git://github.com/PJK/libcbor.git;protocol=https;branch=master" +SRCREV = "efa6c0886bae46bdaef9b679f61f4b9d8bc296ae" + +S = "${WORKDIR}/git" + +inherit cmake + +EXTRA_OECMAKE += " -DCMAKE_BUILD_TYPE=Release"
Signature · 1 line
2.34.1
PATCH v2 2/3 python3-pefile: Add initial support
In reply to Jun NieTo parse and work with Portable Executable (PE) files
--- .../python/python3-pefile_2023.2.7.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb
meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "Python PE parsing module" +DESCRIPTION = "A multi-platform Python module to parse and work with Portable Executable (PE) files." +HOMEPAGE = "https://github.com/erocarrera/pefile" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873" + +inherit setuptools3 pypi ptest +SRC_URI[sha256sum] = "82e6114004b3d6911c77c3953e3838654b04511b8b66e8583db70c65998017dc" + +PIP_INSTALL_PACKAGE = "pefile" +PIP_INSTALL_DIST_PATH = "${S}/dist" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH v2 3/3 python3-uswid: Add initial support
In reply to Jun NieSoftware Identification (SWID) tags provide an extensible XML-based structure to identify and describe individual software components, patches, and installation bundles.
CoSWID supports a similar set of semantics and features as SWID tags, as well as new semantics that allow us to describe additional types of information, all in a more memory efficient format.
python3-uswid is used to generate the CoSWID data blob. For example, fwupd project requires CoSWID data to be embedded into firmware binary to hold the version information.
--- .../recipes-devtools/python/python3-uswid_git.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-uswid_git.bb
meta-python/recipes-devtools/python/python3-uswid_git.bb new file +15 -0
@@ -0,0 +1,15 @@ +SUMMARY = "A pure-python library for embedding CoSWID data" +HOMEPAGE = "https://github.com/hughsie/python-uswid" +SECTION = "devel/python" +LICENSE = "LGPL-2.1-or-later" + +DEPENDS += " python3-cbor2 python3-lxml python3-pefile" +LIC_FILES_CHKSUM = "file://LICENSE;md5=40d2542b8c43a3ec2b7f5da31a697b88" + +SRC_URI = "git://github.com/hughsie/python-uswid.git;branch=main;protocol=https" +SRCREV = "3223034abef88ae29cf79fdc7fe11ec7e21e11ff" +S = "${WORKDIR}/git" + +inherit setuptools3 python3native + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1