From patchwork Thu May 11 14:07:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 23820 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57B4DC7EE22 for ; Thu, 11 May 2023 14:05:56 +0000 (UTC) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mx.groups.io with SMTP id smtpd.web10.60156.1683813955751539132 for ; Thu, 11 May 2023 07:05:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=sbPMSZlA; spf=pass (domain: linaro.org, ip: 209.85.210.180, mailfrom: jun.nie@linaro.org) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6434e263962so6454183b3a.2 for ; Thu, 11 May 2023 07:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683813955; x=1686405955; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ey4Rs5oJOJ5WEU0MB5E9oJPAc2ylUwJ7oIBcShwootg=; b=sbPMSZlAudRR5AaMIAu2PAwIFSQ1wRq8JFoarlMAC4dBiftqA8z1z+UnPh+PoA0ucc 08wAMJ9L7jrmK/MC+gOKUvclscyBvBfo+58f/+E9hD/xd+3W9jifCSdoILIS/aoPySgp 9oXDmK5L6iyWhXiMx2q5KamVneneVpSwCwwGt/H818Y0bQ/np0D7m+iPacG7Z+xHeSTK vMkoUNKeETgFk7smbc6Z+OEM1dRtMQaxBWNIuISdj69z+Gzl/2RvZeznqgzFVz8OaRVf ayeITib+5wOplmmGknQWYqsufKlHj3QPqI1xgkHVYX9iqXPLCAiSrccXXuhfVZzWJYzK HVHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683813955; x=1686405955; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ey4Rs5oJOJ5WEU0MB5E9oJPAc2ylUwJ7oIBcShwootg=; b=HW3kYyu1yXBA493ftUgjAMdtSMhsD9kSHheMlTA3GEaCes1ccAeQJDGHm2CUuFj/im u9k14FiqtTvPPFWuAJVmHu80ZrOXj4PUg8qAL38v9MUoj7/Gz1G4AHCKjcj1fUy2vzDX Fw1ojd7zVDu2QYFunYpoxMxybFa8M53ndKZE1V5W38RJtTNZQdgVXYgjv6lw2bed/wck 59HDq18/nqNzJfXzmrykn/MFf1QYj/g9z/4rXDt70gbtFQ9mTzOmnLG+jhLQTwVjzJJ2 cdWMMITeiiv0gG0ECwiBbOuq1ZhwW0VrgucIxDFBonprWY7pHG9QLJdnkL3J2DpZPb4V OWZg== X-Gm-Message-State: AC+VfDwcgq+lM01FjwEdNsU+wK2316zPi6Lu5AyObTFr9ELpDXr5gXrg WA70GUOlQSKyl81hb7135wgtLw== X-Google-Smtp-Source: ACHHUZ4l/ylmCjZjgFwMcB+zxl+xCB4a/y0bMsvZhKZdhlFKb1FpRlBh6wJbWZTwCYtxdv2CWBc8Cg== X-Received: by 2002:a05:6a21:900c:b0:103:d538:5e94 with SMTP id tq12-20020a056a21900c00b00103d5385e94mr2351876pzb.12.1683813954128; Thu, 11 May 2023 07:05:54 -0700 (PDT) Received: from niej-dt-7B47.. (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id m3-20020a63fd43000000b0051b36aee4f6sm5033731pgj.83.2023.05.11.07.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 07:05:53 -0700 (PDT) From: Jun Nie To: richard@hughsie.com, raj.khem@gmail.com Cc: openembedded-devel@lists.openembedded.org, Jun Nie Subject: [meta-oe][PATCH v2 1/3] libcbor: Add initial support Date: Thu, 11 May 2023 22:07:42 +0800 Message-Id: <20230511140744.2918627-2-jun.nie@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230511140744.2918627-1-jun.nie@linaro.org> References: <20230511140744.2918627-1-jun.nie@linaro.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 11 May 2023 14:05:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102542 To handle the general-purpose schema-less binary data format Signed-off-by: Jun Nie --- 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 diff --git a/meta-oe/recipes-extended/libcbor/libcbor_0.10.2.bb b/meta-oe/recipes-extended/libcbor/libcbor_0.10.2.bb new file mode 100755 index 0000000000..3ac270e5e0 --- /dev/null +++ b/meta-oe/recipes-extended/libcbor/libcbor_0.10.2.bb @@ -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" From patchwork Thu May 11 14:07:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 23821 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 475C8C7EE22 for ; Thu, 11 May 2023 14:06:06 +0000 (UTC) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web10.60158.1683813960989633875 for ; Thu, 11 May 2023 07:06:01 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@linaro.org header.s=google header.b=v8veHa2m; spf=pass (domain: linaro.org, ip: 209.85.215.172, mailfrom: jun.nie@linaro.org) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-52c30fbccd4so7796822a12.0 for ; Thu, 11 May 2023 07:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683813960; x=1686405960; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1Y9/qPvqaKYDlrdIBRPxpUF/O8Sr3vTZoxgaCOTvF9c=; b=v8veHa2mOSwOAYmpERx+e37DXxEeS3Yay2p0xHS0xHEJcotVzR8gB17UmYkadh9vpU CsQKt+CfnI8AXJx6DIg0w61SyRPbmiDpP+XhP+fQqFXS7pMTMjxBqbo/GzvMLZjaMxQc VDQ0O2sax9Aw0GN6doslrsTc21kYNgwh0VLzKOgg/w/rO7HL5z+SDG3l5AT9fJXpOqsH 2ukRCu3mMGxQyHb4mZedEkix3FezX0n/snUSP5uVCQjFQPJfmLfsHF1NJxnMevcA9yw5 TTBa4p0rv9yMshCfmvfwOxpYnjUrfsj7keizdmjbW2XeKTKgiRd1cWRQ900iXGZ7HHHf Aj6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683813960; x=1686405960; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1Y9/qPvqaKYDlrdIBRPxpUF/O8Sr3vTZoxgaCOTvF9c=; b=IM6jJufsFcCDzkw9LbPGIbfFK+jxL0Bf+ID7MzoUElaM2RzqpPb0Bsxe6BHC8+1KHd SQUcmt5I/ffwHGY/oVADs5+tIk7bwna2vtk2prwDZueZg4OPQ6P2jQXeaFjDx9NU9X5n M1MdMX3wZvU9dPrZe8aIu/wvf22qc5/+5Unm50tNfC4aSEDGwnEdfwHM7MV7mUYtsYbP N0K1IJ02RVxCgs6JRucKG1VzuTCTYfr6clszvVynb5/Ph5+squHRoE18LXzvKF/Q9uYJ hKyqmYLbsa8KFK6okX7rOfFFLlABRDtzw0Ns4H96Xh88ne3IEs2MPBAuZEMRVT6SU/sc D9LA== X-Gm-Message-State: AC+VfDzhhMj9jSlz/OcjMS8sezqrfhDeGDdwVV21FFwDOvQtkn8VDkA1 xpDrIkYL4VBiKEGetdy5iVGLxQ== X-Google-Smtp-Source: ACHHUZ7QvjwVGsgFHG++RajK/Px2kkJXfXURqjrq8gFtbygQVhXzFMcHEsGIi+I/XSUpGmM7PvKfpA== X-Received: by 2002:a05:6a21:100e:b0:f5:7035:9a05 with SMTP id nk14-20020a056a21100e00b000f570359a05mr23980271pzb.29.1683813960393; Thu, 11 May 2023 07:06:00 -0700 (PDT) Received: from niej-dt-7B47.. (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id m3-20020a63fd43000000b0051b36aee4f6sm5033731pgj.83.2023.05.11.07.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 07:05:59 -0700 (PDT) From: Jun Nie To: richard@hughsie.com, raj.khem@gmail.com Cc: openembedded-devel@lists.openembedded.org, Jun Nie Subject: [meta-oe][PATCH v2 2/3] python3-pefile: Add initial support Date: Thu, 11 May 2023 22:07:43 +0800 Message-Id: <20230511140744.2918627-3-jun.nie@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230511140744.2918627-1-jun.nie@linaro.org> References: <20230511140744.2918627-1-jun.nie@linaro.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 11 May 2023 14:06:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102543 To parse and work with Portable Executable (PE) files Signed-off-by: Jun Nie --- .../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 diff --git a/meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb b/meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb new file mode 100644 index 0000000000..580b17413b --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb @@ -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" From patchwork Thu May 11 14:07:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 23822 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D2C9C77B7C for ; Thu, 11 May 2023 14:06:16 +0000 (UTC) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mx.groups.io with SMTP id smtpd.web10.60164.1683813968076761417 for ; Thu, 11 May 2023 07:06:08 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@linaro.org header.s=google header.b=ssxYF9Nx; spf=pass (domain: linaro.org, ip: 209.85.210.172, mailfrom: jun.nie@linaro.org) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6435bbedb4fso9356033b3a.3 for ; Thu, 11 May 2023 07:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683813967; x=1686405967; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kjmCgzp3gI3qq41jmx5MKJ+usrhi/yGXrg62g7cybjk=; b=ssxYF9NxTtHhbRCqdaIKeyO+A1wydpgMrL4YbY5PPymKmKu8c6OKDZtkEeGkAGJduj m26sFLo2VGXVC+7viHg2mMnQCHDRYAp9blzXjm0yJ3WxIowJTb/AnebVTdAYQkp0Muml ZXDYqMqnxu9FVurCV8iJNehxbmT60yJR9R1zR71FNsWaj8pHaVuYSJDgX6PQy2AxfMnT KBe9l4UDGxaq0WD73/qLxoOikJrsO+CP4qF/yH/i7xRduktMLwejxUK0jl699i7Q1D6h oHaqgShHuw0QxXlDOrPdGrOulALsGO7MaUBQuZwfzDYD6e0icgxoliJei3j8nEoSZ2Zx d8vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683813967; x=1686405967; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kjmCgzp3gI3qq41jmx5MKJ+usrhi/yGXrg62g7cybjk=; b=J09n75TK4M07pUN3k3WbQNF+/+6kmnJOfSy3dOOmDhqgpXX5EVtuczPQpix6H4E9Ma A5VTzMXMlgdkzdtjjMtsD1oq2ZTBlu8VjPo9+0Kk0raMpUBD4FQ4w38ltztb9A/JvXJA p02TdTk81wuQVwiuBSmjzca0eKnspvTCNVsU7N66s90bX9X33iwMZnoyas2imwiYvMxL gwLaH/8ouDjGDZCFKU9wniPYovd5lOG9PSrcjEFZyyP4nQ+rLIuGdPoiPUVQB/+OxfWf WngUlioVRLcwODhlwVc9GBAgJw8dPk4vJqTDk5RGhN+l/ldeVjDCxlj3/PrykbG1LS6u OnqQ== X-Gm-Message-State: AC+VfDx6EPePnOceUztqEjjntwzuRSvTzCX3DTbsaPASs2M9mnzME5C1 GlonNbOKGiZAgfo94BTOoMxALQ== X-Google-Smtp-Source: ACHHUZ7UPH1VCjhr6GGhEme970V6Un/iMVOYBpQ27ZPbTGS5rIBahiXzkKcB6MDqLUCeMy0VhGtBBQ== X-Received: by 2002:a05:6a00:17a7:b0:645:454c:286d with SMTP id s39-20020a056a0017a700b00645454c286dmr22319947pfg.3.1683813967432; Thu, 11 May 2023 07:06:07 -0700 (PDT) Received: from niej-dt-7B47.. (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id m3-20020a63fd43000000b0051b36aee4f6sm5033731pgj.83.2023.05.11.07.06.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 07:06:06 -0700 (PDT) From: Jun Nie To: richard@hughsie.com, raj.khem@gmail.com Cc: openembedded-devel@lists.openembedded.org, Jun Nie Subject: [meta-oe][PATCH v2 3/3] python3-uswid: Add initial support Date: Thu, 11 May 2023 22:07:44 +0800 Message-Id: <20230511140744.2918627-4-jun.nie@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230511140744.2918627-1-jun.nie@linaro.org> References: <20230511140744.2918627-1-jun.nie@linaro.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 11 May 2023 14:06:16 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102544 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. 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. Signed-off-by: Jun Nie --- .../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 diff --git a/meta-python/recipes-devtools/python/python3-uswid_git.bb b/meta-python/recipes-devtools/python/python3-uswid_git.bb new file mode 100644 index 0000000000..6b2089893f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-uswid_git.bb @@ -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"