From patchwork Tue May 9 06:59:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 23647 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 96B25C77B75 for ; Tue, 9 May 2023 06:58:50 +0000 (UTC) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.web11.25755.1683615523643154176 for ; Mon, 08 May 2023 23:58:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=OjCxKuwo; spf=pass (domain: linaro.org, ip: 209.85.214.180, mailfrom: jun.nie@linaro.org) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1aafa41116fso37594105ad.1 for ; Mon, 08 May 2023 23:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683615523; x=1686207523; 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=nUrJQsvglHxBYXp9PPbXh39ALxVdfgM8NB9bD2ph/O0=; b=OjCxKuwo76JdjukEvc/fQpcTToODNG5N57Q0NDwpFbFEyN20XFsYi8Ex2gfINVBfoH 3ycTnw6gv8BPrF44lfdMHj+ub76K7KfiL5266Upp+Fe9tsqPomG7+3IeGyZw27JlDFNr NXsYy5XMG2b6fP9NsjPlS8GDRzQHIH3ODdSvqLYgQ0TbbEXYY3MJV4mFNw7sqJQYgLL2 r/c8m8Oi0vBVOTouU95Ez/zbydDXB/i91b7Km6d8V5xrCNMZT+tJtcp/Qpmu8Fn6GPFM 5XMsWTWPhtAlik+tjqpToVlHgYimF1ub+iB8szgcTaxqtBy7c2JAp1plmBwf5hQv+wLL p9OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683615523; x=1686207523; 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=nUrJQsvglHxBYXp9PPbXh39ALxVdfgM8NB9bD2ph/O0=; b=dBdxesXk5r9ug3WFNvFyowmmknnTlRsMOas8mrI2UB2uu3rv6yDPd7obj/szT9XNy0 Fsccw/dmScPbKyRGRXjMUOcUSIWBH6CFkMARlaQtOn/kycO6eR+WTvN5i2x3bU1L9ZfL 7qmAbBbgwNaE2oojlRdbbi+lqbx1s81G20reeunuziHl+w3sj0hpeAKkwN4nnadbTDJe mQ8DnTX5HenBuF5b8MB52xMaoY4kHjEuTnSr7bMvLbVOpLqawuXh+8ImQUVW49R3QIw8 lmCqEXe7doeUxAFuqh9hzhpv9RpYxH6pNV7G06Ot+B1MJh4YEe7HmNFO5C8fNNsQxyhK E0Yg== X-Gm-Message-State: AC+VfDwe3sXTaiQNlqfeRGN9EQlodGZCdNMvSeAamaS7GhTvZv1n5XGv QX8i1hhcVTQl/KGWC9TOnVOVWQ== X-Google-Smtp-Source: ACHHUZ5g2SP2pSCW1KtbNCQVaRAjp5+EDeNMV5Uoz1eIYujnXIO78FUxDBA70bauGaoC+6pf5vcwVg== X-Received: by 2002:a17:903:2308:b0:1a9:7622:e308 with SMTP id d8-20020a170903230800b001a97622e308mr17405712plh.20.1683615523060; Mon, 08 May 2023 23:58:43 -0700 (PDT) Received: from niej-dt-7B47.. (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id t24-20020a170902b21800b001a505f04a06sm700038plr.190.2023.05.08.23.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 23:58:42 -0700 (PDT) From: Jun Nie To: richard@hughsie.com, raj.khem@gmail.com Cc: openembedded-devel@lists.openembedded.org, Jun Nie Subject: [meta-oe 1/3] libcbor: Add initial support Date: Tue, 9 May 2023 14:59:38 +0800 Message-Id: <20230509065940.1584276-2-jun.nie@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230509065940.1584276-1-jun.nie@linaro.org> References: <20230509065940.1584276-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 ; Tue, 09 May 2023 06:58:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102465 To handle the general-purpose schema-less binary data format Signed-off-by: Jun Nie --- meta-oe/recipes-extended/libcbor/libcbor_git.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 meta-oe/recipes-extended/libcbor/libcbor_git.bb diff --git a/meta-oe/recipes-extended/libcbor/libcbor_git.bb b/meta-oe/recipes-extended/libcbor/libcbor_git.bb new file mode 100755 index 0000000000..53ba230533 --- /dev/null +++ b/meta-oe/recipes-extended/libcbor/libcbor_git.bb @@ -0,0 +1,13 @@ +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" +PV = "git${SRCPV}" + +inherit cmake From patchwork Tue May 9 06:59:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 23648 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 9E19AC77B7C for ; Tue, 9 May 2023 06:58:50 +0000 (UTC) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mx.groups.io with SMTP id smtpd.web11.25757.1683615528934851839 for ; Mon, 08 May 2023 23:58:49 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@linaro.org header.s=google header.b=sJ9DraHB; spf=pass (domain: linaro.org, ip: 209.85.210.175, mailfrom: jun.nie@linaro.org) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-64115eef620so40162943b3a.1 for ; Mon, 08 May 2023 23:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683615528; x=1686207528; 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=3fa4hedSEyT37y9a4Aj1XNjuASTLDKxoOTIShXfiCvg=; b=sJ9DraHB5kErdH/OQUrC51EdPMWOR2u61GMR6oEYqTefyjMJF7q3rkIwg9sZc0qAq6 b5nRPWCAe1nhpkeJ6R4xFa8wi/gwS9pFy3S4AKsxuiLl9oHCA5VIuWFgEYXB0mtAjFTZ xJL1l/C3vD60iDlIpPkrfi5Z7W9lpiE2FYgmJOkXdzvlcLv52noOiwlHHjwrULUMyGSI wzijH3FZi3WkryKmfiZYUCWkTOF4eMl+naOBmNMFgVrOgTDbV+YGWOS6L1ZLOcClyOAY YdOTjgXZq9QiatsvZLKMTAorRFgQPhzLDn1xgKd8l9d9cAW56XrtE9+aWwrMvatsXEFu g4Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683615528; x=1686207528; 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=3fa4hedSEyT37y9a4Aj1XNjuASTLDKxoOTIShXfiCvg=; b=k+5QtZFJY1B5Law/4G1diVmShJ2Gv0i0YwrIk9l8SVsEuAVaZyOpPwr/KNNVQmRJAI hgNsP48R7BIjOy0mzVeHwM1Ktu7hqYlov+dzjVMrJUoYrro7hW1Scr8ENnNT4VEmqCTH s6Cnt3QbRPyIIEn0IjKJI5YlQ7XLh4eccWrhIyzMw6/+4pEjIiV+J6upS0ml/LDVyOb8 KywHulwE4d/8FCtNChjR0R9Eq/daEsxOuvuV0jg2g/kzV6yDNUCYuhUZt6wgBsMyBwnD Bs7Bd7EwaAbrjsBW2DXMRGof3BPaBAYOwn6BEtzZmGpqV7BC2S8rbkEFU/6nL/SQlhuJ WKLQ== X-Gm-Message-State: AC+VfDxSaoqo9YyU/Ye/3m50B8z0/5igQy55Tc3QJMcw+hqQKNuqQ4ua G2EKnNZQEelaa79cjam9IiiGoQ== X-Google-Smtp-Source: ACHHUZ5DmcP06lSFx9xYq4XQ6c3gbVQ6uNrYCYm04DONDu0IuAwH8ZXJKR+7nHwhLhjIy+0uTBwTow== X-Received: by 2002:a17:902:e5c3:b0:1aa:d6ad:4eaa with SMTP id u3-20020a170902e5c300b001aad6ad4eaamr15937070plf.2.1683615528237; Mon, 08 May 2023 23:58:48 -0700 (PDT) Received: from niej-dt-7B47.. (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id t24-20020a170902b21800b001a505f04a06sm700038plr.190.2023.05.08.23.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 23:58:47 -0700 (PDT) From: Jun Nie To: richard@hughsie.com, raj.khem@gmail.com Cc: openembedded-devel@lists.openembedded.org, Jun Nie Subject: [meta-oe 2/3] python3-pefile: Add initial support Date: Tue, 9 May 2023 14:59:39 +0800 Message-Id: <20230509065940.1584276-3-jun.nie@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230509065940.1584276-1-jun.nie@linaro.org> References: <20230509065940.1584276-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 ; Tue, 09 May 2023 06:58:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102466 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..37e27b1a03 --- /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] = "11cd7ed7082d5256e9741e8b98c654f061723fafb5b2719c01a0b4cc6f89e09d" + +PIP_INSTALL_PACKAGE = "pefile" +PIP_INSTALL_DIST_PATH = "${S}/dist" + +BBCLASSEXTEND = "native nativesdk" From patchwork Tue May 9 06:59:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 23649 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 9D632C77B7C for ; Tue, 9 May 2023 06:59:00 +0000 (UTC) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mx.groups.io with SMTP id smtpd.web11.25758.1683615533541838512 for ; Mon, 08 May 2023 23:58:53 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=YfvRr4/S; spf=pass (domain: linaro.org, ip: 209.85.214.178, mailfrom: jun.nie@linaro.org) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1aae46e62e9so39263815ad.2 for ; Mon, 08 May 2023 23:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683615533; x=1686207533; 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=YfvRr4/Sm8mXWGOlJN5JY695qRm+im7VXpZROxlFynfnBxhV6NV5f4xpDepwRPQmfS 2fP1IZjyrX9cc4OvV3f0vBa6oiJGmyRcTUqIPOQxub6vVQQAiiu/eamFOKsa+4mz5e1u o4lTM83+GiSpv3GlEW3KmCDk2CKK2LqrtkewCs/rFy/vZfXNnz9Ktb0XVEQuWhVSlr5T cUJyNPNoDs+ktYDM1On0q8SV4STE/jPh/dKwaEyVCOOYM8OkcKcmrcryuIAfNfx8TJNK T8oYRvtpPZyGnu1/nTikg89PaB9MoQMiQ6TpIb4qoB2QzVmlgwfMdyBbrgxcyyywSWT0 xrgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683615533; x=1686207533; 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=TuJh7mTVOHxihqp9TiIdzEOry9m66rpQvT93VkVsBBlSWBM9HMRmoTSdZQCoVNeV+R OvhnJne9gN75ln7a6RzrDi5qjIOjKJXaN5H8N6WTeS8KY2WfqOc5gxOpWxsNOLWOVt0R QG4G47HV96r1vu0L6ZlsgeZcKkdj+Iwgwxlv0s5gBcuGCAJGiHfSkqQkMw854As8LDKW JSguQ/fHq/akKLjScPcX/qJbYPadCthZPJ9gnMlYcuv0iwax1ZxoEHBBzYC46ithqRPa nA4TTJM72gik84Boodzxxxvl1yxA8vclzfNMjF8EFX5bEotvFAr/WN93JrJY1pGNUXV+ 48Rw== X-Gm-Message-State: AC+VfDyJKgmHo0WZPgFP8KIGMX2cNBP+veVfClWQ2ltI/Wz2uKWtx7L1 +ZmIIHpkM/mvJ0cXRL94jExt/0EwCdViXeXjFvo= X-Google-Smtp-Source: ACHHUZ406FBpdIHdTom7I04FofkHAUOXpt7WcwNd1sBTygJP+Fy1Qk+KHPlgjWYtcKGCa5tVd91RXg== X-Received: by 2002:a17:903:11c4:b0:1a9:7365:fc2a with SMTP id q4-20020a17090311c400b001a97365fc2amr16339597plh.26.1683615533042; Mon, 08 May 2023 23:58:53 -0700 (PDT) Received: from niej-dt-7B47.. (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id t24-20020a170902b21800b001a505f04a06sm700038plr.190.2023.05.08.23.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 23:58:52 -0700 (PDT) From: Jun Nie To: richard@hughsie.com, raj.khem@gmail.com Cc: openembedded-devel@lists.openembedded.org, Jun Nie Subject: [meta-oe 3/3] python3-uswid: Add initial support Date: Tue, 9 May 2023 14:59:40 +0800 Message-Id: <20230509065940.1584276-4-jun.nie@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230509065940.1584276-1-jun.nie@linaro.org> References: <20230509065940.1584276-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 ; Tue, 09 May 2023 06:59:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102467 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"