From patchwork Tue Nov 23 21:57:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 319 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 C8856C433EF for ; Tue, 23 Nov 2021 21:57:52 +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.web08.820.1637704672061366980 for ; Tue, 23 Nov 2021 13:57:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qNIv5s/9; 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 jo22so279873qvb.13 for ; Tue, 23 Nov 2021 13:57:51 -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=kNh93wFRG3ZIh5UsykBehNRbfob4uDsK+ZZ6acREJfo=; b=qNIv5s/99q9N3YC3AqeGLJYKpHzfNXJ4L2NnGjoRCKPU+hEKqziuiLOIFLecOWsQj0 2AgwJT4rqadPUcqFw6XdvafdA6JUBn886YrvtGobs9fBzGx/3xhpmcuewdjZ2rdrtl29 E2EMV70iq72wkwXvaNckfYr1zmC5J3mDGGNVmvbkTGXljzJD2OLKi4UxsyRDbl+URjUg yyKql6a6DfdsFbHOYhI9BolKsuaQ0XxtaerQb/uFQnWs7cmEPLinaamnX/zvOKXxoubn YoNmw9BOHlq+a6rFEogd/C1w5pBGbGSiG76E2vLDaq2hAefzphjZPgBcT0sZqtHqhibg JTUQ== 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=kNh93wFRG3ZIh5UsykBehNRbfob4uDsK+ZZ6acREJfo=; b=0xxyIm3lHuvxtZ8cqfsxRjRQ0WZ96Eqtli9yy/QvxofMWzl2yy9BYnxeRAVv5uh/yl LrxuYfho1IxuqRtAFZ/+seR6n68SsZGo8msMgTC6gj703RsnmGG6QN36GHD+DdUy302K nLSIStBMvzeufuK48YCUS9kEttS2jM+nflBG+pe5BlH7kMXi4E1Gf/z55qa5XyX1RLHS 2shNzL0A1czjCDD34aZGN47zOAjrIZell33MGZ+KEVJFGf3ANykMWpS9BJv61RN4r538 heWyy6AFbzSdjVcrQIcvjJDMZ3X9Y9mbtLUw7dUxED8GTnCuxXcsJ1gsrHOI7+k1JmUp vxyw== X-Gm-Message-State: AOAM530yEhvps9UVqlsJVLevMGWJiFZaz9PNpGoK0LZIsYm5PYnPPpCS Wh6ksCXlVKvUUljc0QzF7jk= X-Google-Smtp-Source: ABdhPJzHq5tYVNJU+ExJABDsSGHnQAm8kul5w06iEu5uTFAXaqUQKNIjUezfJq6Ky0QccVS+5Rcd7A== X-Received: by 2002:a05:6214:27e3:: with SMTP id jt3mr668347qvb.44.1637704671139; Tue, 23 Nov 2021 13:57:51 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:57:50 -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/5.15: update to v5.15.2 Date: Tue, 23 Nov 2021 16:57:28 -0500 Message-Id: <09f5e305ca560d93a958e339edefc5f868bd3157.1637703810.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 ; Tue, 23 Nov 2021 21:57:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158622 From: Bruce Ashfield Updating linux-yocto/5.15 to the latest korg -stable release that comprises the following commits: 7cc36c3e14ae Linux 5.15.2 5dbe126056fb rsi: fix control-message timeout 7d6f8d3bab72 media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init 4787caef521c staging: r8188eu: fix memleak in rtw_wx_set_enc_ext 8f60f9f6ee24 staging: rtl8192u: fix control-message timeouts 9033490a3fef staging: r8712u: fix control-message timeout 3a66e8a661a4 comedi: vmk80xx: fix bulk and interrupt message timeouts 47b4636ebdbe comedi: vmk80xx: fix bulk-buffer overflow 06ac746d57e6 comedi: vmk80xx: fix transfer-buffer overflows d6a727a681a3 comedi: ni_usb6501: fix NULL-deref in command paths 20cebb8b620d comedi: dt9812: fix DMA buffers on stack e7fb722586a2 isofs: Fix out of bound access for corrupted isofs image a65c9afe9f2f staging: rtl8712: fix use-after-free in rtl8712_dl_fw a0041453ff9e btrfs: fix lzo_decompress_bio() kmap leakage d5dd3b44488b kfence: default to dynamic branch instead of static keys mode 93ce7441001f kfence: always use static branches to guard kfence_alloc() 5e57d171e2e6 binder: don't detect sender/target during buffer cleanup 6e8813eadf8b binder: use cred instead of task for getsecid 3f3c31dd0f8c binder: use cred instead of task for selinux checks ff1bd01f490b binder: use euid from cred instead of using task ec7c20d41714 Revert "proc/wchan: use printk format instead of lookup_symbol_name()" 2e93afda0520 usb-storage: Add compatibility quirk flags for iODD 2531/2541 ad5df979295b usb: musb: Balance list entry in musb_gadget_queue 72a9bf9bb16a usb: gadget: Mark USB_FSL_QE broken on 64-bit adb1902a1246 usb: ehci: handshake CMD_RUN instead of STS_HALT aa8a82d6db0b Revert "x86/kvm: fix vcpu-id indexed array sizes" 26ac7dec7ff0 KVM: x86: avoid warning with -Wbitwise-instead-of-logical Signed-off-by: Bruce Ashfield --- .../linux/linux-yocto-rt_5.15.bb | 6 ++--- .../linux/linux-yocto-tiny_5.15.bb | 8 +++--- meta/recipes-kernel/linux/linux-yocto_5.15.bb | 26 +++++++++---------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb b/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb index 879f2be677..d5c11b8d33 100644 --- a/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb @@ -11,13 +11,13 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "b9ff38638d2398b647629e768713eefb0fc6707a" -SRCREV_meta ?= "5bcd50d6b0cde22583768dc1acf304259364ddbc" +SRCREV_machine ?= "ada3579e989bfe75d8598ab993347157dc4611c2" +SRCREV_meta ?= "e3682eb8fe7512597c75b009f51027534ab2f58d" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.15;destsuffix=${KMETA}" -LINUX_VERSION ?= "5.15.1" +LINUX_VERSION ?= "5.15.2" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb index 6035dc47f1..49e74252e9 100644 --- a/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb @@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig" require recipes-kernel/linux/linux-yocto.inc -LINUX_VERSION ?= "5.15.1" +LINUX_VERSION ?= "5.15.2" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" @@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine:qemuarm ?= "098dbfb0e6d95ae958e1003738fb0dc90a81691b" -SRCREV_machine ?= "5a8ec126c297dd9e410eb23685003f670f8f3d57" -SRCREV_meta ?= "5bcd50d6b0cde22583768dc1acf304259364ddbc" +SRCREV_machine:qemuarm ?= "0daad4eb78782be97ce4d91f2d455ccc2d238991" +SRCREV_machine ?= "a81c52f3e09edca72d2b3da6cbab5d17769fa8cb" +SRCREV_meta ?= "e3682eb8fe7512597c75b009f51027534ab2f58d" PV = "${LINUX_VERSION}+git${SRCPV}" diff --git a/meta/recipes-kernel/linux/linux-yocto_5.15.bb b/meta/recipes-kernel/linux/linux-yocto_5.15.bb index 0fd49d78cb..51259617a7 100644 --- a/meta/recipes-kernel/linux/linux-yocto_5.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto_5.15.bb @@ -13,17 +13,17 @@ KBRANCH:qemux86 ?= "v5.15/standard/base" KBRANCH:qemux86-64 ?= "v5.15/standard/base" KBRANCH:qemumips64 ?= "v5.15/standard/mti-malta64" -SRCREV_machine:qemuarm ?= "47b7bd92b84e0ad136d45956e86039ad7307c892" -SRCREV_machine:qemuarm64 ?= "5a8ec126c297dd9e410eb23685003f670f8f3d57" -SRCREV_machine:qemumips ?= "e2dd4de2dfebf97237b87c414d0582016f64d5b1" -SRCREV_machine:qemuppc ?= "5a8ec126c297dd9e410eb23685003f670f8f3d57" -SRCREV_machine:qemuriscv64 ?= "5a8ec126c297dd9e410eb23685003f670f8f3d57" -SRCREV_machine:qemuriscv32 ?= "5a8ec126c297dd9e410eb23685003f670f8f3d57" -SRCREV_machine:qemux86 ?= "5a8ec126c297dd9e410eb23685003f670f8f3d57" -SRCREV_machine:qemux86-64 ?= "5a8ec126c297dd9e410eb23685003f670f8f3d57" -SRCREV_machine:qemumips64 ?= "066b9f8175fc7136c15768204ba71d3fddc2f4f8" -SRCREV_machine ?= "5a8ec126c297dd9e410eb23685003f670f8f3d57" -SRCREV_meta ?= "5bcd50d6b0cde22583768dc1acf304259364ddbc" +SRCREV_machine:qemuarm ?= "e185d8ca70e102b1f99736b15f5e8ee1ab62d081" +SRCREV_machine:qemuarm64 ?= "a81c52f3e09edca72d2b3da6cbab5d17769fa8cb" +SRCREV_machine:qemumips ?= "51982f22cf688d426ae919380cb19fcde3cd0d1a" +SRCREV_machine:qemuppc ?= "a81c52f3e09edca72d2b3da6cbab5d17769fa8cb" +SRCREV_machine:qemuriscv64 ?= "a81c52f3e09edca72d2b3da6cbab5d17769fa8cb" +SRCREV_machine:qemuriscv32 ?= "a81c52f3e09edca72d2b3da6cbab5d17769fa8cb" +SRCREV_machine:qemux86 ?= "a81c52f3e09edca72d2b3da6cbab5d17769fa8cb" +SRCREV_machine:qemux86-64 ?= "a81c52f3e09edca72d2b3da6cbab5d17769fa8cb" +SRCREV_machine:qemumips64 ?= "95b7f92bb1eec8532be3a5e50726a0643ab2fae9" +SRCREV_machine ?= "a81c52f3e09edca72d2b3da6cbab5d17769fa8cb" +SRCREV_meta ?= "e3682eb8fe7512597c75b009f51027534ab2f58d" # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll # get the /base branch, which is pure upstream -stable, and the same @@ -31,7 +31,7 @@ SRCREV_meta ?= "5bcd50d6b0cde22583768dc1acf304259364ddbc" # normal PREFERRED_VERSION settings. BBCLASSEXTEND = "devupstream:target" DEFAULT_PREFERENCE:class-devupstream = "-1" -SRCREV_machine:class-devupstream ?= "b6abb62daa5511c4a3eaa30cbdb02544d1f10fa2" +SRCREV_machine:class-devupstream ?= "7cc36c3e14ae0af800a3a5d20cb17d0c168fc956" PN:class-devupstream = "linux-yocto-upstream" KBRANCH:class-devupstream = "v5.15/base" @@ -42,7 +42,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.15;destsuffix=${KMETA}" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" -LINUX_VERSION ?= "5.15.1" +LINUX_VERSION ?= "5.15.2" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native" From patchwork Tue Nov 23 21:57:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 320 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 B3C80C433FE for ; Tue, 23 Nov 2021 21:57:53 +0000 (UTC) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by mx.groups.io with SMTP id smtpd.web10.818.1637704673099752832 for ; Tue, 23 Nov 2021 13:57:53 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bSnk4+Hf; spf=pass (domain: gmail.com, ip: 209.85.160.172, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qt1-f172.google.com with SMTP id t11so716515qtw.3 for ; Tue, 23 Nov 2021 13:57:52 -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=ze3RU6SwgrsUAkZEDnvKhuVSI72zd1uN/V5hQ3n7CpA=; b=bSnk4+HfFnBoHfX9/Q+UxRAgXOHCFWATd1A5CXEkIQW7JxcYxVzFj2+XKFHCJfpqxe aWGXbVCrpcg7fcrs8ta+cs0xskyDaCV+BlSwh7rUn6sRu3P+cRji2VgG+99mP5xCKHcX JRuJ4DL7CJCWHuncRdstRg9fjKUf/7K6OT5YAffDgrCVWYJczsZNF8bTttyk/BhqQRPU wW18RY3jFp0bVCjqCDvXZoUmOz6CX3ll4ChNHOESpHRq+4W1zUR75Nie2FcPUbnjNc6J 2nWMW66Fi7WQosvnHipkxPismxekBmXHyhh42FrMxn0EuLAWGFyKqRUFGGFQBZgybh2o jqCQ== 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=ze3RU6SwgrsUAkZEDnvKhuVSI72zd1uN/V5hQ3n7CpA=; b=cNg1l35Y2X5e04K+fvILAqR9s0J4T4qV+FhwTA/Gvu9/4oFu7nLNA2UoiyqU9iF7CM uXge13kNOnHP38pTVHTZXcwkTxC3Uq1N6f1Sz4rFc97o9iR/91OjZleb4X+Ll1qttfhg 6KbRMdwdxcVixOVzms9wbcjIDajueLfJ7hHBNjgFLAd8i63Hox5GK2MMYvR/swhQQe0A FlU20S3Awn1zmnuIUnWRAK04xCDTuFEFq9YHF0avZufsc6ju4fsQZbP6aaOQioFHjh2P Kl/iTrJTcdgmUrDxJ89tWNifFSCFf+l1dFq+ZvmWbz70bMxlryWe3KOg5YdHAXZiRWJd GqyQ== X-Gm-Message-State: AOAM533Jx6o6zf5CHgAM9cp4jalXU/CBYvVhJ/Rh9A+VPAxc48TBqhna 6s8vFq6qYNVySIuv0RaMVyY= X-Google-Smtp-Source: ABdhPJwFfOBJs3ih4vqCCVKb1bx/yRUQoUhD1dDi/cDBW9+PRwK9A/4odwhGNLQX/Gpb5gGGbwoISQ== X-Received: by 2002:ac8:44bc:: with SMTP id a28mr839201qto.149.1637704671996; Tue, 23 Nov 2021 13:57:51 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:57:51 -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] linux-yocto/5.14: update to v5.14.18 Date: Tue, 23 Nov 2021 16:57:29 -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 ; Tue, 23 Nov 2021 21:57:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158623 From: Bruce Ashfield Updating linux-yocto/5.14 to the latest korg -stable release that comprises the following commits: a0265dd8262d Linux 5.14.18 1379769b0b46 rsi: fix control-message timeout eda57a310234 media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init 5013f2aaf959 staging: rtl8192u: fix control-message timeouts f3422d1fceba staging: r8712u: fix control-message timeout 373ac8c59414 comedi: vmk80xx: fix bulk and interrupt message timeouts 7b0e35618932 comedi: vmk80xx: fix bulk-buffer overflow 278484ae9329 comedi: vmk80xx: fix transfer-buffer overflows 4a9d43cb5d5f comedi: ni_usb6501: fix NULL-deref in command paths 3ac273d154d6 comedi: dt9812: fix DMA buffers on stack b2fa1f52d22c isofs: Fix out of bound access for corrupted isofs image befd23bd3b17 staging: rtl8712: fix use-after-free in rtl8712_dl_fw bec32c40e438 binder: don't detect sender/target during buffer cleanup 68abe9aefc40 binder: use cred instead of task for getsecid 46088365bab7 binder: use cred instead of task for selinux checks fbb106e79524 binder: use euid from cred instead of using task f9b4ef2504bb Revert "proc/wchan: use printk format instead of lookup_symbol_name()" 4674de4e2734 usb-storage: Add compatibility quirk flags for iODD 2531/2541 6be11f54f5d4 usb: musb: Balance list entry in musb_gadget_queue d7f4ffba71d0 usb: gadget: Mark USB_FSL_QE broken on 64-bit d3c7daab289d usb: ehci: handshake CMD_RUN instead of STS_HALT a4cdb4c9c453 Revert "x86/kvm: fix vcpu-id indexed array sizes" 2f63111ab86f KVM: x86: avoid warning with -Wbitwise-instead-of-logical f468cbedb2a7 ALSA: pci: cs46xx: Fix set up buffer type properly 186155ac272e ALSA: pcm: Check mmap capability of runtime dma buffer at first Signed-off-by: Bruce Ashfield --- .../linux/linux-yocto-rt_5.14.bb | 6 ++--- .../linux/linux-yocto-tiny_5.14.bb | 8 +++--- meta/recipes-kernel/linux/linux-yocto_5.14.bb | 26 +++++++++---------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.14.bb b/meta/recipes-kernel/linux/linux-yocto-rt_5.14.bb index 7e02f83d51..a328c6211f 100644 --- a/meta/recipes-kernel/linux/linux-yocto-rt_5.14.bb +++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.14.bb @@ -11,13 +11,13 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "672665c11dd86abd71bbad0537e6388c6a5a84ca" -SRCREV_meta ?= "b3ac9c40a22d6b00545b7ce51ef6dfb0cb9d2933" +SRCREV_machine ?= "b9d37d8650cd3787d60516496f60178c51564a59" +SRCREV_meta ?= "4e79d0b09290482ffb891e6b4acb3c7447b9c94d" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.14;destsuffix=${KMETA}" -LINUX_VERSION ?= "5.14.17" +LINUX_VERSION ?= "5.14.18" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.14.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_5.14.bb index 9ad9549554..98947900a4 100644 --- a/meta/recipes-kernel/linux/linux-yocto-tiny_5.14.bb +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.14.bb @@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig" require recipes-kernel/linux/linux-yocto.inc -LINUX_VERSION ?= "5.14.17" +LINUX_VERSION ?= "5.14.18" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" @@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine:qemuarm ?= "566227d5b0913910467a7736d78cad37e60217f8" -SRCREV_machine ?= "35888b3a9a222963b856c960e8f0c72c2de18d4a" -SRCREV_meta ?= "b3ac9c40a22d6b00545b7ce51ef6dfb0cb9d2933" +SRCREV_machine:qemuarm ?= "83004545c9bb5e3ad666b3ffa9ad723eb795881a" +SRCREV_machine ?= "8411a30747a2750c9d4dbe24631958bd00d3157e" +SRCREV_meta ?= "4e79d0b09290482ffb891e6b4acb3c7447b9c94d" PV = "${LINUX_VERSION}+git${SRCPV}" diff --git a/meta/recipes-kernel/linux/linux-yocto_5.14.bb b/meta/recipes-kernel/linux/linux-yocto_5.14.bb index f034f36d45..673c03d82e 100644 --- a/meta/recipes-kernel/linux/linux-yocto_5.14.bb +++ b/meta/recipes-kernel/linux/linux-yocto_5.14.bb @@ -13,17 +13,17 @@ KBRANCH:qemux86 ?= "v5.14/standard/base" KBRANCH:qemux86-64 ?= "v5.14/standard/base" KBRANCH:qemumips64 ?= "v5.14/standard/mti-malta64" -SRCREV_machine:qemuarm ?= "eef94a78151c2227eba9a8468ac611d9507482b5" -SRCREV_machine:qemuarm64 ?= "35888b3a9a222963b856c960e8f0c72c2de18d4a" -SRCREV_machine:qemumips ?= "607d94618b35382f38ab2bc0d37494372897ae4d" -SRCREV_machine:qemuppc ?= "35888b3a9a222963b856c960e8f0c72c2de18d4a" -SRCREV_machine:qemuriscv64 ?= "35888b3a9a222963b856c960e8f0c72c2de18d4a" -SRCREV_machine:qemuriscv32 ?= "35888b3a9a222963b856c960e8f0c72c2de18d4a" -SRCREV_machine:qemux86 ?= "35888b3a9a222963b856c960e8f0c72c2de18d4a" -SRCREV_machine:qemux86-64 ?= "35888b3a9a222963b856c960e8f0c72c2de18d4a" -SRCREV_machine:qemumips64 ?= "9ed182ebbcd4c77b8f99439d2feb6c4591148324" -SRCREV_machine ?= "35888b3a9a222963b856c960e8f0c72c2de18d4a" -SRCREV_meta ?= "b3ac9c40a22d6b00545b7ce51ef6dfb0cb9d2933" +SRCREV_machine:qemuarm ?= "992053c4ec826932d9256ea4e1ad8686e4ea5375" +SRCREV_machine:qemuarm64 ?= "8411a30747a2750c9d4dbe24631958bd00d3157e" +SRCREV_machine:qemumips ?= "e362a5e68da1cca6ad77a27cbda02116edc9864d" +SRCREV_machine:qemuppc ?= "8411a30747a2750c9d4dbe24631958bd00d3157e" +SRCREV_machine:qemuriscv64 ?= "8411a30747a2750c9d4dbe24631958bd00d3157e" +SRCREV_machine:qemuriscv32 ?= "8411a30747a2750c9d4dbe24631958bd00d3157e" +SRCREV_machine:qemux86 ?= "8411a30747a2750c9d4dbe24631958bd00d3157e" +SRCREV_machine:qemux86-64 ?= "8411a30747a2750c9d4dbe24631958bd00d3157e" +SRCREV_machine:qemumips64 ?= "90b773a3236f213b62d2d4ab23cca9c695bc8383" +SRCREV_machine ?= "8411a30747a2750c9d4dbe24631958bd00d3157e" +SRCREV_meta ?= "4e79d0b09290482ffb891e6b4acb3c7447b9c94d" # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll # get the /base branch, which is pure upstream -stable, and the same @@ -31,7 +31,7 @@ SRCREV_meta ?= "b3ac9c40a22d6b00545b7ce51ef6dfb0cb9d2933" # normal PREFERRED_VERSION settings. BBCLASSEXTEND = "devupstream:target" DEFAULT_PREFERENCE:class-devupstream = "-1" -SRCREV_machine:class-devupstream ?= "3dfa869cb79d60a2fe66efb4a11517ec7c89de16" +SRCREV_machine:class-devupstream ?= "a0265dd8262de73457aaa3ce1c5938dc152b8085" PN:class-devupstream = "linux-yocto-upstream" KBRANCH:class-devupstream = "v5.14/base" @@ -42,7 +42,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.14;destsuffix=${KMETA}" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" -LINUX_VERSION ?= "5.14.17" +LINUX_VERSION ?= "5.14.18" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native" From patchwork Tue Nov 23 21:57:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 321 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 B3DDBC433EF for ; Tue, 23 Nov 2021 21:57:54 +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.web11.869.1637704674092955281 for ; Tue, 23 Nov 2021 13:57:54 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZQFm0ciY; 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 de30so738068qkb.0 for ; Tue, 23 Nov 2021 13:57:53 -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=4xRH3zh5CrwMdEN/eoxcBH/2rljbPccuMwe4ev80wFM=; b=ZQFm0ciYevk3a+Mgt6sKra3TtkrvNRCCajV18pG7WKiGSWjHdBQuKqI4gFc8FdAyJv wsd5n9ITR/uSJUZsuMocVIlvjpqQNzLYtSAcrGvACUsc5EdpxxuasopIYwzf3WJfiIRF OMp2qielalmuIz7ipYvPCGnEnIqETSPMcTkCllmmILjtltxu4Sz2ePjTQT7Gy0BN3tlQ BXgqbfChGP3Hh9OmHhaBd7d/Qb9oiifM4y89Om2xDd3N3o8hbyH71cwWWsJxrRqsyofj /xQFiKsD9U3GDkJ9QJHe50nbxjLxf8Iqe7jg5hiShBMI1FEE2PPbbzbepeZoZVWoUL2m SJIQ== 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=4xRH3zh5CrwMdEN/eoxcBH/2rljbPccuMwe4ev80wFM=; b=CDtIaQn8Bm4zj1GJN1PT6X3ngFRUhsUY3XN+i5wX/v/M0b8ggGTPDOo/L6rn4+vb2W 2VfhRVgsv+dDny+zbSrgZbOJcnj6xWJieG8fFYB3vt9wWIdRvvaVVzs2X3aPlmBZ/HLc a2nNiI3hFGnB4lAcUzUEE9kUfcRystZIkYDpPsGBz+s1VHrEzbjxmEdlfBGyt0IK3z3r GJ9/r5p8l/IIN8ePXMhMLE8UND+idFiLtPlMUGHQXKoIZ4VblB4AWTeT5U8t5B2RIXSv Mce4rno+RwxymSHQgBay6jQcJh0MAZfr7Gy2iGTf2h4ED7FGXcJL9bQh2U9uOoMMpmFE iBIg== X-Gm-Message-State: AOAM532Bbm9AQYIeeR3rTZOCyHK/70FbPXOKiQ6HY6Z4DM3+AOVYo+tM rPNll+uuttVRtZNTFJtdIEQ= X-Google-Smtp-Source: ABdhPJwRBUEtLpGPvtwwnKPrUCdT3L0iEbkj0QibpNIP9m+Ua2Cn+yVoEFBRWdbVMO0m4BUN/blJ1Q== X-Received: by 2002:a05:620a:28d0:: with SMTP id l16mr703906qkp.500.1637704673208; Tue, 23 Nov 2021 13:57:53 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:57:52 -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] linux-yocto/5.10: update to v5.10.79 Date: Tue, 23 Nov 2021 16:57:30 -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 ; Tue, 23 Nov 2021 21:57:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158624 From: Bruce Ashfield Updating linux-yocto/5.10 to the latest korg -stable release that comprises the following commits: bd816c278316 Linux 5.10.79 62424fe4c2cf rsi: fix control-message timeout 8971158af1e0 media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init 1cf43e928954 staging: rtl8192u: fix control-message timeouts 9963ba5b9d49 staging: r8712u: fix control-message timeout 844b02496eac comedi: vmk80xx: fix bulk and interrupt message timeouts b7fd7f3387f0 comedi: vmk80xx: fix bulk-buffer overflow 33d7a470730d comedi: vmk80xx: fix transfer-buffer overflows ef143dc0c3de comedi: ni_usb6501: fix NULL-deref in command paths 786f5b034504 comedi: dt9812: fix DMA buffers on stack 86d4aedcbc69 isofs: Fix out of bound access for corrupted isofs image c430094541a8 staging: rtl8712: fix use-after-free in rtl8712_dl_fw ab4af56ae250 printk/console: Allow to disable console output by using console="" or console=null 07d1db141e47 binder: don't detect sender/target during buffer cleanup 42681b90c4db usb-storage: Add compatibility quirk flags for iODD 2531/2541 1309753b7841 usb: musb: Balance list entry in musb_gadget_queue 27409143122f usb: gadget: Mark USB_FSL_QE broken on 64-bit 94e5305a3816 usb: ehci: handshake CMD_RUN instead of STS_HALT a8db6fd04d58 Revert "x86/kvm: fix vcpu-id indexed array sizes" ecf58653f1e4 KVM: x86: avoid warning with -Wbitwise-instead-of-logical Signed-off-by: Bruce Ashfield --- .../linux/linux-yocto-rt_5.10.bb | 6 ++--- .../linux/linux-yocto-tiny_5.10.bb | 8 +++---- meta/recipes-kernel/linux/linux-yocto_5.10.bb | 24 +++++++++---------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb b/meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb index f666ac0611..89ef0097fa 100644 --- a/meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb +++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb @@ -11,13 +11,13 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "12f6a7187b3c8abab5e139dbfdf7f58f265f4169" -SRCREV_meta ?= "a0238f7f4f2222d08bb18147bb5e24cc877b0546" +SRCREV_machine ?= "31ba5af055c8ec4f10e7d830f6303ca2384e345a" +SRCREV_meta ?= "1a4cd99824c919ba17dc62935532f3748ef18469" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}" -LINUX_VERSION ?= "5.10.78" +LINUX_VERSION ?= "5.10.79" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb index 86010f106f..ef562f42f1 100644 --- a/meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb @@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig" require recipes-kernel/linux/linux-yocto.inc -LINUX_VERSION ?= "5.10.78" +LINUX_VERSION ?= "5.10.79" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" @@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine:qemuarm ?= "cdec5045c5323846adaf2510e539843d0cfe74ae" -SRCREV_machine ?= "344c0c38f5b892312b0a1db7f613d2704dd4942f" -SRCREV_meta ?= "a0238f7f4f2222d08bb18147bb5e24cc877b0546" +SRCREV_machine:qemuarm ?= "d8f6c9be051a886d4956a7d6195d0e8f10761a33" +SRCREV_machine ?= "f7838de907e651c3d279e6b5209b7e5d7e12ad21" +SRCREV_meta ?= "1a4cd99824c919ba17dc62935532f3748ef18469" PV = "${LINUX_VERSION}+git${SRCPV}" diff --git a/meta/recipes-kernel/linux/linux-yocto_5.10.bb b/meta/recipes-kernel/linux/linux-yocto_5.10.bb index 2e81068330..a68744d129 100644 --- a/meta/recipes-kernel/linux/linux-yocto_5.10.bb +++ b/meta/recipes-kernel/linux/linux-yocto_5.10.bb @@ -13,17 +13,17 @@ KBRANCH:qemux86 ?= "v5.10/standard/base" KBRANCH:qemux86-64 ?= "v5.10/standard/base" KBRANCH:qemumips64 ?= "v5.10/standard/mti-malta64" -SRCREV_machine:qemuarm ?= "f98b917d7826304daeecf11cc52be2562a9304ff" -SRCREV_machine:qemuarm64 ?= "13ff8a3ae368724e008e3bcd77833611de7962b2" -SRCREV_machine:qemumips ?= "7b94dec2b0f5b582b97cdb3ac97fe153559869e4" -SRCREV_machine:qemuppc ?= "652531fb0cc8eb3607109bb8d878253be2d3d534" -SRCREV_machine:qemuriscv64 ?= "2daa192783edd4974da8e900c0dc93186e57a838" -SRCREV_machine:qemuriscv32 ?= "2daa192783edd4974da8e900c0dc93186e57a838" -SRCREV_machine:qemux86 ?= "2daa192783edd4974da8e900c0dc93186e57a838" -SRCREV_machine:qemux86-64 ?= "2daa192783edd4974da8e900c0dc93186e57a838" -SRCREV_machine:qemumips64 ?= "4c817df0fd06350e18693551699c33361e16a193" -SRCREV_machine ?= "2daa192783edd4974da8e900c0dc93186e57a838" -SRCREV_meta ?= "a0238f7f4f2222d08bb18147bb5e24cc877b0546" +SRCREV_machine:qemuarm ?= "400d6ae8c64508b812dd58ee90106be2aa395bd9" +SRCREV_machine:qemuarm64 ?= "efc398a5bce6938c24413608381d86e7bf225c91" +SRCREV_machine:qemumips ?= "358d9326c084f4162b71ed857b16419b4fb3295f" +SRCREV_machine:qemuppc ?= "0fb273427794cb084265a18b03878a482e438aa9" +SRCREV_machine:qemuriscv64 ?= "fba683668510aeb475a5fd3fb4b7da5aed402495" +SRCREV_machine:qemuriscv32 ?= "fba683668510aeb475a5fd3fb4b7da5aed402495" +SRCREV_machine:qemux86 ?= "fba683668510aeb475a5fd3fb4b7da5aed402495" +SRCREV_machine:qemux86-64 ?= "fba683668510aeb475a5fd3fb4b7da5aed402495" +SRCREV_machine:qemumips64 ?= "e1dabeb4b0ea9695dea605a0c91f17c482f49f75" +SRCREV_machine ?= "fba683668510aeb475a5fd3fb4b7da5aed402495" +SRCREV_meta ?= "1a4cd99824c919ba17dc62935532f3748ef18469" # remap qemuarm to qemuarma15 for the 5.8 kernel # KMACHINE:qemuarm ?= "qemuarma15" @@ -32,7 +32,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" -LINUX_VERSION ?= "5.10.78" +LINUX_VERSION ?= "5.10.79" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native" From patchwork Tue Nov 23 21:57:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 322 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 AC7C4C433F5 for ; Tue, 23 Nov 2021 21:57:55 +0000 (UTC) Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) by mx.groups.io with SMTP id smtpd.web10.819.1637704674880265526 for ; Tue, 23 Nov 2021 13:57:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IAD90tZL; spf=pass (domain: gmail.com, ip: 209.85.160.179, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qt1-f179.google.com with SMTP id q14so685872qtx.10 for ; Tue, 23 Nov 2021 13:57:54 -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=hLoJCVmtqzno3i99hxHcTMfGd4vqKd2gwJ2aJHl2YAg=; b=IAD90tZLa+o5234cxV3h0ZFDoo8hGfFJiVRhkTnBphFfng7d1N2LaKXC3/YELmepu2 KXO3MxA0rCMc73/ZvvcOXr4qKB/RhYXTaK/F6Jtew18+/EnwATtAiZnFJ30nmphBZV7B xPCTrH1XsQ/Hyw2eQqVpmMgBNiuVPiky6hHUbbcumBw1OVwVcfHmaoz6O4tq2115Dqqp hagR09Hj0R0FlSuq6cw4E7Y6GZra2kiI4NM6FyTWSG1+F5rHBE5yO6Yk4RbnEn9QSV2y Eh8qVI5XkfXm1122Qnw2zFd8OxnSKmuusnrhk1f4QRtmaEitJhgtHCY+0ku9isoxQjab diBA== 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=hLoJCVmtqzno3i99hxHcTMfGd4vqKd2gwJ2aJHl2YAg=; b=xLaCDkewyVnTisjcFpLESkBqai3JXwGS7uG3ZXko4Fh5OeCXEeyeMsqi09m2v5HvUN L4Y/s50l2sQV/kzzJbm4VSLpl/N5bf/ioBCJfhJzxK0F7dRzaVnHPULlfKUWBqWSK+Bj 8LZrwlO1qFVMr0j1Af5aXHqp8sYeOuE9bMzaqhJ/mZsCFBtMdevcUIC7ReJq2ONE7NHW 4KwUYbtbdeyx/QEHj8RBhvrl2XpzJGLc0LgvSZWycGRFdiVbmCr+o/Ca3lFkz1aRNxtD o0wqCwYnTItSh42VMhvWd8v38DCyrDNGv4UeMA+VejkAM9i+F4AgH43Qxn3FPTttCKFJ nZDg== X-Gm-Message-State: AOAM531vKWmLzQx6bnipPjeagni8OswxQ9siQXc+mZAdCNuwtkgii8YE JY/nEGZT+SZTLAtIWiMyu1HrSpXWz6KRUw== X-Google-Smtp-Source: ABdhPJwZJe/dwuGy1QCpa4K0k5OLrOFTOcvOu+JMLaVdqKklMtpWt0WeSS+3YfI8m3NW5Kg/AgAuVw== X-Received: by 2002:a05:622a:30e:: with SMTP id q14mr875477qtw.71.1637704674016; Tue, 23 Nov 2021 13:57:54 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:57:53 -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] kernel-yocto: conditionally enable stack protection checking on x86-64 Date: Tue, 23 Nov 2021 16:57:31 -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 ; Tue, 23 Nov 2021 21:57:55 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158625 From: Bruce Ashfield The kernel Makfile uses pkgconfig to check for libelf when enabling CONFIG_STACK_VALIDATION. We already have libelf in our DEPENDS, but the kernel Makefiles hardcode 'pkgconfig', so fail to pick up our pkgconfig-native binary that would report the correct flags and paths for libelf support. Rather than patching the kernel Makefile's to use pkgconfig-native, we can use the KERNEL_EXTRA_ARGS variable to pass the definition of HOST_LIBELF_LIBS via the kernel build commmand line. We conditionally set HOST_LIBELF_LIBS based on "stack" being in a newly introduced variable KERNEL_DEBUG_OPTIONS. The value of HOST_LIBELF_LIBS is the same as pkgconfig-native would set in a kernel build (but we cannot call pkgconfig at the point this variable is set). Signed-off-by: Bruce Ashfield --- meta/recipes-kernel/linux/linux-yocto.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index 331727d62c..15fc7ff724 100644 --- a/meta/recipes-kernel/linux/linux-yocto.inc +++ b/meta/recipes-kernel/linux/linux-yocto.inc @@ -46,6 +46,7 @@ LINUX_VERSION_EXTENSION ??= "-yocto-${LINUX_KERNEL_TYPE}" # Pick up shared functions inherit kernel inherit kernel-yocto +inherit pkgconfig B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build" @@ -57,3 +58,6 @@ do_install:append(){ # enable kernel-sample for oeqa/runtime/cases's ksample.py test 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)}" From patchwork Tue Nov 23 21:57:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 323 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 B44C1C433EF for ; Tue, 23 Nov 2021 21:57:56 +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.web12.801.1637704675769492769 for ; Tue, 23 Nov 2021 13:57:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F4iL59ko; 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 v2so290294qve.11 for ; Tue, 23 Nov 2021 13:57:55 -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=F4iL59koKZgdDBbgFItkwTQL/kJyEe/7mpS09zXb/G7cWl3+AA5aqlE9OB1au1EfXD ygNpgXYnnKaqMDuY9BBDfKJCIFFrrIll1afp9Ci+QTc/2f+L30UyS++GHHirGPN4pXXo RPDyjQG8hY0EioSCQvinj1i0+4xQojSv88p9+4FPzDja/dNlLjdOOAfFV+ndJqr/WOrz OPflaT2kk/hyX6lZ7z0QdozEJ8nCubcUYh5oH4C9UTnzfniUHxi5d9m6q7UaQxuJ55HO FP6MDupAiRkcAdQMaXtqS2DqWozTUDjpUw5yVfuWxUIu/iapnXQy8uEN/rfYpqyqP4wb 2qvA== 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=KRzh9vijlD3kbSsmVn3VkrQ03K+1YsH7Xh7GRhzkajG0YOKTrCVnQfaqWhZB1gPlQ+ PuJ9Y0CxaYWx9S3j3Htidx42/Gyyhn/N8tBh7AL8Idl4NcP23MMBQK0dzCkQ0pvAMlft Tv6TSA5g96VmHw+FyT35mgGSATasX9C0kjbQFdK3aBs7p3xapDuOSC5ZFJYzl9FFo/FG aGyLAlUBnAbhtK2PCSOXxnAcxOkLKqsuWaLh7TFEHJ3YlA1XtMwGQ96tM+IzBlAsbeWf l9rZ0VIelrar4IId4G5Rtg4ETBZiRM0HhU6r/vagwvbR/Qu9rJgqt8FWQ4whVoZsv99h /FDw== X-Gm-Message-State: AOAM532wgEeHI/W9PQAbbjYCzfNFrra/59/qMMVDx7cx1mxEJAxbTXnq qKG8mPICv4FMN13+eMasxnc= X-Google-Smtp-Source: ABdhPJwMOQN96Xu7N2C2GlkqbcoMnfeJUY/j41MK0/CUHhoC5R733XOjIQ4T/LA97NykrzgQBcSeDw== X-Received: by 2002:ad4:5bc6:: with SMTP id t6mr871099qvt.15.1637704674955; Tue, 23 Nov 2021 13:57:54 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:57:54 -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] linux-yocto-dev: bump to v5.16+ Date: Tue, 23 Nov 2021 16:57:32 -0500 Message-Id: <72c845826a75320f49fe6907bd2c2f99fc61cff8.1637703810.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 ; Tue, 23 Nov 2021 21:57:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158626 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 Tue Nov 23 21:57:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 324 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 C3DB3C433F5 for ; Tue, 23 Nov 2021 21:57:57 +0000 (UTC) Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) by mx.groups.io with SMTP id smtpd.web12.802.1637704676655796866 for ; Tue, 23 Nov 2021 13:57:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VYfaiASH; spf=pass (domain: gmail.com, ip: 209.85.160.180, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qt1-f180.google.com with SMTP id o17so732912qtk.1 for ; Tue, 23 Nov 2021 13:57:56 -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=VYfaiASHXcd0JY1cIPlbyeTdH32FwSf2cIiab7bnZMx/CVacaZ2JRXW7CQmbSRRR3w gPG5xTtU+XuRJbpj76qBj0lOJZ7OFgqc30CYUO9LqEpv8hZQzE53m+qsjsVg7T5iR/Gn ShCDwWSFRRYlUSYmHhEk9SWnxd/ZkyJncTeh2d5WG0c0Z5T4fe+gdkmRQvT15ypwCHAn fI5/j5mEvKiseL+R8XfsFzGbkm4B0ZtwUBfrd47vHiuQUedTX8MtqeHhLOzFP6W+T4JZ fMoTJ9la/n09C7hry7F/M9YFlZwUi4WNXL4c62jJbb7z8/qqbuQqdaBcfo0E9Rk6bugr /EIw== 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=BhmKlkUiciwoBKf01C0+32XelXkrtAvoQyd5YaiTv1UZOIE/J0kAJQo93RTfoF5uyn rdnmcnrysvr2KBIV62FFc0+ZQC84xJWwyUYRSlYDhbsLO0N/VANy9EaHllyPmrxZ5M5V eDCxI9o65tNJBa0DE9KbUiXsO2Qkzlnrsyk/M+yIMS/V1OWs8HjFz6ruePB+ATl204ZK i51SgPJoA5f46arQ/oa4T/uGf8NkDZ8TssRd+bV8SZBSbQlpSznMGd53ZlXcgc9iHNYG Ls8FxB9m0PgarjhlhrYSh6bUPVmkEH8jYJYhChGBDfAcs4nhbIu/fIeIkOEAbPrYXhmo Phkw== X-Gm-Message-State: AOAM530dd8RRm3Y/oDrPuNpaJorHTKAQdP7kvRDzCTyAaMXTT/Un3G3I B1ujoU4L3pSFXTnMGmmSIoHwcie1WYF0Rg== X-Google-Smtp-Source: ABdhPJwzo7aI+ixOsx34dzGNSPiXrNwxeNll7En5Oz3rbuXJzAdLbXFc48gLlpuWvjsse+2YaWO++w== X-Received: by 2002:ac8:7f43:: with SMTP id g3mr857675qtk.127.1637704675784; Tue, 23 Nov 2021 13:57:55 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:57:55 -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] kernel: export native PKGCONFIG variables Date: Tue, 23 Nov 2021 16:57:33 -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 ; Tue, 23 Nov 2021 21:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158627 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 Tue Nov 23 21:57:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 325 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 AFD8BC433FE for ; Tue, 23 Nov 2021 21:57:58 +0000 (UTC) Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by mx.groups.io with SMTP id smtpd.web12.803.1637704677541944219 for ; Tue, 23 Nov 2021 13:57:57 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K+0gCTOP; spf=pass (domain: gmail.com, ip: 209.85.160.181, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qt1-f181.google.com with SMTP id v22so692964qtx.8 for ; Tue, 23 Nov 2021 13:57:57 -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=QKk9HjInLzxXOoH9JI7pHC3+6lP7LRDlHu2Tqi+2r/w=; b=K+0gCTOPIzMPysQau6liJRcKhZbBZ5Y2ccR8OCscXO87qJgceTxhqOoMo4tjn6kiq7 QmPWIxQ+Zj7fuZXhrdm+Od6DP95/v96ZCevTHVtSrFoX8AmpEvmg7tWFwmzYbcHXy0qB VfjvSQ9uwb7FZYVbruUNNE+9CJrCh+Lt47SXyV/8m5TrkEtmm7frn8tBUI3TiPm1YGcH 59pIlR1HTPnk2kjNeH8OR2juEKOzQdkyl4U9RkDRYY5h7P+GE0RfQsaqVlwl2lCC55AZ 3fU3tEAFlAjLCbqnkjgO9bvyGbkXiMlY+6QJxqqhR5AHgu5YmEQbhoyVHRqj4kMv3vJm /AjA== 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=QKk9HjInLzxXOoH9JI7pHC3+6lP7LRDlHu2Tqi+2r/w=; b=swwZSo35rqH+JFJfcQJ13t1uohbTNecB10KIY1OfuKEgSwuy6D2KMwnQrYMt4Qtdbb 9sAZ79jqEcoBREU112noKpYY3kYBIod54HVlsoSMEnugQIXee0S323D8/YMXL05lPYmR lX0zAByS+hyZgxm8EFh+MNOJhkdyha09VbvyagAeq/mN3YwcWqQbXZi85e39W22ZqkZk yIpoYvzmN8rPAjpsviFSEBgyzXQd2TIzvbeJ1aC4LhPrk5hWT697aE969eHU2Yxq9aUZ nhsN4/PALHRi7Y3Wmrlf3ZqjQf26z95T0sC/b9hdxihudRwLAkCoW0OgN1d75wqaY5tz 9YNA== X-Gm-Message-State: AOAM530huXPbgK2lRb5uZbcQMXgmxk6LhZG1B/BT9BB6zMtUNIgCPO5R G2XHlQdTb4dHftgLjulQlCc= X-Google-Smtp-Source: ABdhPJzzIeVj9JoWyChcFtVnAsEJiFf1+y6XoyG9d2JhMSOcKFTfl6bdG39q2/O4PBQotYYU58t0ZA== X-Received: by 2002:ac8:7c4b:: with SMTP id o11mr867785qtv.358.1637704676688; Tue, 23 Nov 2021 13:57:56 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:57:56 -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: introduce python3-dtschema Date: Tue, 23 Nov 2021 16:57:34 -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 ; Tue, 23 Nov 2021 21:57:58 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158628 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 | 15 +++++++++++++++ 1 file changed, 15 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..36e572a35c --- /dev/null +++ b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb @@ -0,0 +1,15 @@ +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 += "${PYTHON_PN}-setuptools-scm ${PYTHON_PN}-ruamel-yaml ${PYTHON_PN}-jsonschema ${PYTHON_PN}-rfc3987" + +BBCLASSEXTEND = "native nativesdk" From patchwork Tue Nov 23 21:57:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 326 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 AF400C433EF for ; Tue, 23 Nov 2021 21:57:59 +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.822.1637704678792423075 for ; Tue, 23 Nov 2021 13:57:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KJxI/We1; 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 t11so716693qtw.3 for ; Tue, 23 Nov 2021 13:57:58 -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=KJxI/We1OPJ8+6CBaaqxkJSWGr06sK61Q6h9HwQg7BZNhG+s3LQL3TM792JZqa0bL7 muZnYMv+XHa5VOqZcq7bAIfseAPKQhkPxCGWpn3krdR/r6rjoIvyjEDO2nCDd/Csvluk CVMJ9zggLZZWwJ5F3ZyHT+IMPMCD87u5rIGgGkkwBNl2ZCBM9HxzZp//AohF9y6XsRAV rwU4CALP5VNAb8VDWvwmBY1CNVPwz04n3GfjwOmwvPPNe7DcVlBkPNzbRYfOwgDqm745 5qE9Lgv63Ri10hOQxep7eDXh4SLldsgi2QWhu6P+MRumXKhBInbfMeNAY6tIG4TzU3i8 7aKw== 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=P5KFKQkslDFCUashklS0pPogrKe/7HsaYtKDk/GtU/ff/DBo+QVTPePRzOaN6wORZV OuBg0mWBOJ6Ayv13TYV2fUntWpXWIK8yqFeyVH3ttHat+y+SbmDAVggSYWO9HJnXOK8h S51eECYrFOtIQv7TcZEV/o4bUtU2Q4myHqcDCHVEwCAbXkjVpsoU3YD4nyImYEaMYoOo dUPTymeWySH9oG38Dl3DGE0xEMIsrCtn4ZwdBpbGUpdkL9XMY2zQnQUcsbyuJlwfyv3O LJSrd6hbfL0++1SCnNC+VAAcep78KRd5Sw03V0sCOy22HdhOFam/HZMdRXm9tuxuLA5b a4yA== X-Gm-Message-State: AOAM532num4Zqx9oMKOFKG81Faq5KrP0qY8ZA2MUlvGMo+zjIEmqmLp2 +nNQsUdJtL1SSzI2JMo8Lcs= X-Google-Smtp-Source: ABdhPJxJ1MX98ocJylibnTvwobg5hGybw8tiWbcklHDyKfowPjNHL9ciTM3Wogfcn6UXtqj6UDfGHQ== X-Received: by 2002:a05:622a:18e:: with SMTP id s14mr868738qtw.203.1637704677951; Tue, 23 Nov 2021 13:57:57 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:57:57 -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 jsonpointer from meta-python Date: Tue, 23 Nov 2021 16:57:35 -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 ; Tue, 23 Nov 2021 21:57:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158629 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 Tue Nov 23 21:57:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 327 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 B3987C433F5 for ; Tue, 23 Nov 2021 21:58:00 +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.web09.858.1637704679676219081 for ; Tue, 23 Nov 2021 13:57:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eti+u1PZ; 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 jo22so280062qvb.13 for ; Tue, 23 Nov 2021 13:57:59 -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=eti+u1PZV+8cc/v0BaRHerX9zyDUygO06i/Du79oR1oGkdg/aH+n+ovU37TOcNRouJ czeXx9F/mpDh+XfAFcARtfCq12e67glIoZU215zwtXqXSsOGbKA+O804YIR5yTUaot2Y 40zhLdbzCZs3/VrvkLff6Hz1JAVwRrICJgU/ykwafTpOxk8NYDFjGFnY4WBoy6vAIc/W TXAdg5qKne+igYPRPyWYIFR95IVBEsQtM+a6QR7XUCKMPRe9IdrYyfv7CKzhyuu4Jhet ECR5oJhX9b3glkks4oxqi9VpdT2NEcL+rQYzmH1gGJxZKqxJgJ3NQNoqveManRTpUbUl 3tbw== 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=T61DJg0VhkKspnIvhyXxc2KKQTUgH9j897zXeyUInp0NRIPvw82imwfi272kd6wMTy wSos+9uxn1/sqWLtu4SPqmMKCgb4KFYEIh+q+iKQoiQ0uGgKIcy0VKn1rTK/BnZGBd/n r8udHrcNCR2KkEacnCFPBQ0bDKbAn8yYCmdOET7s1fVCjcBzm25OiOeX+K76qrBFkT4i ROg+3sovQfJBXyMdM84kc7+P4u8RW8st/ijJX8GqLCn5W0XAN/e1z+Ss0QfZak/MKf77 diGtYN2hKdL9y0hztNWzMl1JsNDg+y7/HvCa8f9pXD2Y0ZZux7wd6mI2iiFTC0Wtm4bo FtRw== X-Gm-Message-State: AOAM5323AAkbpAhhqga+7KphcOxWaekLSg1IH9N8BScvPGZjYLiIuaUs QIpydPanABaVvtZ75ejNQHAcmvMUYkfyhA== X-Google-Smtp-Source: ABdhPJwYAWXmrAQwb8qJ0NCyZSxENWyoEJrxipueCOnh5ylfLq/ngNarzLd9YPaDIE4H09Cia7O+Xg== X-Received: by 2002:a0c:e98a:: with SMTP id z10mr595652qvn.43.1637704678808; Tue, 23 Nov 2021 13:57:58 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:57:58 -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 jsonschema from meta-python Date: Tue, 23 Nov 2021 16:57:36 -0500 Message-Id: <8ec765f17eb8b42851e3f6db36e363cd962f743b.1637703810.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 ; Tue, 23 Nov 2021 21:58:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158630 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 Tue Nov 23 21:57:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 328 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 AF426C433EF for ; Tue, 23 Nov 2021 21:58:01 +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.web12.805.1637704681248982527 for ; Tue, 23 Nov 2021 13:58:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AJFmokTN; 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 g1so320479qvd.2 for ; Tue, 23 Nov 2021 13:58:01 -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=AJFmokTNIxCCQWwcOexX13A5wfhM9UQL7KD2YrFLUGyOH6ggAHMNZbf4XKeDTDV/J7 iYCk22i5DScsAXyM5LnutaDAHh3SEBK7AWNOiLE8vUt140D0KLxCNllCmvk2fGq6x6ag FenQ+8z5i1wPF3g8aMAxkFhZ5BsFyUc3vDxRtwwRqA2bETmRGcbkLIqfoRuPStO4afeY Obthihudc/InqMYEqv4UvJEJRtG1NiNpwUnymCLxDjNans4ltEGbQLm4CSjJt8x3sn20 UQyAhF10XZ9SmoNeNNwxImaXZZTmmh11Hd8gkPGWBIDpIjYkKOXxuj7t0tVGoCHZAJuf pb7w== 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=VzMTXHyEc838JjQiNRnEG6yu6Sd37PpPvkNNKE7sONs7EyhGv9s5JaGK/3GfYGjegm IkeoCKwMBh6Xo3kKlmUPe/6ZKkgwzVwys4HJDXZly03PSWNaSw+9uB5AW2BYi1eobw/7 yxJz4vOHOoDHPZsTTv+KjAUBVzY/OQi6K3vFOr/DxIdhkBdAFOwjsnO2vx4+Kfqi9vDO B6FIoAGJI3C6IgyOHrVFj86Q6OIP1vKXcpSjbugZP44/3JE0loiKvFfWJaqyHunLep/u RYeu/NRn31jhn+dU1YCc3PMQVbvj/GCdOQyxrww0ln56RPTqkT+yJ42ywPjJvPcbZnOh IX0A== X-Gm-Message-State: AOAM531yG/tKsWkPCJYA/OOYTvNVY5J2HaE5gB/dUgqF1LKm4waeT6Ft a6BaEDSx8HjUgILRhWwolKU= X-Google-Smtp-Source: ABdhPJytpW0tdfl8zL1mvzWvZetLPOWSNqkjlhorerF3g+4GIEsK2iTvnWa0PXSEMLAbqcG2lIgtww== X-Received: by 2002:a05:6214:5186:: with SMTP id kl6mr608634qvb.33.1637704680387; Tue, 23 Nov 2021 13:58:00 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:00 -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 idna from meta-python Date: Tue, 23 Nov 2021 16:57:37 -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 ; Tue, 23 Nov 2021 21:58:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158631 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 Tue Nov 23 21:57:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 329 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 B3908C433FE for ; Tue, 23 Nov 2021 21:58:02 +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.web12.807.1637704682123450174 for ; Tue, 23 Nov 2021 13:58:02 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Rooky9Ud; 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 u16so312095qvk.4 for ; Tue, 23 Nov 2021 13:58:02 -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=Rooky9Udvta/EYwNzb/En3TBtP3wuFOrrfsUHQLFwonVlPmbrANYdl/4+Ln7lveUSL BrXVYCRHbWb1GUvbzz0nRx8zEXzF3MkJ4CwgffPQYhFy8mTwJMU9Gz6abSKgTz+w3dkt tb3UrkLkB4I6HLFIfg5i9zEr7pL+Hi11mbQQsH9Xk5q6/LsaiNJlbAtshYMu7+bgTZ6M rfg2QqKvpZrkL/SUDHtDG/p7KL7/9f9Hw5Y4Wp7vjAAOEydbk/RQ+rzdFrcwSlioIjpm np9ddEYVgOSfSKXOF36CjyW8ksnLfXdj3o6RYm0Fqa9ztmfrVjOtEDEdIbEK6BS1f/Wn 02+g== 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=LMNe5HmDneLACjoZcHzqP1JmTV+f4snFQtglo59OHqpMaixPNFQrFcdfDADcSpsK1Y FSByvnZsEiltiOQQ7vVl+nxCBiSKKyN65BqMalAjQot7REET0ooTC9WIjrrycF09qML0 2/NDE8VGdsxJFYJgZLIIUoV1ok4x/czSToKMfMczEI5Jgioahp/QaIrZ/C/n75kCrfyM jyHk3Axh9PNh6Q5NpVnlNktGLyzdnXKxCfheWqNnTtqBl3s7oewMOlUL1v8ts7o24cg4 35H1rIGLgNV1bkoFLYV6zRJhKXGLy80/yXFG4N1zG84R0IGd9e5To1GO/82fLozYraIp raqQ== X-Gm-Message-State: AOAM532fAsXKDcMfwF1yKjcO4MvGC71TEijPQolmHzrKMDqFwCIpdh97 S1z9k8A6wfLaCSJhl/CimYf3UjRajaMo1Q== X-Google-Smtp-Source: ABdhPJxKvFxq4iLXc0d4LHgEbq3eVqUw1lrMr5/YMHbp+mgBGY/tfP4P8ErHb4DD4Pw/2Cu1VFIH3w== X-Received: by 2002:a05:6214:400c:: with SMTP id kd12mr864688qvb.41.1637704681231; Tue, 23 Nov 2021 13:58:01 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:00 -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 rfc3339-validator from meta-python Date: Tue, 23 Nov 2021 16:57:38 -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 ; Tue, 23 Nov 2021 21:58:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158632 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 Tue Nov 23 21:57:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 331 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 B5F52C433FE for ; Tue, 23 Nov 2021 21:58:04 +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.web11.875.1637704683343884578 for ; Tue, 23 Nov 2021 13:58:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BbMoht1M; 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 v2so290518qve.11 for ; Tue, 23 Nov 2021 13:58:03 -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=BbMoht1MvoZGEnOzVDmeZnSLb+8txJy3kov4t9BwtIkGpvk3O/eqUngS5YmNIID3NF U+1f7XwNtgQl7pbp1UoGBo3NVy+eibIy6AoGw5t23lmjJCMt5lDb+rQp3eBI4kN155Za 32Pul/5coI5DntVArW/+HcbEdPPG/I4GkrwdlwgmqC1QTW58KxVo255ecOzShj+P8PyO 7hrDAWhJsLaESz2otI+5QoTBCRr6HF3Ps7blrXNZ1I7huWQphDUM9H/s9r+49D21FOCf PHz1YNwDIJdFRmn++hcfkhl+WQwKYZyB9HDf3XvsFnFYO/LRXKDC/rXquV6ko80zaM1w kYtg== 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=F9C7bLcLrbxO8TmfQ+GwUTguPV77L9IRoAIvEnXadBemDCKf+TG5R6VfeCrxqMCrAT JP2PBT5/ShlVnFhb0BWHQnysETvT68oRMShQL7+65RH2Pd2C+njyLJ0WIjAAjtVVp5wl JC2Bot/F6f5KROeQgPBTzkyBjJFOaKIO1MEIzeh7dAoC5rXC+7fzVq0ePFxdDhIU4SLe NMyXe+GsmwmEpVfNTomVDLLSc3rpOG/yRfcO+8cjRoqNCMoy5SIfzmjuMqaaJTjlXL8B kCg3kVmB8pFerubVXUMVQKqr7JXxPlc3V0ZrKuuL8z5EQMkaGi64ybYGcMjxHaBjzT12 0kOg== X-Gm-Message-State: AOAM533YaLmRSI2BOHqN2RHiiv/eidz3x0duFU9uZnmxIVqzU37ZdcQ2 nPDPIVIiryUS7P0FbRAevcU= X-Google-Smtp-Source: ABdhPJyD7Jjjl7YwnIn89YRsisWJ54YfknNUVpC5qD6OnAU2gcn//oU8xmj7m+zRozX6UfDwAaDDdQ== X-Received: by 2002:a05:6214:21a6:: with SMTP id t6mr681985qvc.40.1637704682497; Tue, 23 Nov 2021 13:58:02 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:02 -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 rfc3986-validator from meta-python Date: Tue, 23 Nov 2021 16:57:39 -0500 Message-Id: <90eea9834123f022de679c62497884722eecb423.1637703810.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 ; Tue, 23 Nov 2021 21:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158633 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 Tue Nov 23 21:57:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 330 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 B5493C433F5 for ; Tue, 23 Nov 2021 21:58:04 +0000 (UTC) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by mx.groups.io with SMTP id smtpd.web09.860.1637704684261792149 for ; Tue, 23 Nov 2021 13:58:04 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Kf4svQ3A; spf=pass (domain: gmail.com, ip: 209.85.222.171, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f171.google.com with SMTP id t6so700213qkg.1 for ; Tue, 23 Nov 2021 13:58:04 -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=Kf4svQ3Aj2ZqQvA3ieJxHlhkLURfr3hw5TT7p5Ohk0aMu1YM4WPwB17I5eutTYjo/i hqx8e/ycCnYrRPU5rvrW8c1Cq119fBI9vdpJIBRmmKT8ZNjVFEBtZgPvwygiwec2hXqN BKrbXGVqAjMsJDnwROX/p2inczr8Q4kSYVhvonLM4SSxOnKrPFGpXt4q3Q77aDLWXcW+ oE3L9lmgyEizfvbBWF9ocvxnd98qeLCwZbqBtS9aOSLBuzFHVmk4xs9h1zgGluYcgqNz 5TlBLKZ560bfMGhVEK70Kf5Xe9XA7bvAjjbWQ6F2HwTIUq30To11TQtj5sOnap2kR+vL sKsQ== 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=Y0gXEiiV/VPdDhgebUgvDEhzrhNhtSmpA+wiI44LNWaslFF/VV/aNEilxpjXHTcD4x 5pzjlT+vWHiTeDbnRV9Swrwkb5hZD84tCdT+7g+vClSbv3c3SskQxUoXwvqnfoQh/fjg 1MnbgPEvpu2ehkGbovuT9fEf1N/7BwEUO3xn/wC3v3jMuAJgOsQO1ksfi8kud/Tb2UR0 BUcF50x+ZOBKjSFexvhWSjMIcBtQCuZtzWJQV5nfoF6rExCdyCjmb9mIhLb03g65aiM3 +vmqsOwfbsOUIvdaXydKLDmzTV3mDPNSTOS1W7yVTJ3KYZZwLSs2D0anuEEtYse6kRme l2eA== X-Gm-Message-State: AOAM530Jdk+zeAUo5h8BmMVCHpfOR21qbA/lfn0x6Kzztxu+TtEwQ0X0 ofeM4O2j+3tytWGO8AhLeVI= X-Google-Smtp-Source: ABdhPJy6M84gnQI0TY+DbsBvlCR9Lg90q7fIN5ueJjfrH/9oFoVh3amKzad7+LUbRiNmudvAeqdOgQ== X-Received: by 2002:a37:9244:: with SMTP id u65mr773696qkd.46.1637704683359; Tue, 23 Nov 2021 13:58:03 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:03 -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 webcolors from meta-python Date: Tue, 23 Nov 2021 16:57:40 -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 ; Tue, 23 Nov 2021 21:58:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158634 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 Tue Nov 23 21:57:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 332 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 AF425C433EF for ; Tue, 23 Nov 2021 21:58:05 +0000 (UTC) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by mx.groups.io with SMTP id smtpd.web12.810.1637704685100660963 for ; Tue, 23 Nov 2021 13:58:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AasgACou; spf=pass (domain: gmail.com, ip: 209.85.222.170, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f170.google.com with SMTP id d2so632747qki.12 for ; Tue, 23 Nov 2021 13:58:04 -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=AasgACouUs3+aoIrGgZWE72tqBuKOKBa18hS1yvT4J3+AjB/eqBSIKIotUvwSMRrHe erRt3UnzpvGOzptFXfC/krlxwO9i+mmlS25d4o4vzJbET+KwLlgTuUN1nqfOQhx17e5x EAly5wxt3D4DBdV33gvA0QFg/1AEgL4RwFsM8Rh2Krk75PzA8XOFw3ONyjHxYqyrgcAN qk0RPsZwLe/xGha15q5NQO/PVX5i9mBh7sYHj51VNmkGSSZt3LDNWYhUS890EQbhDaNF wEFZf3iEL8IXOy621da9vn0d519nh06t4+E5V8rq9BI7anTt1b4jk/xPUK7qlceRnQjJ mW2Q== 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=29Wdxp8D6QZgHuBTUZTx+P6jbousu4S90dMfXV2hN7bE12AT3aN1riMilfVZ7oJVv1 jtZzqenSAhejPGXwWqo5Cj5uKXHa8BbU2UDHySqSeG/VOXIxNsUFm1mbTaZjSdWXXZvX /ODm1W032zK4WX1oK5PzKhsqEiUER8+UzZunHuSv+/Eec694v61KOioN49j67XovnW3i siQvYNfO5K9a5C6CIMohjNNu2RlChLFCXZyUuISZEYy6Ui4qFP2P/TXIirYS+sya9BVi YwVERSztElIdzLHaiYtkuXtVGNGjovb+lmJYjvDiOCspdN/mkPoQEJn2sy3ilL2371/r zH3A== X-Gm-Message-State: AOAM533vMg/2VIQzFyxM/vVysdTp11ydAdw+feA0STuDUsG+AMaGydMs D1RKQziLLhHceBISU2D9y5w= X-Google-Smtp-Source: ABdhPJwmmtouECRuJmS9DZKu+GfxazvX383cEALZQ8A7lu9a+UFT9bcjAkRr01BujwSsAUOZtK//3Q== X-Received: by 2002:a37:9f46:: with SMTP id i67mr727824qke.254.1637704684245; Tue, 23 Nov 2021 13:58:04 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:03 -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 ruamel-yaml from meta-python Date: Tue, 23 Nov 2021 16:57:41 -0500 Message-Id: <719f36203a73e361db431605378787f8aabe5d28.1637703810.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 ; Tue, 23 Nov 2021 21:58:05 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158635 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 Tue Nov 23 21:57:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 333 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 B7026C433EF for ; Tue, 23 Nov 2021 21:58:07 +0000 (UTC) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by mx.groups.io with SMTP id smtpd.web11.878.1637704686800209275 for ; Tue, 23 Nov 2021 13:58:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kYG0EonC; spf=pass (domain: gmail.com, ip: 209.85.222.173, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f173.google.com with SMTP id a11so626968qkh.13 for ; Tue, 23 Nov 2021 13:58:06 -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=KsYyjFuYi+3MXknarhS6G6OJtWq9QOmgdnREfpv7snE=; b=kYG0EonCuVmi0tl2DiLaS5l+KWk/BooY5DgzFMTvI+mg0WkTEaykPPjYO/Jp9QWdr8 X5hYX5Il4V5YiD7voOVDC+zxsACIJrAl/jUeu00u+LYjOQSYr+ApQhNhU9//WupLmZnf JHS2PWOhYr95TmOPl8cyHNVptsvjL/qthcWD6j3r8oQFl6G4fIbqyVtZx2/8/Gv3ib/P CgrbSNB+vzkMmfAOWVBFwBYqY4xDzajj0iyeuKsSFpUVcUs8IC45g6Fy2vdoX8TcIprP I5ZPsC3yujvbR4UipoSK2Bh7Fd2+dzLkuR3/avjEo7HPWM2rhFhJpOv7d0tvwbscToIh 1OiA== 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=KsYyjFuYi+3MXknarhS6G6OJtWq9QOmgdnREfpv7snE=; b=jNehZVKK4nJmN3ik2F6mEvSINTZUctb8TO9YL96NkHX83hN4dInp5YeQil4qqNEShQ EOd0uDtjTW1AWhKlvYffyyDlwNmTVcN66qB9iIw6g1MQdu4DVemBzDvlwLBGRaTX9Eqm hFAwOsyK+QiuuARWHbTO1XJskKpdtBg3FhKkqXS9nDzIdpoRQr4UxtRZVVld2+PNYfUY uTe2U09jmwmhE6qAXHvqSCqHBbHt+hQGxjhN3eNQ1kXUqx13MQSkVPeawAnIDOiD3vdd 7lw6x9tgzylBIWt4rziCEwYoOerfb6hvxybwAb0CA/SVPH7NUlN6qVAhaeC9bSWSQWMz ZjGg== X-Gm-Message-State: AOAM533/+Ag1E66dHEJtgfxCf/lOKDy62Iyti7vHeGFswh78G6+Clonr FeGp2Lnhvwtu5RO3GIAZ4CA= X-Google-Smtp-Source: ABdhPJxb0giUwjJYEGWsd+Pl5IgWJ6CllSgAjA/PmNdo3+cmP1G2rXtuMc3PG0JSfMAMehmbdTV1UA== X-Received: by 2002:a05:620a:22d7:: with SMTP id o23mr729651qki.222.1637704685957; Tue, 23 Nov 2021 13:58:05 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:05 -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: Tue, 23 Nov 2021 16:57:42 -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 ; Tue, 23 Nov 2021 21:58:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158636 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 5423358e77..3919c5ede6 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -597,16 +597,20 @@ 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-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 " @@ -642,6 +649,7 @@ 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-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 Tue Nov 23 21:57:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 334 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 AFBECC433FE for ; Tue, 23 Nov 2021 21:58:08 +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.web10.823.1637704687682703720 for ; Tue, 23 Nov 2021 13:58:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YHF83PoZ; 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 q14so686320qtx.10 for ; Tue, 23 Nov 2021 13:58:07 -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=YHF83PoZ+5buYpd0HkwojMxtDR5l+lll+sx8IJfyqjUrsGPdouW6YCEaD7UhsHU2Ed OXAXGNpRpaACOfYSH749JFMOm1RmY5xXjgbMdTSHsZIzX5bqz68d1+0IbG7VLWgJYKS3 CqdzUGy4ovK6+vicmoK4rBKPVwXUhA1WgkVmMjJLtqI1V7j9uaW9Ny4N3aISARaB9eN/ L+orSyceROHckrtDz/I35XpTJTsMxXktdSWVW7MQ9o3j1kr4XKYWCfYOYxGp18yrkBvv Qs3xf21d5rz9VETBKS0+56ec8mifdgQo+NXVFsiH3UW+VhRvfmm8+KRWsMr0iH6HMObY otJQ== 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=vfXcd+R14CCZyisYAKy8dHKQOuKdzyAQ9GG/+FzNTvjputCKQRgU8u/IWeuGRrbAho gZ91fINDUmzCPfg6qLNqJ7coVKPeVnOrUoKLhh5FSaXRcO9KfH95xd0eBEvYOU3fRotf cPxeXTwtl3rpL0VAqzNrqAnt0Op6DktYsQZZio+AJ69nQiHlWxXoZI1HRQ0psBuVpdyH IujvgtVHkeX3tOrWDbkGUmzLyXwgadBdxnL6qGRJEGYwd3Xige0cmWN6ZaL2fIUsWSxy CykkN59jk2i3tEY8bo2Z0k29RhIeQcSyABJ2g3IB1BtiGFwnZuHpVI8V/s8+FvGSDbCW wRxA== X-Gm-Message-State: AOAM530cjAxKcBQroTsXBI0gMM8YOA7WSFOb/G9VrBhFjJvcso9yUWYt XO2FcCOHMuAMbzHV7TwXFE4V42rgcldjEw== X-Google-Smtp-Source: ABdhPJx/xGvxAMWUBd9cIwKWuLHJIAMtFvjgt3xA6LvwBWx9xkRpMip/7q54h82RPN7+wcE1GdJuhA== X-Received: by 2002:a05:622a:1d4:: with SMTP id t20mr946499qtw.84.1637704686809; Tue, 23 Nov 2021 13:58:06 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:06 -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: Tue, 23 Nov 2021 16:57:43 -0500 Message-Id: <0f6b65320dc8949c11afbdf81cc1980ceca94762.1637703810.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 ; Tue, 23 Nov 2021 21:58:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158637 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 Tue Nov 23 21:57:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 335 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 B5E1EC433F5 for ; Tue, 23 Nov 2021 21:58:09 +0000 (UTC) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by mx.groups.io with SMTP id smtpd.web12.813.1637704688662123513 for ; Tue, 23 Nov 2021 13:58:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qttcxyWC; spf=pass (domain: gmail.com, ip: 209.85.222.173, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qk1-f173.google.com with SMTP id q64so672272qkd.5 for ; Tue, 23 Nov 2021 13:58:08 -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=I2U1E2krX92EOx6o7PXCPaZFuYVqEBwSUdzULcXWtMg=; b=qttcxyWCF7x/6uwFULz7NqE+7VeLYJDbXTjYi+R/FZ43gSc2570XjLs487RSs5v/l4 JOpB11PMbzM+uLsLwdobcdhzN6+eXC0y6Y5hmsDyVWHKY/MEc2fLGjjoSxReBvTVfD7+ JwGmVOQtH71voGd2Si+pd0rmUv7n5eG0gzWmNTwof1Zm+Dg7pRXlXomRnsd1LTCSFZkQ SmTr0A96ckH1vHGJ9/L1Sofgs3cfkLg3fAXVXfgtWlHzyFVZVgIX1QlAz9dhC9x+nb9k MoZKqFokC+5lraflASsWI0qcTWWYzHhJJKKkMnhh5IBQE62HQ5bxslALddILLBVIGwL5 lsWg== 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=I2U1E2krX92EOx6o7PXCPaZFuYVqEBwSUdzULcXWtMg=; b=SWTZjrYohBvOUtsSmac1dCcyZyYR6UcwQe/EBpBvKkhMqJSJFrtVPjhWpLaQM7kdva gQsSQN/YZbq1GAx4a0+/b+5Vegq3r1ew+MR17t+rdYjirP/kQUEcUWCmAiY5KORnYiiS okTYg6tvUN5U/dJxN36K4ppf0zZOXew38FosvTSosdwwv5oJ3wzy0pc/bGC5DcMitEu9 NkfGmYcDO1gPrKBpqSxRjPt/1POQ7B9egu591whXVNCz9VB1d10ZcLYdcacbkuq+UOYP 9OBQC70xaGJn0yyqi8WrM2VQEii4uxTfZO9vi/VHhfHkHI2a9eU9eWIDZX6QiHIGrVT1 Fu9g== X-Gm-Message-State: AOAM530P8pTjQUod2PWwZdNU2unVx0aXQdzM0HdaSyt/eVEhVcvgIi/0 ym8PsGjCTe+IOI+TDOziLITJY0U4Rce/uw== X-Google-Smtp-Source: ABdhPJzLECOr28GqNKooe6mtuWj3DwLz3Vq3t4caWjmAx2bLFUTtCp5pKmK3idKgtBblsw7oSqXyLQ== X-Received: by 2002:a05:620a:4489:: with SMTP id x9mr746404qkp.38.1637704687791; Tue, 23 Nov 2021 13:58:07 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:07 -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: Tue, 23 Nov 2021 16:57:44 -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 ; Tue, 23 Nov 2021 21:58:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158638 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 3919c5ede6..ba7a47c30d 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-extras = "Oleksandr Kravchuk " 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 Tue Nov 23 21:57:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 337 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 B5F18C4332F for ; Tue, 23 Nov 2021 21:58:10 +0000 (UTC) Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by mx.groups.io with SMTP id smtpd.web12.814.1637704689418143370 for ; Tue, 23 Nov 2021 13:58:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MwYBUjNo; spf=pass (domain: gmail.com, ip: 209.85.219.53, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f53.google.com with SMTP id j9so291119qvm.10 for ; Tue, 23 Nov 2021 13:58:09 -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=C6d8B2omlg6Sj/OABpX2midY7BIH2EsaxKUKfsueuEs=; b=MwYBUjNoOfadWq1VSXPyI4oJd5j2unUJAdCfPzPQyVs6XjiuXVy2t3oNibGW2HMQUt 5nASVdBzTXXyEf7f5pVRJyn5YxH5+T/MIOM8MRFlclUWBte7pT804cYhEvgAB0VxM1Zr 3UKhoCjmVQwTQuaXa2kdu4tLrJoReVnVaKOv4oHUAufRNIRYMC/T0Xi4PGrKPzeMdNhD PcfeCIoAELGbgTIbreJ6T/yuAxuQyg6BNQ1MBjLsOznWb6yhYteagnDCKuKgEt9FO9xl /eWOwWtIhmUVUebbbWahMsyokrcJriM4ZtCWWuTwqCQZjm33nxhQyyXKVXyTz3I9EXOA ahrA== 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=C6d8B2omlg6Sj/OABpX2midY7BIH2EsaxKUKfsueuEs=; b=WwsL772iQtq3U8SA+T2i8AqfTF+PpIMv5YOjuzMUxkcVYxCp5kAatwDcZzAGzXADav AsBMw6VFKAGjoQd+hXZVdfW7RYnPD1lwItX8T0SBJWhJ1IJV2kQ4d8uo4Bdna1s/kWZQ yQdUa6/1GNtB1PlGw/pa8yhvFaovOFY7t+ZSE7E21n66PIGCpe1yaXtQW1NeLng6FGtG hetoUpeTS5uDGDo0n2DSiHru7Fd4w6HixQgr3llnOr0q+U7bu2R3GwqOtjD4kWkJOOwx tyhLySbQAV2lXtX8EdwPhVd/SiWpJYha++AzzmEGsE63Isi14b9xcABiZl9l7wW+kpyR haIw== X-Gm-Message-State: AOAM533D5917hozfCPo5SuEKRTH3EGlUOF1ESKSvWZbgROkKtvVcOCr3 SY1xKl7mcwm2c4YM4bbZtyg= X-Google-Smtp-Source: ABdhPJxQ0eWBvDJgxnNJN1cFn9ko4oshsR5gHd4m9eor2gFhcKeIHAuYRKCjiN+KghCg5yTmV9Lvvg== X-Received: by 2002:a05:6214:c8a:: with SMTP id r10mr680170qvr.38.1637704688567; Tue, 23 Nov 2021 13:58:08 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:08 -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: Tue, 23 Nov 2021 16:57:45 -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 ; Tue, 23 Nov 2021 21:58:10 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158639 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 | 10 ++++++++-- 1 file changed, 8 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..858772ba41 100644 --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb @@ -39,8 +39,14 @@ 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 ??= "" +DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', 'python3-dtschema-native', 'python3-dtschema-wrapper-native', d)}" COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv64)" From patchwork Tue Nov 23 21:57:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 336 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 B0A1AC433EF for ; Tue, 23 Nov 2021 21:58:10 +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.web10.824.1637704690210533735 for ; Tue, 23 Nov 2021 13:58:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KjIYqhoq; 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 kl8so314422qvb.3 for ; Tue, 23 Nov 2021 13:58:10 -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=KjIYqhoq/MOk9zTz7UxOLQIcKEeG3Mhj26MUr7W7X9B4gcVfm1ZCV2qmYIQg2glnss 7Lfs7qfYIfPwCmYaNUcrdSGn/Y0x0dGJSyZlCIcM34glxt06qYVJwY6VRoV47qyNOoQF iKtZKr7O6OzkndOxXysAHqDogxZc5AuPq4RFCbgNhlRyO10Fbj0zC49GRYGlmmQGU04w ZfgUmQJTpY2MojShXqV8l3ng8h47o0fcCo90jYWBNxnx6h01/eIE9pjFmWSdGEAt9FKy /DM5QkeLO6TjK8kck0+F+rvcg2YMR6bUnXamJcZqmeCH/bcdFjTq3Y73hOJozpWWMRAT Ad+g== 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=be6+MPG9HtLTPPge2U8MmRIyBqok9SHTT+Jr3s62sy3HxKJBeTevwXtqwW8TDzGGo/ iVBMgrR5jMCR9Z8fCp5XkLXUWUXTzfBuowKcGGZBEh/6gmYOgfBC/PJyiHtLcBKvg6AI SRvFNt5d/sngQNzEDmGNnIiv3t3Vw6gKQ/uRBIJTYgeQ3qmPrS2NQ+SGD3j9qx8vZb9M ZDxoYTqqZSxrpJ8JdapT0M+gPoFwtzvbYnbOShcFWhGQWUHNvk1ooJgfTOEZ1L9kPzwY 7XBFrOf/PjDrsTcKtkr8QVMMFwUGuCj9XdRSqPnUBvg2ViXnY8iR8mb2diSxxv8TmPTf McQQ== X-Gm-Message-State: AOAM531FpudX50uNa1FRicROSPgvswJ5HLUCzlPfiYhSgvFdn47X60b8 CrTkb5XqOfyR7RgcmzNToaw= X-Google-Smtp-Source: ABdhPJwbEMHKnMEJooUOQMybIjbLpYvn2eTuVIOYtHTMj7puiVpgZyXHb6KSCJ/2I469BGfcbrB7+w== X-Received: by 2002:a05:6214:2a8b:: with SMTP id jr11mr875086qvb.19.1637704689377; Tue, 23 Nov 2021 13:58:09 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:08 -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: Tue, 23 Nov 2021 16:57:46 -0500 Message-Id: <0b50e844e37c9fbdbafec143785488d5678352ca.1637703810.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 ; Tue, 23 Nov 2021 21:58:10 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158640 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 Tue Nov 23 21:57:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Ashfield X-Patchwork-Id: 338 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 B6405C433F5 for ; Tue, 23 Nov 2021 21:58:12 +0000 (UTC) Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by mx.groups.io with SMTP id smtpd.web09.862.1637704692026792550 for ; Tue, 23 Nov 2021 13:58:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CRgjlC4b; spf=pass (domain: gmail.com, ip: 209.85.160.170, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qt1-f170.google.com with SMTP id t11so717175qtw.3 for ; Tue, 23 Nov 2021 13:58:11 -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=CRgjlC4b34VEnWsClXv510kUIZesLjwxZG2cBq4jAdQDLbGwwBYiH2zHXw/mSGogjJ 7hotszLijkVtgMs3aBf5zPoVcea2n+qWZg4qB4nBX9/TsdNyYZe48SMrifRx0ISwbHoF Pibo0eN9Moe1TdUAW2Nihyzfcg9S9jVrnebPUAJGTvO4Cw0wNP1lbA1+n6fsojhb15lf QjiIVXJtq4MroWgbxF4LsUpy5Zp7DcsqR8+E4BF/m6+0cnuFzYrytH3wqm6ruITdxwr0 AjGJfpdfHce/4hYugDW3ANNM391NDELG4chftmB1yW5slz+29MFhsiN8rBIL0etvjYLq tM1A== 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=Q7KMahpa01mFTsNbT6OW7OC8r0FupplLQBGl3vsf2CSGxwp9QxpfVfnAhYe2BLctpI 9R5YnkzMT/ncPl/qHwsv8WZC3SxDTqz9pQ7/dRa9zRfwrpIwoLAt0Fhf/OJPrl8LFpvx 5oIn6JRhaxMvoVMASiW9Xb1tqCdcZs8Y7k+TLvTBiJPzh0hjI+/OS4KG/+R1FHdwzBaZ MPfKTxFPCFBqW2rrLR1LKdUFFTOQsgsCpzh9UnVP7FsyXWFQsiOBwlxKgo2AEeQ8iWKo GPp2NPfvUb4oubqxlEr8DK5XQbBJ1REZYB03qFRRCbO8IfiJT5lC7fZUTeZSkzmB4S9W PlBg== X-Gm-Message-State: AOAM5317MpDC1Krbaht2hZ/ATXjQc0QYzVUavaG5rNYt3fLgRo/9f3mj JKHSo7XxuLSaq5UNOC23IJAJuwIAhpA+xg== X-Google-Smtp-Source: ABdhPJyEoIX/Ryk8lHZaZeRV6RL3y3wgZ1+ADErg6wH9gWUImgz9CVENCLgGEVfEPD4sWMCGLBSbhQ== X-Received: by 2002:a05:622a:1a05:: with SMTP id f5mr832671qtb.283.1637704691020; Tue, 23 Nov 2021 13:58:11 -0800 (PST) Received: from build.lan (cpe04d4c4975b80-cmf4c11490699b.cpe.net.cable.rogers.com. [174.112.63.222]) by smtp.gmail.com with ESMTPSA id m9sm6395640qtn.73.2021.11.23.13.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 13:58:10 -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: Tue, 23 Nov 2021 16:57:47 -0500 Message-Id: <8cdf4e7f12de93155719d03a3cf27176993b28b9.1637703810.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 ; Tue, 23 Nov 2021 21:58:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/158641 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' )