From patchwork Wed Nov 24 21:14:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 393 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 329D5C4332F for ; Wed, 24 Nov 2021 21:14:32 +0000 (UTC) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) by mx.groups.io with SMTP id smtpd.web08.4099.1637788470835952065 for ; Wed, 24 Nov 2021 13:14:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ni2/Qgq/; spf=pass (domain: gmail.com, ip: 209.85.222.182, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f182.google.com with SMTP id p4so5044230qkm.7 for ; Wed, 24 Nov 2021 13:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UI6pqZZhA72FB0PFzKWJINSMQUhIFbRPOQleWwpQYL8=; b=ni2/Qgq/rrmpcMBWGdCBFasyIVhz15kZEiGZ7KnzMWLRZAeNd/59SGyLcsfo2NcLfs hiSEXR68Qv6k5uwZKnMjBuQBwZMC1SVvnbhpoQBE6SN4uIZF7yJ7ApSp98PwHYR6saJi OmtMikHOstUKwLEusl6RQ99AKh8JsjmHNH5bLa1ezHDvk/Rbkm1K9mM8jiSjxW+KtKwu 8yFpv4pFXU7Xk9Hg7zXyyQwsoU5pddcEx6omvcssDS3A5NhMWmKi0ucZaRRsvP8otpLo kQQihDQc4O7oW1jx0RmxUa9X18Q876yfoWxMPzRPv32FJY/JH7/vWNMgLYx4XmQj6I7L o2gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UI6pqZZhA72FB0PFzKWJINSMQUhIFbRPOQleWwpQYL8=; b=rOse2pFr+90fzBnp5WS3MEpNXebqBFRAZvoMXIPC5QJsJwS1YMeSMUxUIorlEcdxEd ig53lSb1f+J7RYM1NCcpJpogFYVU/riJXjJ3W0uSXm+GTg3wOopLqdcad5EZcigIM/5R fv6dWc2XS4LauvObVX+60+DZRPvQ4sdoYwA9nlt6z96eJs7QYyUxYXbsuYVqvlSb5cKw lov5XXwrXJ6hK7ziDTg+Cv13aSR7j7waLxy+aON4WbjfZ6PPgGvt0qKo6GhY4Lw3/HGp Og1EqPUGs+7jP1rk4/lZ4kHWXa0pls1o4pf4bU6o4T4P9TMry20yAQVkpzRmjS+Nnrbe yRRA== X-Gm-Message-State: AOAM530K48XHmB2ym/z3AY4C/Y2aJlAaBc7reGNG/3vGDeYT/lQi63CH 25vlSSnCY55JR7P2c5/zDjk= X-Google-Smtp-Source: ABdhPJyHNXAXFpC/nqnJTU6u3YBawuwOeaIRGDqj8S09v0xsY3e1ckgyUYq/+vEv9skXH8XB5kBBLQ== X-Received: by 2002:a05:620a:2887:: with SMTP id j7mr9572131qkp.390.1637788469906; Wed, 24 Nov 2021 13:14:29 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:29 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 01/20] linux-yocto-dev: bump to v5.16+ Date: Wed, 24 Nov 2021 16:14:07 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:32 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158747 From: Bruce Ashfield Bumping the version of -dev ot 5.16. We also pickup two new dependencies to support kernel dtschema validation. This requirement was introduced by kernel commit: commit 53182e81f47d4ea0c727c49ad23cb782173ab849 Author: Rob Herring Date: Mon Sep 13 09:51:46 2021 -0500 kbuild: Enable DT schema checks for %.dtb targets It is possible to build a single dtb, but not with DT schema validation enabled. Enable the schema validation to run for %.dtb and %.dtbo targets. Anyone building a dtb for a specific platform *should* pay attention to schema warnings. This could be supported with a separate %.dt.yaml target instead. However, the .dt.yaml format is considered an intermediate format and could possibly go away at some point if schema checking is integrated into dtc. Also, the plan is to enable the schema checks by default once platforms are free of warnings, and this is a move in that direction. Cc: Dmitry Baryshkov Cc: Tom Rini Cc: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org Signed-off-by: Rob Herring Acked-by: Masahiro Yamada Link: https://lore.kernel.org/r/20210913145146.766080-1-robh@kernel.org Signed-off-by: Bruce Ashfield --- meta/recipes-kernel/linux/linux-yocto-dev.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb index 005b688778..ed94ab2517 100644 --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb @@ -30,7 +30,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name SRCREV_machine ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}' SRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}' -LINUX_VERSION ?= "5.15+" +LINUX_VERSION ?= "5.16+" LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}" PV = "${LINUX_VERSION}+git${SRCPV}" @@ -39,6 +39,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native" DEPENDS += "gmp-native libmpc-native" +# yaml and dtschema are required for 5.16+ device tree validation +DEPENDS += "libyaml-native python3-dtschema-native" COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv64)" From patchwork Wed Nov 24 21:14:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 391 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 31767C433EF for ; Wed, 24 Nov 2021 21:14:32 +0000 (UTC) Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) by mx.groups.io with SMTP id smtpd.web11.3992.1637788471642981887 for ; Wed, 24 Nov 2021 13:14:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Wvt/kq8f; spf=pass (domain: gmail.com, ip: 209.85.222.174, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f174.google.com with SMTP id t6so5078013qkg.1 for ; Wed, 24 Nov 2021 13:14:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5tfgslNhFAFObuFTQBVzUvWWWSLroURSP+sdRNuEqUY=; b=Wvt/kq8fD07mSY6mhxrBe1a/+jUWRLuRJS4jGERSWPDQT3N+VwVwATNIuZNTkeS183 IIAz41GxUFx2iNduS+1umtjs6H+xTsLqVVhs5HFRgejmUJUPKsRrQFrc7od0Vb4PTZiD xidk4RzIks2DLWGPMxw3VHz4briWS8qfpdWEJMddmsWdBUbqzwD0bZXENz2KdPhh55/i vOMN49NeySw1g/Yt8Spsnn5JW1IK+e6B1jVJFrQ5xJ3d1YxPTwZ3rYj99KF0BCSMs4ix n1NDXs+wu5CcVbczkOLiCRRRgO2SFxmDqjMHP1aSrK2GQqTnO8LKPFvOUgWpwcG9FfaY uZmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5tfgslNhFAFObuFTQBVzUvWWWSLroURSP+sdRNuEqUY=; b=XRhP5yM5llwvC8zlC3gjyMsa9O2060J9Rvy7H7t+h1kEYhZdHhI6iML/yAlcuES4wz +TZPK34b9qwsoUlil4woxHBfiUKCRr5vi0LlT/eguxER5bACbRNYuikFo1QlF5m25ifo 9xPSrw128ryB8MLvX6Q2+uK31wgJuDIGPA6osMairlphyeK1Az9Nuz0hPUk4k4cy1fUR qGPpLh2Drn85xp4KM+/qhsT5f9TzQEQycDOhv5percaX4dXPGD+u+XzIAm4G5EYADMIj iQZhEYbk7BRL7lN2p6H91LoJbIlIrzDfTY9FLpg+Yp9u/KYkv+npHdSGV1SIE6es1t17 nnkQ== X-Gm-Message-State: AOAM5326Ho/ahoYb9GDQ0yLS4C/GwFpYhBDJIXjzf0DnPBI1dtEyYZT5 mq8A2u+IlyT7DTxCO6McHM8= X-Google-Smtp-Source: ABdhPJwHMqLb27lJ2VjfbTjvhIMLv72ShJ+Lk22NveFHt3LvNH/KroeDz01ZJxwvMqIkC6UHyHYSXA== X-Received: by 2002:a05:620a:22f5:: with SMTP id p21mr9834827qki.498.1637788470784; Wed, 24 Nov 2021 13:14:30 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:30 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 02/20] kernel: export native PKGCONFIG variables Date: Wed, 24 Nov 2021 16:14:08 -0500 Message-Id: <21c084db7340d627741dba92fdefe3d27f99eef0.1637788184.git.bruce.ashfield@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:32 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158748 From: Bruce Ashfield In a similar manner to cml1.bbclass, we export the pkg-config variables to allow a direct call to pkg-config access to the native sysroot versus the target sysroot. The kernel doesn't use pkg-config for target configuration, and has many explicit calls to pkg-config, without the possibility of easy override to pkg-config-native. The calls to pkg-config could be made cross friendly via replacement with make variables, but until that effort is undertaken upstream, we need a bridge approach. In particular, this is required for dtschema validation, which is a requirement in kernel 5.16+ Signed-off-by: Bruce Ashfield --- meta/classes/kernel.bbclass | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index e0b752de19..2d219cb5e5 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -326,6 +326,13 @@ KERNEL_DEBUG_TIMESTAMPS ??= "0" kernel_do_compile() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE + + # setup native pkg-config variables (kconfig scripts call pkg-config directly, cannot generically be overriden to pkg-config-native) + export PKG_CONFIG_DIR="${STAGING_DIR_NATIVE}${libdir_native}/pkgconfig" + export PKG_CONFIG_PATH="$PKG_CONFIG_DIR:${STAGING_DATADIR_NATIVE}/pkgconfig" + export PKG_CONFIG_LIBDIR="$PKG_CONFIG_DIR" + export PKG_CONFIG_SYSROOT_DIR="" + if [ "${KERNEL_DEBUG_TIMESTAMPS}" != "1" ]; then # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not # be set.... From patchwork Wed Nov 24 21:14:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 392 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 28E4BC433FE for ; Wed, 24 Nov 2021 21:14:33 +0000 (UTC) Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) by mx.groups.io with SMTP id smtpd.web10.4150.1637788472555845259 for ; Wed, 24 Nov 2021 13:14:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TRtPJ825; spf=pass (domain: gmail.com, ip: 209.85.222.181, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f181.google.com with SMTP id q64so5056533qkd.5 for ; Wed, 24 Nov 2021 13:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0+4CIbyQ4HuRpkTimYLLLpEXHnlcmfQrTqKZxirwEwM=; b=TRtPJ825X1acGF4MPDKa3NSTk25jWsitaqJrwEuhOTLvdBMQF0NrXzriMGHHKaz6LC KVMHLtocbiUGsjayC2LIvnQd5fbZmNW6kgdNRuij14a6LZpASVmNUxi4A26bG4qQOnWk ASe6ks+GJOf08uUpNS3uBqwc2ci2JAbGAbyP3iGD9TzcHH9N21m/GUyqQ/sHyyWgxjtl A3kaJforchAHRL9UpokeUe4OWYi3Midtz9JqFWVOdmR7+Z10MhnV6N1p9y7/aKpfj/pr rBe8lGLG+dPbP1VSSsfFh91WT2rYRb35PnSo/2vvTdVJL1r6j9WfpZE5k1QTv5HGYB74 zwLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0+4CIbyQ4HuRpkTimYLLLpEXHnlcmfQrTqKZxirwEwM=; b=7PN/CbeEPSoAmIIzn4KFMsfBJeDsla82FZBEuGZixhvPssXBgz1H5Dj2NaXXOJr07b QvpWzWp55D+TKAGzDVHb7lKRDXorzUvXJLwAzkmNTmnvvmtaqnet6k7QxQkBpnOwV+Fo TM5LwqZpJ1YiWM8O5fOvCaA2+9D8IPsERl2P1HXaBDCRK1/WQ1yhUrJHYO4bi80fDmKg SJ4ee3NWPBR6FoGnXHy8+pf9SLVIjblR53XxydM5oeMd8EHvso0Geu0cL8RWGRmF3gDz RuNjuIZ7qjXXAKeDj5xfi/Trcs9/9bq9VQM8+k+DEqqDqbk6oiUNY/lbI+KMGHr2eADt 7ggg== X-Gm-Message-State: AOAM533zoV6Rcb7Mpqx45NgsfRtMOKJDpCLMpQQAQ/rhzSjEo9BZMuqJ 7HhNcd9FzGM9kbuYXZ0IMmA= X-Google-Smtp-Source: ABdhPJzAiGrQgFPcuKR16twCOnnJpzMMtAOoX5IKUOAc3AMvmflnqmjiKL+acbxqxVneAN0mOYFbTw== X-Received: by 2002:a05:620a:127b:: with SMTP id b27mr9391894qkl.183.1637788471706; Wed, 24 Nov 2021 13:14:31 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:31 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 03/20] python: introduce python3-dtschema Date: Wed, 24 Nov 2021 16:14:09 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158749 From: Bruce Ashfield kernel commit 53182e81f47d [kbuild: Enable DT schema checks for %.dtb targets], which is part of v5.16+, makes the checking of dtb schemas manditory. To support the checking, we introduce this new recipe dtschema. Dependencies will be imported in subsequent commits, so we can track the dependency need on a per-import basis. Signed-off-by: Bruce Ashfield --- .../python/python3-dtschema_2021.10.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-dtschema_2021.10.bb diff --git a/meta/recipes-devtools/python/python3-dtschema_2021.10.bb b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb new file mode 100644 index 0000000000..f16232d610 --- /dev/null +++ b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "Tooling for devicetree validation using YAML and jsonschema" +HOMEPAGE = "https://github.com/devicetree-org/dt-schema" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=457495c8fa03540db4a576bf7869e811" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "dtschema" + +SRC_URI[md5sum] = "d2f0d847ba2ad4d223317ef7304342b0" +SRC_URI[sha256sum] = "d09c94d13f46e6674ba11ff31220651ad1b02dae860f5a87905dfac6b8d768d9" + +DEPENDS += "python3-setuptools-scm" +RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987" + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 394 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 27060C433F5 for ; Wed, 24 Nov 2021 21:14:34 +0000 (UTC) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by mx.groups.io with SMTP id smtpd.web09.3980.1637788473433305881 for ; Wed, 24 Nov 2021 13:14:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HidvdZVJ; spf=pass (domain: gmail.com, ip: 209.85.160.178, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qt1-f178.google.com with SMTP id t34so4084918qtc.7 for ; Wed, 24 Nov 2021 13:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZhFNzrCuMTpHsg6HM4paCFGFMMnkAPdTe+ZdSkF8UDc=; b=HidvdZVJEbfDv9GDcrNWRwzy30svxvrxlnbyLIybmw/WU+Z0OOydIeler2G92a2nLR /MBTK0ovDmqBruaChH+gVIKzMSkFjg3ok1eQPrypP78tNXiNoPIaZfdZAUn6Ad/Z2xs6 +7/VCu4DdphLL8Gv1aVmBSyL4eFj+H3T/hQ5EixWWORi+Tie93097ErO5fVcAGN5jaj0 xV/ubzRmftH1dHzcDvC91ZTiR6oIdGyCYURsTFLovxINE8QR+YcCOtvSCCmHK4g69nY/ fD8gFD0+j5dOVSdtbzH0yJNYLtn3F/2Zyz+RFtVK6AMoXdH1S1jBK0F+8dyu7UJk6B8w EP6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZhFNzrCuMTpHsg6HM4paCFGFMMnkAPdTe+ZdSkF8UDc=; b=5lZiRqmIIuDw26CTH3KK8oeiJYMYtYJNjbD5mbP/E9z+zrr2bT/GiZEpzxQkZC79Yc znCXnwa/a7v/R1ACWBpxNC6SJteGLLl7BaZDuEGmEbP5NawIK4ifMspwzAHkZaic9t5I J8kxtkFISLLAkDqX/DjZjqcKmBMgRJvSOQZZWLBt0cMxnv2uhRj/LgCSXg9qQ6hN/Mdl 3zTHMwMQTDVt02ez4utMOLz1jMylCq/PpfL39QIXCOQtmYa1U4xe1JKCVtQyFFFvHRsi 9OhM2mZNXB81QuOWsP6GkSQnwjESn7zlMiAJH+8pF2+3DbhTTMa8l0Lwnd4Nzkuf6kgK xcoA== X-Gm-Message-State: AOAM531mcN/0L/Y+338LF9zjvuGI/mcQuHPPwmtukKnv7RrfXzEybO0E wr53D48iZ9IzuNgsHlYJll4= X-Google-Smtp-Source: ABdhPJyl8CUziu9p6ztYV9dH/IF6C5b4EvXjlCHIpS8UtKPkEiWSSVwB8ELR39Ysi9YJlp/QZg3WiA== X-Received: by 2002:ac8:57ce:: with SMTP id w14mr11271858qta.252.1637788472572; Wed, 24 Nov 2021 13:14:32 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:32 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 04/20] python: import jsonpointer from meta-python Date: Wed, 24 Nov 2021 16:14:10 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:34 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158750 From: Bruce Ashfield required to support python3-json, which is required for python3-dtschema and device tree checking by the kernel. Signed-off-by: Bruce Ashfield --- .../python/python3-jsonpointer/run-ptest | 3 +++ .../python/python3-jsonpointer_2.1.bb | 26 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-jsonpointer/run-ptest create mode 100644 meta/recipes-devtools/python/python3-jsonpointer_2.1.bb diff --git a/meta/recipes-devtools/python/python3-jsonpointer/run-ptest b/meta/recipes-devtools/python/python3-jsonpointer/run-ptest new file mode 100644 index 0000000000..51e609f4ba --- /dev/null +++ b/meta/recipes-devtools/python/python3-jsonpointer/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +python3 tests.py diff --git a/meta/recipes-devtools/python/python3-jsonpointer_2.1.bb b/meta/recipes-devtools/python/python3-jsonpointer_2.1.bb new file mode 100644 index 0000000000..fb3d9e0da9 --- /dev/null +++ b/meta/recipes-devtools/python/python3-jsonpointer_2.1.bb @@ -0,0 +1,26 @@ +SUMMARY = "Resolve JSON Pointers in Python" +HOMEPAGE = "https://github.com/stefankoegl/python-json-pointer" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=32b15c843b7a329130f4e266a281ebb3" + +inherit pypi ptest setuptools3 + +SRC_URI[sha256sum] = "5a34b698db1eb79ceac454159d3f7c12a451a91f6334a4f638454327b7a89962" + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-json \ +" + +BBCLASSEXTEND = "native nativesdk" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + cp -f ${S}/tests.py ${D}${PTEST_PATH}/ +} From patchwork Wed Nov 24 21:14:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 395 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 3436FC433FE for ; Wed, 24 Nov 2021 21:14:35 +0000 (UTC) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by mx.groups.io with SMTP id smtpd.web10.4151.1637788474428632563 for ; Wed, 24 Nov 2021 13:14:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XFNrIS3+; spf=pass (domain: gmail.com, ip: 209.85.222.177, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f177.google.com with SMTP id g28so5029796qkk.9 for ; Wed, 24 Nov 2021 13:14:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fGjnjc6y0KSH8anUAzQKpDSAqdDGHb9ifuw0EDlZlOE=; b=XFNrIS3+13BU60outKsYMB850SESF9Ov0DOOSZ51HG7asPnyKdbBOFf9rTpKDBgx3k FL7Xaf1OZ+r2S3WWV7vjbmZVbtllXwmI8nQQjSl4yP5rWOI0nVudggYjVY9f1J84pV5+ O5t6gHU2oU03lfHJOh7RnQOidq47FqziD3b4ViNx+Bb0LWLiKzSxVDWxSYmm30hITpGh gyqTuxmeS+ExLGV0p28MTwdTT2Ey9kBI7dqho/Y2l0/AHiN1ug3jakB2FgdabHAfTln6 fNlREeVEyKBSnJyhEse+vuHKsoo+3CwC2+7ongtqeWKiBLdICtN+j/dv7wyYwPe266r3 zxBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fGjnjc6y0KSH8anUAzQKpDSAqdDGHb9ifuw0EDlZlOE=; b=jgeyzsusWWcFKF9SpzYNh198RhHzMz5BL1oflB5zDrXxlu7PeOr8eMa1RhlRNdUb8A MENz8CrbDDV+Yg4FHQuE5MAl2Mo4289gtU6jwbMqMuV/b/cJnR36umDoKyGrKP8BHELM KaLzFIdvF8N73tR1dYvlOzkF+zFpEJNIGAl03+Pi3xCC92qIvmH67Lj4v3WemHqErdI2 I3HOq4J58bJqUsyRGCMhCWGqQxcXJRDqmAgyklRIIJFVCtDpbE07HOanMQjV4CEz9qHD 0+qtMgegR/MSIpYOdZYpRTYHz6WWaRsehy6iJimVwGQvCqUj/eFDsZi4OdfOVb9gx4XA YClA== X-Gm-Message-State: AOAM531GvViyXFlkQIUQNWXtcTA/rjk0Omrc6js72d7fEIcnSHcQBHxW Rikjl+qGfPKY5pZGMQ51M8I= X-Google-Smtp-Source: ABdhPJwqYP2Q2+AHHSwTgV5wE7zHgGaMeEsLz3D5OyRx1vr7YPJkK2lnK+C4mZzXgQlfN2S78Lzn8w== X-Received: by 2002:a37:9b47:: with SMTP id d68mr1494013qke.717.1637788473538; Wed, 24 Nov 2021 13:14:33 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:33 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 05/20] python: import jsonschema from meta-python Date: Wed, 24 Nov 2021 16:14:11 -0500 Message-Id: <408de88e7c1ff55cb4dca6b92abb6e386e6f4a41.1637788184.git.bruce.ashfield@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158751 From: Bruce Ashfield Importing this package as a dependency to python3-dt-schema, which is required for kernel device tree validation. Signed-off-by: Bruce Ashfield --- .../python/python3-jsonschema_3.2.0.bb | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-jsonschema_3.2.0.bb diff --git a/meta/recipes-devtools/python/python3-jsonschema_3.2.0.bb b/meta/recipes-devtools/python/python3-jsonschema_3.2.0.bb new file mode 100644 index 0000000000..c7efe33a83 --- /dev/null +++ b/meta/recipes-devtools/python/python3-jsonschema_3.2.0.bb @@ -0,0 +1,48 @@ +SUMMARY = "An implementation of JSON Schema validation for Python" +HOMEPAGE = "https://github.com/Julian/jsonschema" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=7a60a81c146ec25599a3e1dabb8610a8 \ + file://json/LICENSE;md5=9d4de43111d33570c8fe49b4cb0e01af" +DEPENDS += "${PYTHON_PN}-vcversioner-native ${PYTHON_PN}-setuptools-scm-native" + +SRC_URI[md5sum] = "f1a0b5011f05a02a8dee1070cd10a26d" +SRC_URI[sha256sum] = "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a" + +inherit pypi setuptools3 + +PACKAGECONFIG ??= "format" +PACKAGECONFIG[format] = ",,,\ + ${PYTHON_PN}-idna \ + ${PYTHON_PN}-jsonpointer \ + ${PYTHON_PN}-webcolors \ + ${PYTHON_PN}-rfc3987 \ + ${PYTHON_PN}-strict-rfc3339 \ +" +PACKAGECONFIG[nongpl] = ",,,\ + ${PYTHON_PN}-idna \ + ${PYTHON_PN}-jsonpointer \ + ${PYTHON_PN}-webcolors \ + ${PYTHON_PN}-rfc3986-validator \ + ${PYTHON_PN}-rfc3339-validator \ +" + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-attrs \ + ${PYTHON_PN}-core \ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-importlib-metadata \ + ${PYTHON_PN}-io \ + ${PYTHON_PN}-json \ + ${PYTHON_PN}-netclient \ + ${PYTHON_PN}-numbers \ + ${PYTHON_PN}-pkgutil \ + ${PYTHON_PN}-pprint \ + ${PYTHON_PN}-pyrsistent \ + ${PYTHON_PN}-shell \ + ${PYTHON_PN}-six \ + ${PYTHON_PN}-unittest \ + ${PYTHON_PN}-setuptools-scm \ + ${PYTHON_PN}-zipp \ +" + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 396 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 330ADC433F5 for ; Wed, 24 Nov 2021 21:14:36 +0000 (UTC) Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) by mx.groups.io with SMTP id smtpd.web11.3994.1637788475252159013 for ; Wed, 24 Nov 2021 13:14:35 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nxBGbwXW; spf=pass (domain: gmail.com, ip: 209.85.219.45, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f45.google.com with SMTP id jo22so2618282qvb.13 for ; Wed, 24 Nov 2021 13:14:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SWUKMCxWM2wO87bo4Kb5Vg2jaTTBc1cgQL+o4sSjMvk=; b=nxBGbwXWcXPVkIWeI1vL8aUSeEUP2UNxLLYtRj0vyyrCKgFAqXHxMEU/15PvLsmyN5 UFH8toNk2ppNK3ntk2cIpFO10QzYASOmXeawYUmdRqDP0NRA7CJccNcZIgLmQH2mXY3a FshqNPnuWdJdl3htCBJ+Sr/PpstPhE2mkpakLhluPhf606uezOAfqt8DgMVev3q7QZC9 usA6bsA3pWYOGbMTdpPv/IsnRwIPV2Zlkpr29t9EugprQY/hqksmx3sO0Pedeap9aty2 NIPjk8+2uVQmPEz2EoeHN5s0BUWlaSCpYbecXyoEB81Uv3wvYcvPBf+SmhLvkh1dIDTT 3Mzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SWUKMCxWM2wO87bo4Kb5Vg2jaTTBc1cgQL+o4sSjMvk=; b=n81hVbnEBKV/pP8wHTip7p353gucLh9pwRKvmqFlAUN7lu5/Nw5iSxBwi3UmeQIoYh kTEe20t5fLTNTTOH0M31/el2uEPRx61vemRb4Z5j283qhhbfD/oiazEmXP639A0m9H8K 2ecpYj/YdrZrjVBZ6icPrzN1uXQ7KWN+scy251PkKTLnYu15sfeA61yPlbS7ksmwi79C zUROPLcpHeopL2EwJGYY7Pjc5kPSeP0oHp9qN/5ChGJfP6i3snt7mjHzVlf7FL6YvOtN dvZuGozFFB8NRtocU9X/V1f1TxsWwvs6wg8UgpeJLTIlrIob9ngoz107Gg8WArZVNI32 W9zg== X-Gm-Message-State: AOAM530OLIUfcnJC42+NMyXYxui9sf/ajCZRDkh25szmxmwLY2YBYg0m w3oRXQA1nTNJJSpk3TFFkUk= X-Google-Smtp-Source: ABdhPJyiSQukMnM+93uzA/Xyyv47wW0Zi6CQIqJmVmqMX//ZVfCxZZgCvMnP5VPapWahMVEHKWujNg== X-Received: by 2002:ad4:5be9:: with SMTP id k9mr11655082qvc.62.1637788474413; Wed, 24 Nov 2021 13:14:34 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:34 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 06/20] python: import idna from meta-python Date: Wed, 24 Nov 2021 16:14:12 -0500 Message-Id: <8c8050afba93d619727e44821089e40c7a95b19d.1637788184.git.bruce.ashfield@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158752 From: Bruce Ashfield Importing idna from meta-python, which is a dependency of python3-jsonschema. These packges are required to support the validation of kernel device trees. Signed-off-by: Bruce Ashfield --- .../python/python3-idna_3.3.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-idna_3.3.bb diff --git a/meta/recipes-devtools/python/python3-idna_3.3.bb b/meta/recipes-devtools/python/python3-idna_3.3.bb new file mode 100644 index 0000000000..a0e6b79a56 --- /dev/null +++ b/meta/recipes-devtools/python/python3-idna_3.3.bb @@ -0,0 +1,19 @@ +SUMMARY = "Internationalised Domain Names in Applications" +HOMEPAGE = "https://github.com/kjd/idna" +LICENSE = "BSD-3-Clause & Python-2.0 & Unicode" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=239668a7c6066d9e0c5382e9c8c6c0e1" + +SRC_URI[sha256sum] = "9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d" + +inherit pypi setuptools3 + +# Remove bundled egg-info +do_compile:prepend() { + rm -rf ${S}/idna.egg-info +} + +RDEPENDS:${PN}:class-target = "\ + ${PYTHON_PN}-codecs \ +" + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 397 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 28EA2C433FE for ; Wed, 24 Nov 2021 21:14:37 +0000 (UTC) Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) by mx.groups.io with SMTP id smtpd.web12.3999.1637788476077076339 for ; Wed, 24 Nov 2021 13:14:36 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LogeWUcU; spf=pass (domain: gmail.com, ip: 209.85.219.50, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f50.google.com with SMTP id gu12so2635388qvb.6 for ; Wed, 24 Nov 2021 13:14:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oDVwv+qBE1pNj5i7FN65q94QCOIEQCUCacf5H04qKSg=; b=LogeWUcUHBVvtCLDwBS3AXhsgMFn79Q90JMTJrnxpeOsemfKLT3uhNAhPS/QrSI0Ap jpVN+PjxEbzoWjEw5lrx2x+Y2suaiKV76Tu/4GL3ktANdVT1ItwN3QgDnIMWjA1kzdeo 2d1VWkdND8r5Jzc92Nc2iay6VoK5ujaJbrQRfNI1dJZpeAazxIdauZPIMqfjSD7ZKZYs vETwUFIhqoPfid1CgFWuKmkE7d6RAHorNoLfhgdL0XXJgMh8kvc7+YOnCjY+V1W0HEeo GJqVq07mdnKoEJ3PGeA/J1R5pUF7GTKLkSX1yBx1PqIaB6DJd8e6SYWZigfmf9By4+2D cD2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oDVwv+qBE1pNj5i7FN65q94QCOIEQCUCacf5H04qKSg=; b=ttvqPWsppjtZvFmJCuUsAYsXaQ+mo1PA6B/hSqVxAWZ06qEgNjwqYk458Fl1oke/xC AHRmR1LVlsUs09qF0SOdxkxepMjY5BS7Xx1v14S/103BVvDpchIUgVv1DbgC2oahK+G4 UNkKI3kT72LWH/sRI3vRzneKj0LzKfhyYqCgRTnh4FlsMdfVKLQ8LHTv8fwsXeg/VtY1 73SppNSvowKxbe4eHXlXeiNMpXejrdRXpN7drl7uL4dLl3ggstZll+KqPcZzDCX4EzIW E/zc3PnPIH2X6LKZmShPy2eSdCSzs7CXa3d6mCIzKENWRxPyqwlxX2mKZyu7vs5PEoHp HWHQ== X-Gm-Message-State: AOAM533lYQcNVDf8WbpNo3KIuNDN6nDPEdGLD/vzSwu7pz881EtEtA8D 9uOHVuw0BRumlOOpUeywcE4= X-Google-Smtp-Source: ABdhPJwcJC49UyWGSy8BqvYM8cp4lVmFgcuhgkekwg5eaZx/ok7xQiFgQv/LoB7wlJe7cVxBB2fTrw== X-Received: by 2002:a05:6214:4007:: with SMTP id kd7mr11682425qvb.52.1637788475257; Wed, 24 Nov 2021 13:14:35 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:34 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 07/20] python: import rfc3339-validator from meta-python Date: Wed, 24 Nov 2021 16:14:13 -0500 Message-Id: <7f326cee54467c982490bcddf477608ac9e5fc43.1637788184.git.bruce.ashfield@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158753 From: Bruce Ashfield Importing rfc3339-validator from meta-python, which is a dependency of python3-jsonschema. These packges are required to support the validation of kernel device trees. Signed-off-by: Bruce Ashfield --- .../python/python3-rfc3339-validator_0.1.4.bb | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-rfc3339-validator_0.1.4.bb diff --git a/meta/recipes-devtools/python/python3-rfc3339-validator_0.1.4.bb b/meta/recipes-devtools/python/python3-rfc3339-validator_0.1.4.bb new file mode 100644 index 0000000000..7f1bbaf97d --- /dev/null +++ b/meta/recipes-devtools/python/python3-rfc3339-validator_0.1.4.bb @@ -0,0 +1,20 @@ +SUMMARY = "A pure python RFC3339 validator" +HOMEPAGE = "https://github.com/naimetti/rfc3339-validator" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a21b13b5a996f08f7e0b088aa38ce9c6" + +FILESEXTRAPATHS:prepend := "${THISDIR}/python-rfc3339-validator:" + +SRC_URI[sha256sum] = "138a2abdf93304ad60530167e51d2dfb9549521a836871b88d7f4695d0022f6b" + +PYPI_PACKAGE = "rfc3339_validator" + +inherit pypi setuptools3 + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-core \ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-six \ +" + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 398 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 2BD33C433EF for ; Wed, 24 Nov 2021 21:14:38 +0000 (UTC) Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) by mx.groups.io with SMTP id smtpd.web08.4102.1637788477452235626 for ; Wed, 24 Nov 2021 13:14:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QDUe6bh1; spf=pass (domain: gmail.com, ip: 209.85.219.47, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f47.google.com with SMTP id i13so2665312qvm.1 for ; Wed, 24 Nov 2021 13:14:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+HEhp7sorDpjVKaB10E672BMQl8EJ+TusId+bh/83Gg=; b=QDUe6bh1LHau3QN3+Uw6KSo0cIR0G9d5iAIA+vTLOkWcY+rsNnApdKXwGzf1unsR3I nZxBJYo4YqXcllZ4uH5rkB8PNUecCm4NMaO77nz4z2B6x7BnkzZ+yCocjgPoNywSjfZi u32/Tgla6UBMWy0ryxK5pN+zJxBn4h+fsnUAbXoRHOdlzIEenA7el8bilx8Of2K3fwKj zW3lf7DdSUCZ0mtRwkI38QJ6ePIBHPVrGXvilM8HfSQFVSGiFiNLOHLXunZCpz6Zpxhs b/aDQCqOcXJWlcDTMt/ZAqA4figSm0rVOMZRr1jdCnLBEhvzBMBSMhwEqGPheip77gmB WOkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+HEhp7sorDpjVKaB10E672BMQl8EJ+TusId+bh/83Gg=; b=qlLCOsiX2+mdo39OMcv1HXbUEsukrbfs6B/xj/IFWhLcUWjoznAaZBuX+HermHVgbN w3opEiqTzhWcw9aiO5P/iFNsH4ITEXeBfUeyRoGqzTyrLY3FjxLOdy25FYleiLQ5x0nS af6+CSf+geX2WoARC6GnDMLtz9/wtLIlH/+22DSgifOYpMw/2ragYuncsk/Bm6ZwwF1q 8ZXszqnArx42+OA2TTzC8jAI5ePoEaq6YLxOAqMtS7InDYb/LEL0u9F6tvLN1xhd1N15 UZGDPcJkt9UMEp/b5nJ9dkgJuLeHwc0gSH2SX8UPZZvlw+SavHVSt5I/0FL5jigsVRzG hZiw== X-Gm-Message-State: AOAM533Pc4amEAddG6LivEGnHcluMScvSUA96EZkkA57JFXEpgEijFcF r5nMkH2PPaxFs9n3/kCo5g9xYzazmZqkTg== X-Google-Smtp-Source: ABdhPJyygXfBpxQho+iwPGQW9kaFBxeg/MjgmSNb4+ZcV1tvYppYFb5A4RFZPl14AcClUak2/6Lf5A== X-Received: by 2002:a0c:bed0:: with SMTP id f16mr11134906qvj.57.1637788476516; Wed, 24 Nov 2021 13:14:36 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:36 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 08/20] python: import rfc3986-validator from meta-python Date: Wed, 24 Nov 2021 16:14:14 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158754 From: Bruce Ashfield Importing rfc3986-validator, which is a dependency of python3-jsonschema. These packges are required to support the validation of kernel device trees. Signed-off-by: Bruce Ashfield --- ...e-pytest-runner-to-test_requirements.patch | 32 +++++++++++++++++++ .../python/python3-rfc3986-validator_0.1.1.bb | 23 +++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 meta/recipes-devtools/python/python-rfc3986-validator/0001-setup.py-move-pytest-runner-to-test_requirements.patch create mode 100644 meta/recipes-devtools/python/python3-rfc3986-validator_0.1.1.bb diff --git a/meta/recipes-devtools/python/python-rfc3986-validator/0001-setup.py-move-pytest-runner-to-test_requirements.patch b/meta/recipes-devtools/python/python-rfc3986-validator/0001-setup.py-move-pytest-runner-to-test_requirements.patch new file mode 100644 index 0000000000..8a646874e8 --- /dev/null +++ b/meta/recipes-devtools/python/python-rfc3986-validator/0001-setup.py-move-pytest-runner-to-test_requirements.patch @@ -0,0 +1,32 @@ +From 3531ff73631a0d59234eb4713e7b3a7f5ea57bbb Mon Sep 17 00:00:00 2001 +From: Nicola Lunghi +Date: Thu, 14 Nov 2019 12:17:51 +0000 +Subject: [PATCH] setup.py: move pytest-runner to test_requirements + +This fixes an issue with yocto build. +pytest-runner is only needed when running tests. + +Upstream-Status: Pending +--- + setup.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 53ebea7..ebb0de2 100644 +--- a/setup.py ++++ b/setup.py +@@ -10,9 +10,9 @@ with open('README.md') as readme_file: + + requirements = [] + +-setup_requirements = ['pytest-runner', ] ++setup_requirements = [] + +-test_requirements = ['pytest>=3', ] ++test_requirements = ['pytest>=3', 'pytest-runner'] + + setup( + author="Nicolas Aimetti", +-- +2.20.1 + diff --git a/meta/recipes-devtools/python/python3-rfc3986-validator_0.1.1.bb b/meta/recipes-devtools/python/python3-rfc3986-validator_0.1.1.bb new file mode 100644 index 0000000000..68b3db1f48 --- /dev/null +++ b/meta/recipes-devtools/python/python3-rfc3986-validator_0.1.1.bb @@ -0,0 +1,23 @@ +SUMMARY = "Pure python rfc3986 validator" +HOMEPAGE = "https://github.com/naimetti/rfc3986-validator" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a21b13b5a996f08f7e0b088aa38ce9c6" + +FILESEXTRAPATHS:prepend := "${THISDIR}/python-rfc3986-validator:" + +SRC_URI[md5sum] = "47f7657b790aaf6011a1ab3d86c6be95" +SRC_URI[sha256sum] = "3d44bde7921b3b9ec3ae4e3adca370438eccebc676456449b145d533b240d055" + +PYPI_PACKAGE = "rfc3986_validator" + +inherit pypi setuptools3 + +SRC_URI:append = " \ + file://0001-setup.py-move-pytest-runner-to-test_requirements.patch \ +" + +RDEPENDS:${PN} += "\ + python3-core \ +" + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 399 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 2DF8BC433F5 for ; Wed, 24 Nov 2021 21:14:39 +0000 (UTC) Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) by mx.groups.io with SMTP id smtpd.web11.3995.1637788478265881915 for ; Wed, 24 Nov 2021 13:14:38 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AztnpRnU; spf=pass (domain: gmail.com, ip: 209.85.219.44, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f44.google.com with SMTP id m17so2642091qvx.8 for ; Wed, 24 Nov 2021 13:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FOZUTeR8iOz1V/p6thOneGoDqj1RkoXU+Ln3qFaWdq8=; b=AztnpRnUQjaOWoa+0xNvCU+3dIngqEG/O7HAiiKDymMpwJ6w9BLjZdyiJ5Po/7rLYB 15hL0IpPSnAWyU8KWOh8ggyZ659W/tD5j4WYsO1f3N6fV4CFjp8gW7vRcbF8OTPitFbC e+FRi0W8X07ezSICPDdMwdPlQFDJxp/cMdRFWH68xo3FGddaYw4Naps3f+U2jNprSW5c XzzLMfCPUNyqfSTGVmcmGK8IywPzsnTOfNwqP27vjMdUQUuivFFgU5ke0aHvPbFYK1oH Wm84NEPK6L7S6zLEDo3nPGo+dtGgcokQeI4amH0KyN1lD+pCVCOeP/QJM7xfT4QL2wAq x0VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FOZUTeR8iOz1V/p6thOneGoDqj1RkoXU+Ln3qFaWdq8=; b=Tm9FAwmd6kinr2l1+X5rn+3d3MCD3A021EF9YLKLcSxyq4ojtLcD6IC+CLyX8J59Zr 9ruKqbEE5I0DDnC3YIevIOyVJ9ZB6hQfgx2fKfbBjJrHBU70BQU96eYi9nnK56jytrPc +k6tNF67GGNgxzMJvBO4LFf9KFnOsUsjNWK49TJjKVnlF/c7UzL7G5mj73An3fqy7vXS S9l0SQ/nejWE0u6M2YE5UUSjOG1YUmsZliyA4hK0Wa4d0V0XF0sSahRGDQuTs6NGqiJL crF+dU5tD3vH0EUD6AiA1WasFMUhTh0DEU5ThiHB+kzzRND7pLMZJ11n+4tA6zoRJBhi NzUw== X-Gm-Message-State: AOAM533BcmOatzOq++B5VgPmTiP9CRX4wjC8lmxUPCjCaylFGYOvoZDI e/NUHZlOxY/oEXq/ael5/nM= X-Google-Smtp-Source: ABdhPJywtCNlCPt7bwJoBEu1E2vNQZoeb5XbDjs/12CeiOunBxRmC8jPlXve4dP2dAug0vEpIhrDGg== X-Received: by 2002:ad4:5b8f:: with SMTP id 15mr11588372qvp.60.1637788477406; Wed, 24 Nov 2021 13:14:37 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:37 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 09/20] python: import webcolors from meta-python Date: Wed, 24 Nov 2021 16:14:15 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158755 From: Bruce Ashfield Importing webcolors, which is a dependency of python3-jsonschema. These packges are required to support the validation of kernel device trees. Signed-off-by: Bruce Ashfield --- .../python/python3-webcolors/run-ptest | 3 +++ .../python/python3-webcolors_1.11.1.bb | 27 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-webcolors/run-ptest create mode 100644 meta/recipes-devtools/python/python3-webcolors_1.11.1.bb diff --git a/meta/recipes-devtools/python/python3-webcolors/run-ptest b/meta/recipes-devtools/python/python3-webcolors/run-ptest new file mode 100644 index 0000000000..3385d68939 --- /dev/null +++ b/meta/recipes-devtools/python/python3-webcolors/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' diff --git a/meta/recipes-devtools/python/python3-webcolors_1.11.1.bb b/meta/recipes-devtools/python/python3-webcolors_1.11.1.bb new file mode 100644 index 0000000000..2ec036ef35 --- /dev/null +++ b/meta/recipes-devtools/python/python3-webcolors_1.11.1.bb @@ -0,0 +1,27 @@ +SUMMARY = "Simple Python module for working with HTML/CSS color definitions." +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=25b90379a52351261c51272e7923d240" + +SRC_URI[md5sum] = "54d28a7c80b3e4d974ec2fee86768be9" +SRC_URI[sha256sum] = "76f360636957d1c976db7466bc71dcb713bb95ac8911944dffc55c01cb516de6" + +inherit pypi setuptools3 ptest + +RDEPENDS:${PN}:class-target = "\ + ${PYTHON_PN}-stringold \ +" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 400 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 28D0CC433EF for ; Wed, 24 Nov 2021 21:14:40 +0000 (UTC) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by mx.groups.io with SMTP id smtpd.web08.4103.1637788479400044496 for ; Wed, 24 Nov 2021 13:14:39 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Icf3F4H5; spf=pass (domain: gmail.com, ip: 209.85.222.180, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f180.google.com with SMTP id i9so5056380qki.3 for ; Wed, 24 Nov 2021 13:14:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BLeoqB4zQJ3QixWfKR334c+JwfTFTsMlhNv+teIFZbY=; b=Icf3F4H5CDA/mUcKAf8K7Gyr5/tNCu6qidmUNZpmJehVt11E8G0edpS+Yq6O5vMUlm nfeyfl/23JVCyBf0PpF4ucZzMu6dXdWI889QhTLEhaaTGjOsPfIqISe3ZQ6ne0HqkyGz 3ncZE/V28MYddrsbA7C09S3opwPJZQR9cM9T2tqAdAWcBHw3z85cXYMV0GbBtPNfyceM YoUI5Y5hfiNaylJxXQTy4mfGNbRBE5UEkhc9ESVAEagPBp18H/GdivcROJZi9j6gKV4x iql19rF7z3vcC/dfaiBYhgdG4yrh/wrvwy6eHJ5uF05dBso0cTjRqANWUjmjuF7vM4Hy 1XEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BLeoqB4zQJ3QixWfKR334c+JwfTFTsMlhNv+teIFZbY=; b=KI43oBOJqSl0lHxpzYMZ0m9dzjbjtn/DJGkenDpkUC9aNl0VsJQW0q6gyaXAvGK6d+ 4+J82/0PoWOvYA6iMOPUT1vjVyyTCQOYztJuke++S+oxY1o8oG63CrnB7z64wC+9u6d2 cyc9zddG/G2qGPCkJZeo+cHZNfr9BaFhdEquNZfMbHADt5UVBbEuLVYvXkyJJemICLGA NiYP3uHtqi4XdOGgx8nKtCru9cGglDqrJDtQ3VgziLZ0gpMvgh7hNiChpAM5UuzqAwNt gTSFq6XE9d1JiUWmj5XjoWoG1f73Z4elbcNmv2YaNy445Dv6ALn5rzu6jsWS7f/Deaiy zhqw== X-Gm-Message-State: AOAM531JVfoiDDJ3WuYOWRgzLJxKnj2wGPwDYlVUqEbZJFsgt2eL9h12 G699wo+QayUkKO5oWOqzIag= X-Google-Smtp-Source: ABdhPJxezojH0EljBrsnL1rqrRbrpfRIfGf7I3J1JYCSiL4dMOZd3lDwWQ8AlGw59V6Y9GZCK7B6SQ== X-Received: by 2002:a05:620a:1a8d:: with SMTP id bl13mr9334709qkb.200.1637788478561; Wed, 24 Nov 2021 13:14:38 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:38 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 10/20] python: import ruamel-yaml from meta-python Date: Wed, 24 Nov 2021 16:14:16 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:40 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158756 From: Bruce Ashfield Importing ruamel-yaml from meta-python. This package is a dependency of python3-dtschema, which is required to validate kernel devicetrees. Signed-off-by: Bruce Ashfield --- .../python/python3-ruamel-yaml_0.17.16.bb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-ruamel-yaml_0.17.16.bb diff --git a/meta/recipes-devtools/python/python3-ruamel-yaml_0.17.16.bb b/meta/recipes-devtools/python/python3-ruamel-yaml_0.17.16.bb new file mode 100644 index 0000000000..e64f196004 --- /dev/null +++ b/meta/recipes-devtools/python/python3-ruamel-yaml_0.17.16.bb @@ -0,0 +1,23 @@ +SUMMARY = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order." +AUTHOR = "Anthon van der Neut" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fa0a51dfb461e2f803969e0f3fa71dfe" + +PYPI_PACKAGE = "ruamel.yaml" + +inherit pypi setuptools3 + +SRC_URI[sha256sum] = "1a771fc92d3823682b7f0893ad56cb5a5c87c48e62b5399d6f42c8759a583b33" + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-shell \ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-netclient \ +" + +do_install:prepend() { + export RUAMEL_NO_PIP_INSTALL_CHECK=1 +} + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 401 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 29F72C433FE for ; Wed, 24 Nov 2021 21:14:41 +0000 (UTC) Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) by mx.groups.io with SMTP id smtpd.web12.4001.1637788480319975354 for ; Wed, 24 Nov 2021 13:14:40 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NwB1ioBX; spf=pass (domain: gmail.com, ip: 209.85.219.51, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f51.google.com with SMTP id bu11so2686202qvb.0 for ; Wed, 24 Nov 2021 13:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HBXYzIcDbWfSZ9MC8xvyz+u2DWcbab2XOL/C6LGV8Fk=; b=NwB1ioBXtwHjESL8xBFxoO79+I87dnDtMBXzwTHOVjM4ciEVE3UpaB9ATC7jgBxWN0 9Zy/+33HldhaVF+WCRP4tGEYm1xoj+VythoiRl6s/P6VfSq/9wsRmq43IF20uNJuByt8 0wlC3tL7JjzSQB6BFZH2TFn0w1SmVq+eyVaBCT1++QCV/qn7to1N0TM9rVyKatVyLAaa 99oGohJEDbAbsQDJfLQVgYKw0Ri+OeLFLA7nJaETsxKquhn3h1Cvs5pibDAfngSgMfBt xRjogKMPjApR7CmaP3z7p8XejoypxV/OJPL5VrF+f/4DYi4W4lTphZOUG+JvUvy7IqfE j8UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HBXYzIcDbWfSZ9MC8xvyz+u2DWcbab2XOL/C6LGV8Fk=; b=UqxAQQIFYRJMmapdkWl09liAlfK2S2I0uJlNYUu8JzEfB6EnRrLBJ8/RcpYSnY0u6n lUYZuYhDy/iihzMYigSlyQ/GPC4bBRkaouOfDi6B7pOHy+pZWuux54Gf5NqNYXdSn4sN u7r/nFPKWHfdSEV4F8AJIjVf+7GRNWQj2pn359jJlQDVKhGEFYY+zfOMqfWjK2NDh2DH cXG65eKdTf5nY/TeQK6UK1cA9xVg1qN/3wDqei9lnKGwsJmpK2H9zcKH8Y9iGvzV0NGL eqzPpjyi1z4OHCT58/m08dO/3ZNt7DSqkddAgB1q/8rUFZ9lqr96MleYZDay6ObYN6KQ xMhg== X-Gm-Message-State: AOAM530l5/G97Zo8sYop0fwBKjvggmFad7nSs74+ZaRQFAdvfkzovsxR e8+jy5sa/yfub2IFdsjzmgs= X-Google-Smtp-Source: ABdhPJztYkxhhEyi0do6ssROFXsbptDlb/BmGTavD5WBjZ8D69nLPMDwn2/wkA50DFcO+gekiiZPPQ== X-Received: by 2002:a05:6214:2482:: with SMTP id gi2mr11369972qvb.59.1637788479426; Wed, 24 Nov 2021 13:14:39 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:39 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 11/20] python: import pyrsistent from meta-python Date: Wed, 24 Nov 2021 16:14:17 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158757 From: Bruce Ashfield pyrsistent is a dependency of python3-jsonschema, which is being imported to support kernel device tree validation. Signed-off-by: Bruce Ashfield --- .../python/python3-pyrsistent_0.18.0.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-pyrsistent_0.18.0.bb diff --git a/meta/recipes-devtools/python/python3-pyrsistent_0.18.0.bb b/meta/recipes-devtools/python/python3-pyrsistent_0.18.0.bb new file mode 100644 index 0000000000..0b4d2564f6 --- /dev/null +++ b/meta/recipes-devtools/python/python3-pyrsistent_0.18.0.bb @@ -0,0 +1,14 @@ +SUMMARY = "Persistent/Immutable/Functional data structures for Python" +HOMEPAGE = "https://github.com/tobgu/pyrsistent" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.mit;md5=a4b94c2b800b582a8d3925a9939cbf44" + +SRC_URI[sha256sum] = "773c781216f8c2900b42a7b638d5b517bb134ae1acbebe4d1e8f1f41ea60eb4b" + +inherit pypi setuptools3 + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-numbers \ +" + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 402 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 29CB6C433F5 for ; Wed, 24 Nov 2021 21:14:42 +0000 (UTC) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by mx.groups.io with SMTP id smtpd.web10.4152.1637788481703478404 for ; Wed, 24 Nov 2021 13:14:41 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=L1AzNEqy; spf=pass (domain: gmail.com, ip: 209.85.222.180, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f180.google.com with SMTP id t83so5022654qke.8 for ; Wed, 24 Nov 2021 13:14:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TN3Bcp8ldqIDLA16zfQ0BYZCX4gz/FpebwJfEcYTOSk=; b=L1AzNEqypG4FSSUB/AbsOMJzRCo5PCbQU9YkxV3Ybbrh93jXXW5TdrMkF1EBOQ2lvV 1cjr0RskdGNJiC1tmP/9fTnhmZJseHM/he2NCzBeTnBl1hBVYSUvquGbo1eLTk+EciOD c3caV7H9nFpkEj0NpiGm81wJ7T++W/IJrGRacaXHni5DjUXR+S+Yafl8prODxIjCAz+N H7++fiQmQSHdnl/JQRUl2cZL+0MosbMHLtHbV/BksXRcTkU16kPmipAlzF4ycD1lzM0Y 8CDsDmrMoyEqsOmuf4n9wS11AsWyWeN9KttqPlWOjoIC5lk0lfgDViHIS8SAFOE/NmY5 ItkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TN3Bcp8ldqIDLA16zfQ0BYZCX4gz/FpebwJfEcYTOSk=; b=2fy8mWAEHAEuteICt0w4LLoZs5Pb7KDbiCSpK3TQBvf4oglacMkL4lCskWyavtGFzS 32bYiYQizFkPa5+3Dr9Vouqma4Ou9Ta43aBvXScUd5jz7M+KPMqrM05uziJLeGLmdRx8 beqTMfA3QOyacofJrGYYu3DS7blj2/yBthmFJSbduoxiYbr9lhPtg8Bvw6XA2HaUNd6L YN9kqYNgYBba7va5aGcoPFd+Jwvo1rRupqfDH3dBufXxyKxfuRolYSK8F7Wn6PJxHTnl do2dTT2sOpNVjrabJSnj68RaWBFKRyfyJmCxJ2NI3gmU8y5zXCm7myXfYhuanslYrqUb fPtg== X-Gm-Message-State: AOAM5314jh+syZ8ZY+kRG26Tf8pGAajQBLAVZ2z4kwhK0w6JjimITlY3 M5XV+SQ5yY8qnA8Sucg6MP8= X-Google-Smtp-Source: ABdhPJxaYgzKpytbupT9oLCSGGQZtqk48xc+jaDwFu3WA3iraCRfpuKBuy2CQtnsXtwG5Nmv7zQF4A== X-Received: by 2002:a05:620a:460e:: with SMTP id br14mr1516357qkb.533.1637788480827; Wed, 24 Nov 2021 13:14:40 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:40 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 12/20] python: import rfc3987 from meta-pyton Date: Wed, 24 Nov 2021 16:14:18 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:42 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158758 From: Bruce Ashfield rfc3987 is a depenency of jsonschema and dtschema, which are being added to support kernel device tree validation. Signed-off-by: Bruce Ashfield --- meta/recipes-devtools/python/python3-rfc3987_1.3.8.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-rfc3987_1.3.8.bb diff --git a/meta/recipes-devtools/python/python3-rfc3987_1.3.8.bb b/meta/recipes-devtools/python/python3-rfc3987_1.3.8.bb new file mode 100644 index 0000000000..80e2aa5bc2 --- /dev/null +++ b/meta/recipes-devtools/python/python3-rfc3987_1.3.8.bb @@ -0,0 +1,10 @@ +SUMMARY = "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)" +LICENSE = "GPLv3+" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=9;md5=2b723edf67b2f3088bc5e339b1ceda2d" + +SRC_URI[md5sum] = "b6c4028acdc788a9ba697e1c1d6b896c" +SRC_URI[sha256sum] = "d3c4d257a560d544e9826b38bc81db676890c79ab9d7ac92b39c7a253d5ca733" + +inherit pypi setuptools3 + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 403 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 29CA4C433FE for ; Wed, 24 Nov 2021 21:14:43 +0000 (UTC) Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) by mx.groups.io with SMTP id smtpd.web09.3985.1637788482667224116 for ; Wed, 24 Nov 2021 13:14:42 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dlNB/rjt; spf=pass (domain: gmail.com, ip: 209.85.160.175, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qt1-f175.google.com with SMTP id l8so4097511qtk.6 for ; Wed, 24 Nov 2021 13:14:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mi1kd4Hj8cW0da2BXQMsMpngYD8JgUlCRAUgvHiBTag=; b=dlNB/rjt1FDWvzPkhgNASD6a0u6OYYn7vHpATAq1xD1xXeEczIGO8g07yePjkzc06U ZBLpTBCfBADd8jd4AWgrmNxtQtIGNZrp4m2DognBuDN65h5ghnnCJPjd0YTgl0HQ3bkX tBdsVtZZRcgMWAdHPV8OvhU6ylbfN2UicwyGAdx33Wv2qVs3osFCChSXCRsiNHSc47hw g+DpTPYk55qLjQCqkGgCjdSPK7RqIKMEvJOfzqi1WNZ5XIfkAdRy/iOIEUKd6ke6A/nV ZcX4PABMLbY9UX3V/YcDLTywRW5uyCDu+LMX2cSwqYReiswCviPLFJ1TF5JfOAZHbhW+ iBFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mi1kd4Hj8cW0da2BXQMsMpngYD8JgUlCRAUgvHiBTag=; b=mUV8O68kVrpWnv2FBkIPtyUx9XmzLoF3ZrDE8FRXOi990pJvZRVNpumzUr4j+7G4oX XkA8wlsSo8o2GuW6wZrSUUQIean8VnAh7EajHhJpkV3IGsJPi9HLZaeYgfc3lQvMxjZp olCSGPDwZizpMRAr/eRWvHCVSEnzWljmTeHh2hbyZ0M7l99x+R6AATPAFJp4Jdfvs/hs +lzFjoA51B/X44ZxLH6lLz/NPSW6gXo8R5qm/K5jhCDcoipD81FO0YNlUNW5HM8h/Pv3 xm1KsyyY5H6wYaCi9dB3OiRegvrC0/uMyplQAyBh0ig+v2OHMyf+gJv8Uha0EOXuDL2b myVA== X-Gm-Message-State: AOAM532froc8IiIMv8eKrD6og04k6dIAF/fDVYb0bgNqL6thOK2AOGMg C+Zfk8Zb1m9yY+kuBwPNkIY= X-Google-Smtp-Source: ABdhPJwZylzWwY1yS2d7RSllUQxh/U3tek8i+wYfCsSFRe/MsJ7cB9MrEJjnnvbcddz/aDZIui/twQ== X-Received: by 2002:ac8:5a8e:: with SMTP id c14mr11281605qtc.332.1637788481793; Wed, 24 Nov 2021 13:14:41 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:41 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 13/20] python: import strict-rfc3339 from meta-python Date: Wed, 24 Nov 2021 16:14:19 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158759 From: Bruce Ashfield strict-rfc3339 is a dependency of jsonschema, which is being imported to support kernel device tree valiation. Signed-off-by: Bruce Ashfield --- .../python/python3-strict-rfc3339_0.7.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-strict-rfc3339_0.7.bb diff --git a/meta/recipes-devtools/python/python3-strict-rfc3339_0.7.bb b/meta/recipes-devtools/python/python3-strict-rfc3339_0.7.bb new file mode 100644 index 0000000000..52ae9ebe9a --- /dev/null +++ b/meta/recipes-devtools/python/python3-strict-rfc3339_0.7.bb @@ -0,0 +1,10 @@ +SUMMARY = "Strict, simple, lightweight RFC3339 function.s" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8f0e2cd40e05189ec81232da84bd6e1a" + +SRC_URI[md5sum] = "4d9b635b4df885bc37bc1189d66c9abc" +SRC_URI[sha256sum] = "5cad17bedfc3af57b399db0fed32771f18fc54bbd917e85546088607ac5e1277" + +inherit pypi setuptools3 + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 404 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 2B058C433F5 for ; Wed, 24 Nov 2021 21:14:45 +0000 (UTC) Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) by mx.groups.io with SMTP id smtpd.web08.4104.1637788483891013590 for ; Wed, 24 Nov 2021 13:14:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pewCN82S; spf=pass (domain: gmail.com, ip: 209.85.219.44, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f44.google.com with SMTP id b11so2637471qvm.7 for ; Wed, 24 Nov 2021 13:14:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0zdksnoLdN/i6O8oAc3ixunrj+mE9eLx4d5N1Hnazss=; b=pewCN82SMpv+ZE5Cfr/gKKuMl2hJqsFiLwx7c53CUtBkxv01Ekxdk+Bb9Re363AWa/ +iagos0Fq9QBk23cUSchpWYHa9F2hete/5CXbEJIdAowRNUfzWKZikYrzzxBpCUCVmF9 FpdodVwdFaIX8Bu9hJHNnZuMiFhpRRVARo0sIQ0h4dxMmjKs8YdajE4zGO1ZbkERaDrd bD6YPP/YKLC4tmgTYCXmVVRMvypKh6SGrwZtNtiDvQORBiC6j/djk/F9vLA83qedJjx+ HMIBsKgTt9wrxyd/gy2OxsyboRKuNwrPSr4RTkJQ17On/SEtLOLUqKjYVyJ7g5VjsXPI UKww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0zdksnoLdN/i6O8oAc3ixunrj+mE9eLx4d5N1Hnazss=; b=Goq+BHuUR8m0OKLtrVovrof3frDUhc5gKRBU/Y11hxVdK/Vdo3pDAypXa0T4h+JOiN AVSkp3pxdyhKbJtAwqQF0NY8/wBhn4nylr1pPGfkyBqVWC/LrD2v1dl8mb7osetNMONh 793JjPeqJeGvkpYQG4YBbIYyx8z89ZOebDeFhT+p4ctZY8+FvcHFzLqMqLQbHnfs5EZA PV1NRBXwujOJyA3J8Slhfs3ZVCkg9CJfxn98ZkTInrUDsU5cMSJjBDs+sYbjHlAEgv5V slhbWGEZwFq2zXjKIYR/5BDTOWNXV3m5MNs64/dhlLn8whRKFsfW6lBpA6KyvkTfL6m9 DsZQ== X-Gm-Message-State: AOAM531tnw3P+2f8tn+jLDW24Y2o+iXQl40qYAEpwDr+QJ5yW1b8GsSz MWBjJ0yU7s+Y6CJr+1FCM68= X-Google-Smtp-Source: ABdhPJw3fHUbpCjmuw8UMeQIUMZTHy0TO+EuaQJmRV3VvyE9/iKTp0HMDLcn/7S4fJHCbvdshunE/w== X-Received: by 2002:a05:6214:f2e:: with SMTP id iw14mr11463609qvb.21.1637788483061; Wed, 24 Nov 2021 13:14:43 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:42 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 14/20] python: import vcversioner from meta-python Date: Wed, 24 Nov 2021 16:14:20 -0500 Message-Id: <1aa6edf45acb6db033375faf91620896af8998fb.1637788184.git.bruce.ashfield@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:45 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158760 From: Bruce Ashfield vcversioner is a dependency of jsonschema, which is being imported to support kernel device tree validation. Signed-off-by: Bruce Ashfield --- .../python/python3-vcversioner_2.16.0.0.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-vcversioner_2.16.0.0.bb diff --git a/meta/recipes-devtools/python/python3-vcversioner_2.16.0.0.bb b/meta/recipes-devtools/python/python3-vcversioner_2.16.0.0.bb new file mode 100644 index 0000000000..149078c51b --- /dev/null +++ b/meta/recipes-devtools/python/python3-vcversioner_2.16.0.0.bb @@ -0,0 +1,12 @@ +SUMMARY = "Python vcversioner, automagically update the project's version" +HOMEPAGE = "https://github.com/habnabit/vcversioner" + +LICENSE = "ISC" +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=827a7a91a8d20d3c666b665cd96db8e3" + +SRC_URI[md5sum] = "aab6ef5e0cf8614a1b1140ed5b7f107d" +SRC_URI[sha256sum] = "dae60c17a479781f44a4010701833f1829140b1eeccd258762a74974aa06e19b" + +inherit pypi setuptools3 + +BBCLASSEXTEND = "native" From patchwork Wed Nov 24 21:14:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 405 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 2E6FEC433EF for ; Wed, 24 Nov 2021 21:14:46 +0000 (UTC) Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by mx.groups.io with SMTP id smtpd.web08.4105.1637788484821301399 for ; Wed, 24 Nov 2021 13:14:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HFxFF1NL; spf=pass (domain: gmail.com, ip: 209.85.222.169, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f169.google.com with SMTP id t6so5080027qkg.1 for ; Wed, 24 Nov 2021 13:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MkeMM+lA/Zxp7jgJ4V+Tukv1Dp1WqEN5wbOFUu/tOms=; b=HFxFF1NLCjZzOgs+ARW7vzE3QVTxhJ23ploK4ZjGQgHm6Vyv+ZUEL3wns5XI08acox L1Cxn6tNb9BVWqvpGoq6li/I2dBsa9OoV1uOtlQqTO7f56QIO3W2vac7Q5MK37jqFagC cAHuEWEiorJM8ZjFvKvuk8yECLVFCmpa7/pyhG0Lj3K6tdNHRX3T0XuxMs2a1oAwQJ/J GyD9gfNLMnrSIlSdEuADvjeevDXz/mOPsG2eTNAbF/00Jxd9O8XQ4qW0VzGbI/ALKUj5 c4svshDlWxYzLEUJgJspiQWCMs9cLk8v4/qiyFWRahFBkozMaAEnw2D8I3SFvzv4ndrG dyuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MkeMM+lA/Zxp7jgJ4V+Tukv1Dp1WqEN5wbOFUu/tOms=; b=lq2cJUYJ0yvrwUL4zPBL6SOhRLcXck7CqLJqrKhGKijvwFiyKUOHSEh0iTmb/Spo0d phrEq/9DLnyLEEQOrGWKUi5hhOKjD4F3xun864UWZDdWYOyEYpfvaU53M+SC4uw0uyPV /DtdcmwKynhsTBO5c4AbG5O1EbWuaO6sMKJs4KQ80beb/XZZ8LhgtX84vvY0wUDN+vT1 x19n9gGl9N+FiMVwrcXxIAsZSvnl6WJEvxUac1DeLkd+Gx1Xqus934fUYONFPe4n4JvB bLVk3xX4moLK102tL8g7+/ePUcL3S7BQd1pN22Y8C5gyDglHvghrDt9DeT/EwtTljBV2 zzbg== X-Gm-Message-State: AOAM531CXbQHq7FjKhSHwPiASV+dW3XGUeZUD7TNQ2+daK2ZlD7rbcSf TmaFabzEJnUYeocTBwWFZtA= X-Google-Smtp-Source: ABdhPJwVn34kbGjfTuosMlPjvjpK1qZLWg/PYkDudY55x5qDFHJ4ldVFce3K5r26gYpFNHtJkpSgRg== X-Received: by 2002:a37:5f44:: with SMTP id t65mr9652464qkb.32.1637788483968; Wed, 24 Nov 2021 13:14:43 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:43 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 15/20] maintainers: update for kernel dtschema checking dependencies Date: Wed, 24 Nov 2021 16:14:21 -0500 Message-Id: <2abfc319d9c5654fe87470c3237e53b9b95f4df2.1637788184.git.bruce.ashfield@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158761 From: Bruce Ashfield These packages are required for dtschema checking in the kernel build. Adding myself as the maintainer. Signed-off-by: Bruce Ashfield --- meta/conf/distro/include/maintainers.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 5423358e77..c717cfbbe1 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -597,16 +597,21 @@ RECIPE_MAINTAINER:pn-python3-cython = "Oleksandr Kravchuk " RECIPE_MAINTAINER:pn-python3-pyparsing = "Oleksandr Kravchuk " RECIPE_MAINTAINER:pn-python3-pytest = "Tim Orling " +RECIPE_MAINTAINER:pn-python3-rfc3339-validator = "Bruce Ashfield " +RECIPE_MAINTAINER:pn-python3-rfc3986-validator = "Bruce Ashfield " +RECIPE_MAINTAINER:pn-python3-rfc3987 = "Bruce Ashfield " +RECIPE_MAINTAINER:pn-python3-ruamel-yaml = "Bruce Ashfield " RECIPE_MAINTAINER:pn-python3-scons = "Tim Orling " RECIPE_MAINTAINER:pn-python3-scons-native = "Tim Orling " RECIPE_MAINTAINER:pn-python3-setuptools = "Oleksandr Kravchuk " @@ -636,12 +645,15 @@ RECIPE_MAINTAINER:pn-python3-six = "Zang Ruochen " RECIPE_MAINTAINER:pn-python3-smartypants = "Alexander Kanavin " RECIPE_MAINTAINER:pn-python3-smmap = "Oleksandr Kravchuk " RECIPE_MAINTAINER:pn-python3-sortedcontainers = "Tim Orling " +RECIPE_MAINTAINER:pn-python3-strict-rfc3339 = "Bruce Ashfield " RECIPE_MAINTAINER:pn-python3-subunit = "Oleksandr Kravchuk " RECIPE_MAINTAINER:pn-python3-testtools = "Oleksandr Kravchuk " RECIPE_MAINTAINER:pn-python3-toml = "Tim Orling " RECIPE_MAINTAINER:pn-python3-tomli = "Tim Orling " RECIPE_MAINTAINER:pn-python3-typogrify = "Alexander Kanavin " +RECIPE_MAINTAINER:pn-python3-vcversioner = "Bruce Ashfield " RECIPE_MAINTAINER:pn-python3-wcwidth = "Tim Orling " +RECIPE_MAINTAINER:pn-python3-webcolors = "Bruce Ashfield " RECIPE_MAINTAINER:pn-python3-zipp = "Tim Orling " RECIPE_MAINTAINER:pn-qemu = "Richard Purdie " RECIPE_MAINTAINER:pn-qemu-helper-native = "Richard Purdie " From patchwork Wed Nov 24 21:14:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 406 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 2AD40C433FE for ; Wed, 24 Nov 2021 21:14:47 +0000 (UTC) Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by mx.groups.io with SMTP id smtpd.web10.4153.1637788486119800633 for ; Wed, 24 Nov 2021 13:14:46 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OG7qiKfE; spf=pass (domain: gmail.com, ip: 209.85.219.54, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f54.google.com with SMTP id j9so2631864qvm.10 for ; Wed, 24 Nov 2021 13:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+hzo2U8aZDCQkWa1JmHCTxj7OP9+x88B1Otc0EF5fZc=; b=OG7qiKfEy1KDipRVaT6Nuv/ZgZbV0CfFFtOAgCbG/+bX5WgLk0l44TwqWx+VpGanCX Y9asa/5z6ooWEa3hgkKf9ywhVrff0BmKQHEktzNkxYMHujBFlMDE4DvcZJVU3Ibb0FnK rF2IPwhp92UfVAaezQmU8R/GlQpEgRI2BIqS+m5NlrsvTnyks6FU8DiZPB0D7/lk2WzO tX3Qh7hgVVoZjtaFhMGfOLv+w6FgHhsNenyv5BCEoBftsW5dBLSp98FnjexWOs+xuX8P lHsJgm3bzwP37IQhISd6qxdDMETg5TqMg3Iwr/coTidIVv3bgh1FZgL+N0neqSPN8N0f LdEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+hzo2U8aZDCQkWa1JmHCTxj7OP9+x88B1Otc0EF5fZc=; b=oR4BKwcYmFfblWUHYlw8QShsgwu1GQsFHTnH/d2Rku/SKgB1Iv0CoEjaq7iB0aA6U0 nHFKKP32Tn5QcafQ2WSa5Ql0NHqyuCvc9zdIPAzyJPyVruXsYn2su1pXDXxS3t699ynn 79rgHc8DsBy/GrqC5KjTzN/QBKO2s3ktQiJFBtqNJhyNN2EdFvLU9sZDMgFULaEvZhaO Ujj85G3RxMJ/9uElDxja8tr5zy1rAtCwcXuRx0GKPnKOPOq/NEDuTJ1i3h5FND2CIyHT Ee5LdCVCq+aMcTe4wqd3lhzOp8LmPA43GG3vvP1DnuLvDy8TWVMUAkdH6rgzVuG4Z40V 883Q== X-Gm-Message-State: AOAM531GoZzzPV4+Ly6JUpLHSmKifvlqUoaaw9/3l7vFibRK8dLSUr8F PjELkH8vOl1Ualq/8l7q0e0KqiNNcX3gDA== X-Google-Smtp-Source: ABdhPJwHONaE6tSe4Uwp7wy5VIn1EpjXaX4WdcY75tmJkVv2zIfYos4Coc22hDF3ey0Ch2/Og/rDKQ== X-Received: by 2002:a05:6214:2584:: with SMTP id fq4mr11714763qvb.53.1637788485285; Wed, 24 Nov 2021 13:14:45 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:44 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 16/20] linux-yocto: export pkgconfig variables to devshell Date: Wed, 24 Nov 2021 16:14:22 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158762 From: Bruce Ashfield Not all of the kernel host/build Makefiles allow pkg-config to be overriden to pkg-config-native. Exporting these variables allow us to debug host tool issues with the kernel build. Signed-off-by: Bruce Ashfield --- meta/recipes-kernel/linux/linux-yocto.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index 15fc7ff724..a3b2416367 100644 --- a/meta/recipes-kernel/linux/linux-yocto.inc +++ b/meta/recipes-kernel/linux/linux-yocto.inc @@ -61,3 +61,12 @@ KERNEL_FEATURES:append:qemuall=" features/kernel-sample/kernel-sample.scc" KERNEL_DEBUG_OPTIONS ?= "stack" KERNEL_EXTRA_ARGS:append:x86-64 = "${@bb.utils.contains('KERNEL_DEBUG_OPTIONS', 'stack', 'HOST_LIBELF_LIBS="-L${RECIPE_SYSROOT_NATIVE}/usr/lib/pkgconfig/../../../usr/lib/ -lelf"', '', d)}" + +do_devshell:prepend() { + # setup native pkg-config variables (kconfig scripts call pkg-config directly, cannot generically be overriden to pkg-config-native) + d.setVar("PKG_CONFIG_DIR", "${STAGING_DIR_NATIVE}${libdir_native}/pkgconfig") + d.setVar("PKG_CONFIG_PATH", "${PKG_CONFIG_DIR}:${STAGING_DATADIR_NATIVE}/pkgconfig") + d.setVar("PKG_CONFIG_LIBDIR", "${PKG_CONFIG_DIR}") + d.setVarFlag("PKG_CONFIG_SYSROOT_DIR", "unexport", "1") + d.appendVar("OE_TERMINAL_EXPORTS", " PKG_CONFIG_DIR PKG_CONFIG_PATH PKG_CONFIG_LIBDIR PKG_CONFIG_SYSROOT_DIR") +} From patchwork Wed Nov 24 21:14:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 407 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 32C18C433F5 for ; Wed, 24 Nov 2021 21:14:48 +0000 (UTC) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by mx.groups.io with SMTP id smtpd.web10.4155.1637788487054926111 for ; Wed, 24 Nov 2021 13:14:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E299xVKO; spf=pass (domain: gmail.com, ip: 209.85.222.177, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f177.google.com with SMTP id t6so5080280qkg.1 for ; Wed, 24 Nov 2021 13:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8IEuULURoP9EffmSQfyN36qWcH1zhq2wf364rgurxDI=; b=E299xVKOuItkBeteCQfj1Q8Wxkp4yJ/5S2SVgNihWobOH2jc9J0J9V6//y2dUF+7Qh GHuCJu+MNdvgcHtBDPluOReWoq+5e0vsLrdmoIoLeLvTIDs3+RHNY5+eAhnlKZMNLj77 RxL6ryRYbg4uxzCt0Z4MjgwZlPaUyBMdA/ymUD7AayeFGiW6j1gKUdAZkCHF8yX1bqrM 3B+yA8LPnTWnFMZYVSaGJuXCoe8CZxazO3tPidxqHVO4f1StSaeGN3ciPhb/tB1GNRw9 mrvndU/pc0Ckv3GF+3tMUp9sYJQyXRnJbFqrsYaourXd0aPiJVm/kEBkEr8W+P9ALonX /JGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8IEuULURoP9EffmSQfyN36qWcH1zhq2wf364rgurxDI=; b=QMUMWqaNfmZyI4Ya0NaOgEjiYZty/bJDpwCoanHHIvc1ylkDufjHbMQtMkLZ63cJeK N7h+Amhjj6aLTLNmQ3cF3P6XSDdEbrXQ8qau1vsSWmE7H3E9vQ9iR7Yor+VnRxsN7z58 ZpHgkdOxk3Mn1o9plZIex3Gmr9OhQ97u4TisnRqZIIUPZqwbTiyqyQfcs3v+RkFaMdov 1/d7GCMprX+FnpXvnqQ2wKLAS1JVKwIAy1sOzbg2myTlqLCt8LRjgRQ54sLbAhWW2nie hgi8akrSVUbO7JTNI2DiCMdn6ULbUhnW/5cZqEwkD3zdytXrqWlJtDn6nCUIXZAUun68 d1QA== X-Gm-Message-State: AOAM5324LqQz8dqoqgmpg6AU8UCDADX/4AWz1PFTJNnuZ0azwhsZZvph +02fVCaF2nlTp6WS4x6j1FyjTnnrwg/t3A== X-Google-Smtp-Source: ABdhPJyJ7BocKgmqM7IkVXirC/c7sRp9FZEqQZ19hH9yUYxV68tM/a9f4h4ZEKOFWEw4l4D8vKTx5g== X-Received: by 2002:a37:4250:: with SMTP id p77mr9584813qka.430.1637788486179; Wed, 24 Nov 2021 13:14:46 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:45 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 17/20] kernel: introduce python3-dtschema-wrapper Date: Wed, 24 Nov 2021 16:14:23 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:48 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158763 From: Bruce Ashfield The 5.16 kernel introduced mandatory schema checking on any dtb file built through the kernel. That funcionality is provided via python3-dt-schema. The dependencies to enable that functionality is not small, and may not always be desired (in particular on architectures that do not support dtbs, or in development cycles). It may also be useful for allowing a non-conformant dts to be compiled. This commit introduces a set of wrapper scripts that when added as a depenency to the kernel, can pass both the validation testing and validation steps of a dts. We use the wrapper by default, while more dts file are brought up to spec and the dt-validation matures upstream. To enable valiation, simply add 'dt-valiation' to the PACKAGECONFIG variable and the full dt-schema package will be selected and validation will occur. Signed-off-by: Bruce Ashfield --- meta/conf/distro/include/maintainers.inc | 1 + .../python3-dtschema-wrapper/dt-doc-validate | 20 +++++++++++++++++++ .../dtc/python3-dtschema-wrapper/dt-mk-schema | 20 +++++++++++++++++++ .../dtc/python3-dtschema-wrapper/dt-validate | 20 +++++++++++++++++++ .../dtc/python3-dtschema-wrapper_2021.10.bb | 17 ++++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-doc-validate create mode 100644 meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-mk-schema create mode 100644 meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-validate create mode 100644 meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index c717cfbbe1..464714a7a9 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -598,6 +598,7 @@ RECIPE_MAINTAINER:pn-python3-dbus = "Zang Ruochen " RECIPE_MAINTAINER:pn-python3-dbusmock = "Oleksandr Kravchuk " RECIPE_MAINTAINER:pn-python3-docutils = "Oleksandr Kravchuk " RECIPE_MAINTAINER:pn-python3-dtschema = "Bruce Ashfield " +RECIPE_MAINTAINER:pn-python3-dtschema-wrapper = "Bruce Ashfield " RECIPE_MAINTAINER:pn-python3-pycryptodome = "Joshua Watt " RECIPE_MAINTAINER:pn-python3-pycryptodomex = "Joshua Watt " RECIPE_MAINTAINER:pn-python3-pyrsistent = "Bruce Ashfield " diff --git a/meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-doc-validate b/meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-doc-validate new file mode 100644 index 0000000000..2aa57851c7 --- /dev/null +++ b/meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-doc-validate @@ -0,0 +1,20 @@ +#!/bin/sh +# dt-doc-validate wrapper to allow kernel dt-validation to pass +# +# Copyright (C) 2021 Bruce Ashfield +# License: MIT (see COPYING.MIT at the root of the repository for terms) + +for arg; do + case "$arg" in + --version) + echo "v2021.10" + ;; + esac +done + +# TBD: left for future consideration +# exec dt-doc-validate.real "$@" + +# we always succeed +exit 0 + diff --git a/meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-mk-schema b/meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-mk-schema new file mode 100644 index 0000000000..24b89d8619 --- /dev/null +++ b/meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-mk-schema @@ -0,0 +1,20 @@ +#!/bin/sh +# dt-mk-schema wrapper to allow kernel dt-validation to pass +# +# Copyright (C) 2021 Bruce Ashfield +# License: MIT (see COPYING.MIT at the root of the repository for terms) + +for arg; do + case "$arg" in + --version) + echo "v2021.10" + ;; + esac +done + +# TBD: left for future consideration +# exec dt-mk-schema.real "$@" + +# we always succeed +exit 0 + diff --git a/meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-validate b/meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-validate new file mode 100644 index 0000000000..8a4710a7ed --- /dev/null +++ b/meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-validate @@ -0,0 +1,20 @@ +#!/bin/sh +# dt-validate wrapper to allow kernel dt-validation to pass +# +# Copyright (C) 2021 Bruce Ashfield +# License: MIT (see COPYING.MIT at the root of the repository for terms) + +for arg; do + case "$arg" in + --version) + echo "v2021.10" + ;; + esac +done + +# TBD: left for future consideration +# exec dt-validate.real "$@" + +# we always succeed +exit 0 + diff --git a/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb b/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb new file mode 100644 index 0000000000..c869274d09 --- /dev/null +++ b/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb @@ -0,0 +1,17 @@ +DESCRIPTION = "Wrapper for tooling for devicetree validation using YAML and jsonschema" +HOMEPAGE = "https://yoctoproject.org" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +SRC_URI = "file://dt-doc-validate \ + file://dt-mk-schema \ + file://dt-validate" + +do_install() { + install -d ${D}${bindir}/ + install -m 755 ${WORKDIR}/dt-doc-validate ${D}${bindir}/ + install -m 755 ${WORKDIR}/dt-mk-schema ${D}${bindir}/ + install -m 755 ${WORKDIR}/dt-validate ${D}${bindir}/ +} + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 24 21:14:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 408 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 2B80EC433FE for ; Wed, 24 Nov 2021 21:14:49 +0000 (UTC) Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) by mx.groups.io with SMTP id smtpd.web11.3999.1637788488029788293 for ; Wed, 24 Nov 2021 13:14:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pTAgbhEk; spf=pass (domain: gmail.com, ip: 209.85.222.174, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f174.google.com with SMTP id p4so5046855qkm.7 for ; Wed, 24 Nov 2021 13:14:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2XmWYQR/IPnZpB4RwdB6c95HN8TSNLPpA4UTx77lEHs=; b=pTAgbhEkoaHKLyhxETIm3TzeR98msB8wEMI3jcqUaE7x3xC3KwSOX4HKRceYJNl1si /yuC+kUYOkxGKHgOw/AzegBTnoiNcO/ZbCCWbgNHLnpoymEDjSAhWeZYjCDLGKBnpHd6 m+HpPWBijVDClJdL9AjX2sB+arKNZGWxqcAwP0seXSDtpdtLxLoISLX2wCnq5vRcOg0J EqYQE++2kMSf4/oKffefqyezkZCVr5sBWvvqM7S+VTKlbH43sbsZ5GJgu44TsRBJMvJs MEl27YE8KFCb6navIIRFscIVZ66yBucEawsbQbXeFh0JpHHuCIM+ZJo3IpbbPWmw8zJ3 60vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2XmWYQR/IPnZpB4RwdB6c95HN8TSNLPpA4UTx77lEHs=; b=ejR19PiNVd47VueAl4SnzfXqhv/z8kq4GMAUIOwGd95Jmjisdt3idNsiK+aOfkyMzn jaHUXZzTYpRhh7bq0S4DfFrt8v6uRugbv3q5JLvBt/Pb+ZuIc6+HVDdZPTyek7YHZ17x vDKtA2lfErI6zCSyvghv14tAfySo39/fGqJ6hQRDxx6yFC5WaRbHayTVtgKdvF/qj99j vw0qQKCzb9WW4yqYJnvy+T2hojzt+NJY9g3I2hABm/K6LiZh0W79bjxFO/wasrQM7FmK PQsta7FOl63nItFKzyi+a0Z2Ykin1++BDk2zHA50uiNen7trCZdi/yzPf7WZ85ok8Ndu 6sNg== X-Gm-Message-State: AOAM5329OZGO72ZNEC1JhUBVJs+u5KJ/vjY1P5A2/cUilqAFZ+srYYTX C9HqS1WDBrkCoM2teoarnyN0U3PEPfXTsQ== X-Google-Smtp-Source: ABdhPJwrhs31JxxTdMHU7iw9Gdy+SXl+5BC1V/pN9koIS6+259ABU7Dpvr3hv1Ma1HBnDVKZXKHTCA== X-Received: by 2002:a37:a4b:: with SMTP id 72mr1488417qkk.725.1637788487209; Wed, 24 Nov 2021 13:14:47 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:46 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 18/20] linux-yocto-dev: introduce dt-validation PACKAGECONFIG Date: Wed, 24 Nov 2021 16:14:24 -0500 Message-Id: <95d9a2e9dcf95e0539e0be86abb0d6d96226af84.1637788184.git.bruce.ashfield@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158764 From: Bruce Ashfield Add a PACKAGECONFIG to control which type of dt-validation is installed (full, or wrapped). This is currently in linux-yocto-dev, as 5.16 introduces the functionality of required dt schema validation. Other v5.16 providing recipes can use the base functionality as they desire (with or without PACKAGECONFIG). Over time, we can migrate the support the the core kernel classes .. in particular when more providers are at v5.16+ Signed-off-by: Bruce Ashfield --- meta/recipes-kernel/linux/linux-yocto-dev.bb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb index ed94ab2517..6b6ea9a7e8 100644 --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb @@ -39,8 +39,16 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native" DEPENDS += "gmp-native libmpc-native" -# yaml and dtschema are required for 5.16+ device tree validation -DEPENDS += "libyaml-native python3-dtschema-native" + +# yaml and dtschema are required for 5.16+ device tree validation, libyaml is checked +# via pkgconfig, so must always be present, but we can wrap the others to make them +# conditional +DEPENDS += "libyaml-native" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[dt-validation] = ",,python3-dtschema-native" +# we need the wrappers if validation isn't in the packageconfig +DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}" COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv64)" From patchwork Wed Nov 24 21:14:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 409 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 2F2FBC433F5 for ; Wed, 24 Nov 2021 21:14:50 +0000 (UTC) Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) by mx.groups.io with SMTP id smtpd.web08.4107.1637788488923312928 for ; Wed, 24 Nov 2021 13:14:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FeBwvadn; spf=pass (domain: gmail.com, ip: 209.85.160.173, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qt1-f173.google.com with SMTP id n15so4152185qta.0 for ; Wed, 24 Nov 2021 13:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BfYv76w0s72d8tLWAMYYHn3DjkOiaLsf9M0TiaVkwqk=; b=FeBwvadnWI3xe9XD1aYlz4/Fkw4Xot5ynqENw/qqLooX9QrzRWRpnhoTlLlmBumPR4 p7evpeXTNKZvPLjH0XVmna8Ppid4+U1BqXBX0Iq3b5RvyyUi2HISR/o0z6YbZN0cmb+o nywFA1rh05eLKpQlRpDjfGN8j7E3+xexIhgLjzRAfP/fdPPTic9IxxODDv51N6iap7cf WiyFg33/i7X7R5FWieUF9PgBEwkAEK5YtcGWwu607skglcemhyqXpB2n6pZf4YbnD46J 2kDA+Hp6GVI7GLaZtAaUXihBmDfvIT3+NFYEFypP/yqMl7zTa45WceZmCHsw8I9gbWQl M0cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BfYv76w0s72d8tLWAMYYHn3DjkOiaLsf9M0TiaVkwqk=; b=GulxMxkmN0bsYSbbPzvOUu/TJMrpFMl2T20W/vdVHaijSyWSzdHZFf7OFWi0VA+CQL f8ikNkhibzEei2/alle8sKxCgl+YBeVQqgx2b3hOyaVSDWXb38fNLDp++/1aLqy3HOrH i+ltxlSwZRdZKlEjOhpwrtrVZfLhNcLvaKEYdeu1Jq1LtJ5rwOmHRZ8nRDSR/mvLna0T YHF0MhRqNVMzG8PgJRhnUIlNVUYUqr/PlxxJeHJeHvy50111MbuUwiccRLJ6BFN83DAF iOW6peNac6Q9uGTVR71X+zo3bt9fYJRdlCi4iz+zyPNkeYrZNXuK4WkOi8Gl8FK2d66l pY8Q== X-Gm-Message-State: AOAM531d6oOPOH1/hgVRBfPMZMVJgU7FH92LLLV4vLGCxmEZLqd9bKNo YPIrmKX4jQyrlW+kBMNbKgw= X-Google-Smtp-Source: ABdhPJznRJ/9HVBv/+IyOVWIrzMDmub9BidiyThnJr47bOoq+T3G8SuNimN1SI0Ght4wfiuQpgm65A== X-Received: by 2002:ac8:5bcc:: with SMTP id b12mr11071792qtb.249.1637788488072; Wed, 24 Nov 2021 13:14:48 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:47 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 19/20] perf: sort-pmuevents: don't drop elements Date: Wed, 24 Nov 2021 16:14:25 -0500 Message-Id: <3fe4037143c8e9b1ff0e1d15efe0a02ecb501e81.1637788184.git.bruce.ashfield@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158765 From: Max Krummenacher If a struct element neither has an element cpuid or name it gets silenty dropped. Kernel 5.15 for some ARCHs have at least one array of structs matching this. e.g. for arm pmu-events.c: |#include "pmu-events/pmu-events.h" struct pmu_events_map pmu_events_map[] = { { .cpuid = 0, .version = 0, .type = 0, .table = 0, }, }; struct pmu_sys_events pmu_sys_event_tables[] = { { .table = 0 }, }; Before this patch the second struct is translated to an empty array:: struct pmu_sys_events pmu_sys_event_tables[] = { }; Signed-off-by: Max Krummenacher Signed-off-by: Bruce Ashfield --- meta/recipes-kernel/perf/perf/sort-pmuevents.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-kernel/perf/perf/sort-pmuevents.py b/meta/recipes-kernel/perf/perf/sort-pmuevents.py index 5ddf0f144f..4f841eb822 100755 --- a/meta/recipes-kernel/perf/perf/sort-pmuevents.py +++ b/meta/recipes-kernel/perf/perf/sort-pmuevents.py @@ -61,6 +61,8 @@ for struct in re.findall( struct_block_regex, data ): #print( " name found: %s" % name.group(1) ) entry_dict[struct[1]]['fields'][name.group(1)] = entry + if not entry_dict[struct[1]]['fields']: + entry_dict[struct[1]]['fields']['0'] = entry # created ordered dictionaries from the captured values. These are ordered by # a sorted() iteration of the keys. We don't care about the order we read From patchwork Wed Nov 24 21:14:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 410 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 2F324C4332F for ; Wed, 24 Nov 2021 21:14:50 +0000 (UTC) Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) by mx.groups.io with SMTP id smtpd.web11.4000.1637788489716341549 for ; Wed, 24 Nov 2021 13:14:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hJWIwIc7; spf=pass (domain: gmail.com, ip: 209.85.219.45, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f45.google.com with SMTP id a24so2649913qvb.5 for ; Wed, 24 Nov 2021 13:14:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/LvK7emFZetd2AFhidjx/YOdFE3FLG0Gmrj8f0YB2Bk=; b=hJWIwIc7njDxIGPYQROKkjeGVfmVjIyfcAieT9PR5MbKnVXiyT2aeP3H4MeZn4bmUf DimUoeF2Vy2HrvRht98uWw75mysXTghKdT2VeOCRV1RScLELBGqrf/7MFe6mziIWCuuk QW+B7eXEu044qmKlfCxFHK9U2LXjmGv8iG2ilZhxzV1emHSdiW9ncPpMVHbPnpIKNICQ AZFXg0/hVUa9kiYrVNfMfCXJxoAUpWsNtXErtl4ygt3xvYhGkJG+kzuSQJte3zJQ0OkE tw7+0+T90Mx+Ns2bxTk/dBl0rMPHbsGdtB0rxTMOgNPV/gKFEqAS0+ox6kTyF4PDIA8Q wiDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/LvK7emFZetd2AFhidjx/YOdFE3FLG0Gmrj8f0YB2Bk=; b=oG1DY7cAc5tztyCX4LvmloAOVg4CCXQvJrGAd3f1s80VUGJxvQnqRj1GLYb30IJYf6 wCoKyfK5y8gRNvSzWthr60sPz9ewyu6D4KKHSXOOLbgR1RhKEFvfijXUHz/pMQMSWCOi BfBJYb353vlxDfsoPs8RUsLTShLD/i33VliCAe1diTwdMVBXcfTy8zNu05BQt/+6bPmg 6pAJ7aXtG8j05h+2oyxjkHg28GwJu0ryax39+/wS/z1rBT7qDttA1HBiB2YXXBq4y8ID oMaTgYHMzSST6kF7PlC8ThbN7VHcT9TX+BXTk3q2LkY2S84e8b1D6jZuc2Jy8Oayu8kh RpXA== X-Gm-Message-State: AOAM5324vxfATJl6SsnrTGQDlRZzS8zkyDQuAcelNC9I2JFusluJRv4Y 7qITfKANJ7xGprCP3ZHw8U4= X-Google-Smtp-Source: ABdhPJysgB1eS7MS7YCWKP4KCqDHJw58n7XVrPKLstaL2HHQFR3po1dLQFnkrkVr0PFyhYzv/4ceUw== X-Received: by 2002:a05:6214:5198:: with SMTP id kl24mr11686508qvb.6.1637788488879; Wed, 24 Nov 2021 13:14:48 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id u9sm495095qta.17.2021.11.24.13.14.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 13:14:48 -0800 (PST) From: bruce.ashfield@gmail.com To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com, trevor.gamblin@windriver.com Subject: [PATCH 20/20] perf: sort-pmuevents: allow for additional type qualifiers and storage class Date: Wed, 24 Nov 2021 16:14:26 -0500 Message-Id: <487361c5d91ff9389454f1ef3577038a9878e116.1637788184.git.bruce.ashfield@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: 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 ; Wed, 24 Nov 2021 21:14:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158766 From: Max Krummenacher With kernel 5.16 some structs in pmu-events do get a const qualifier, some a static const storage class and qualifier. The current sort-pmuevents cannot cope with that and drops all struct arrays with such additional elements. This then leads to compiler errors. Allow '^struct', '^const struct', '^static struct', '^static const struct'. Signed-off-by: Max Krummenacher Signed-off-by: Bruce Ashfield --- .../perf/perf/sort-pmuevents.py | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/meta/recipes-kernel/perf/perf/sort-pmuevents.py b/meta/recipes-kernel/perf/perf/sort-pmuevents.py index 4f841eb822..09ba3328a7 100755 --- a/meta/recipes-kernel/perf/perf/sort-pmuevents.py +++ b/meta/recipes-kernel/perf/perf/sort-pmuevents.py @@ -33,10 +33,10 @@ if os.path.exists(outfile): with open(infile, 'r') as file: data = file.read() -preamble_regex = re.compile( '^(.*?)^struct', re.MULTILINE | re.DOTALL ) +preamble_regex = re.compile( '^(.*?)^(struct|const struct|static struct|static const struct)', re.MULTILINE | re.DOTALL ) preamble = re.search( preamble_regex, data ) -struct_block_regex = re.compile( '^struct.*?(\w+) (.*?)\[\] = {(.*?)^};', re.MULTILINE | re.DOTALL ) +struct_block_regex = re.compile( '^(struct|const struct|static struct|static const struct).*?(\w+) (.*?)\[\] = {(.*?)^};', re.MULTILINE | re.DOTALL ) field_regex = re.compile( '{.*?},', re.MULTILINE | re.DOTALL ) cpuid_regex = re.compile( '\.cpuid = (.*?),', re.MULTILINE | re.DOTALL ) name_regex = re.compile( '\.name = (.*?),', re.MULTILINE | re.DOTALL ) @@ -45,24 +45,25 @@ name_regex = re.compile( '\.name = (.*?),', re.MULTILINE | re.DOTALL ) # types and then their fields. entry_dict = {} for struct in re.findall( struct_block_regex, data ): - # print( "struct: %s %s" % (struct[0],struct[1]) ) - entry_dict[struct[1]] = {} - entry_dict[struct[1]]['type'] = struct[0] - entry_dict[struct[1]]['fields'] = {} - for entry in re.findall( field_regex, struct[2] ): + # print( "struct: %s %s %s" % (struct[0],struct[1],struct[2]) ) + entry_dict[struct[2]] = {} + entry_dict[struct[2]]['type_prefix'] = struct[0] + entry_dict[struct[2]]['type'] = struct[1] + entry_dict[struct[2]]['fields'] = {} + for entry in re.findall( field_regex, struct[3] ): #print( " entry: %s" % entry ) cpuid = re.search( cpuid_regex, entry ) if cpuid: #print( " cpuid found: %s" % cpuid.group(1) ) - entry_dict[struct[1]]['fields'][cpuid.group(1)] = entry - + entry_dict[struct[2]]['fields'][cpuid.group(1)] = entry + name = re.search( name_regex, entry ) if name: #print( " name found: %s" % name.group(1) ) - entry_dict[struct[1]]['fields'][name.group(1)] = entry - - if not entry_dict[struct[1]]['fields']: - entry_dict[struct[1]]['fields']['0'] = entry + entry_dict[struct[2]]['fields'][name.group(1)] = entry + + if not entry_dict[struct[2]]['fields']: + entry_dict[struct[2]]['fields']['0'] = entry # created ordered dictionaries from the captured values. These are ordered by # a sorted() iteration of the keys. We don't care about the order we read @@ -74,6 +75,7 @@ for struct in re.findall( struct_block_regex, data ): entry_dict_sorted = OrderedDict() for i in sorted(entry_dict.keys()): entry_dict_sorted[i] = {} + entry_dict_sorted[i]['type_prefix'] = entry_dict[i]['type_prefix'] entry_dict_sorted[i]['type'] = entry_dict[i]['type'] entry_dict_sorted[i]['fields'] = {} for f in sorted(entry_dict[i]['fields'].keys()): @@ -85,7 +87,7 @@ outf = open( outfile, 'w' ) print( preamble.group(1) ) outf.write( preamble.group(1) ) for d in entry_dict_sorted: - outf.write( "struct %s %s[] = {\n" % (entry_dict_sorted[d]['type'],d) ) + outf.write( "%s %s %s[] = {\n" % (entry_dict_sorted[d]['type_prefix'], entry_dict_sorted[d]['type'],d) ) for f in entry_dict_sorted[d]['fields']: outf.write( entry_dict_sorted[d]['fields'][f] + '\n' )