From patchwork Tue Feb 14 18:30:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 19557 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 A6EB3C64EC7 for ; Tue, 14 Feb 2023 18:31:17 +0000 (UTC) Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) by mx.groups.io with SMTP id smtpd.web11.2098.1676399473175128371 for ; Tue, 14 Feb 2023 10:31:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=C5bGkq2b; spf=pass (domain: gmail.com, ip: 209.85.219.43, mailfrom: twoerner@gmail.com) Received: by mail-qv1-f43.google.com with SMTP id nd22so8481561qvb.1 for ; Tue, 14 Feb 2023 10:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=3SIeRNr/ccvA8qP/lD2lRJFg3rQvDfCVmMKncwNRHHE=; b=C5bGkq2bmq9jPw2IsptTBrZHlJTumLl31xmol6X3iTXVUV280iT5Vvmk53G1wXUYzT 6fceGO1apPklAuN2or9LFGMVGX3vS99W+lROATQg/wwS8PNMVtNEIfNV8y3hi5cecQ7/ PY6j0LPjEnvDnhylAL6ACIYsd184T0XmvU+hHokOb0RTzcaEvVz8xDMY+fxw3gmVSNnN s651HZiiRvfWxiHhGQVXsDvYmpSX8TzeR2YIzQnMzUvwFZufmvhC7tUaXtd1ZHj/NE48 laeFonMP3JegEVBcrOY5gSYarOq8FHqj9dKnnCVxv/9ZobmdegY1iLyAP0tiTkN/AolV fTbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3SIeRNr/ccvA8qP/lD2lRJFg3rQvDfCVmMKncwNRHHE=; b=6LX8DlT07+HuQi9w/kLI9xi+9vlkz0YpQj3ei1wZk7PVPiAH3r2Wkym9C0Tri1aD88 hmeG5+GX4gj+dqo0lG9HWR3hbSmT4wnlCSrT4BPrPwDYe9yo8XMGsWnBltHLzpWFg24P F/ftKlm36ZFnVlUb1goP2chG7BrfsaBN0Tr3S5++Q0MGIjPVeOnAFKPglov9dc5nLX/I /iMVJncEIwk/mOCIl+IqUD+ZAy7/GdqW6BD1M/61byLP3KWwrLRNM2P6dxlHoN0XspwD 9f64PCxsSlvxd9tLn5CpLDLuKDYPW46TXjtHW0Sp0W7dIck7qvBVRZXmbsseOnZEQskJ 82uw== X-Gm-Message-State: AO0yUKWmqaOyEPzypmQOrnUN5wtGk/8sMEM6/YTLiaytktXUWLljmS4C wM2vZ22rVIeIFYrwL45caldPvPfNZ/8= X-Google-Smtp-Source: AK7set/07c8WBVq0v1FFfWnJvPIsSb5m+gsLUdoDDh1EzVTiy1BgSO3Ajeq4bwcJogUZ/lcHOtHWrg== X-Received: by 2002:ad4:5e8e:0:b0:56b:fb0d:d8f0 with SMTP id jl14-20020ad45e8e000000b0056bfb0dd8f0mr7557191qvb.9.1676399471563; Tue, 14 Feb 2023 10:31:11 -0800 (PST) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id e7-20020a378207000000b0071a49ac0e05sm12184387qkd.111.2023.02.14.10.31.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 10:31:10 -0800 (PST) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Subject: [PATCH v3 1/4] dtc: version bump and add python wrapper Date: Tue, 14 Feb 2023 13:30:58 -0500 Message-Id: <20230214183101.33761-1-twoerner@gmail.com> X-Mailer: git-send-email 2.36.0.rc2.17.g4027e30c53 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, 14 Feb 2023 18:31:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/177170 Bump the version of dtc from 1.6.1 to to 1.7.0. Add support for building the python wrapper around libfdt. Signed-off-by: Trevor Woerner --- ...tdump-fix-Werror-int-to-pointer-cast.patch | 40 ------------------- meta/recipes-kernel/dtc/dtc/0001-meson.patch | 37 +++++++++++++++++ .../dtc/{dtc_1.6.1.bb => dtc_1.7.0.bb} | 18 +++++---- 3 files changed, 48 insertions(+), 47 deletions(-) delete mode 100644 meta/recipes-kernel/dtc/dtc/0001-fdtdump-fix-Werror-int-to-pointer-cast.patch create mode 100644 meta/recipes-kernel/dtc/dtc/0001-meson.patch rename meta/recipes-kernel/dtc/{dtc_1.6.1.bb => dtc_1.7.0.bb} (51%) diff --git a/meta/recipes-kernel/dtc/dtc/0001-fdtdump-fix-Werror-int-to-pointer-cast.patch b/meta/recipes-kernel/dtc/dtc/0001-fdtdump-fix-Werror-int-to-pointer-cast.patch deleted file mode 100644 index 4c3e34b1ffd2..000000000000 --- a/meta/recipes-kernel/dtc/dtc/0001-fdtdump-fix-Werror-int-to-pointer-cast.patch +++ /dev/null @@ -1,40 +0,0 @@ -Fix the build of fdtdump with mingw. - -Upstream-Status: Backport -Signed-off-by: Ross Burton - -From ae0ce1fa7f4d679b5f8df1fc0e797246e43547fe Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= -Date: Wed, 25 Aug 2021 16:13:50 +0400 -Subject: [PATCH] fdtdump: fix -Werror=int-to-pointer-cast -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -With mingw64-gcc, the compiler complains with various warnings: -error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] - -Signed-off-by: Marc-André Lureau -Message-Id: <20210825121350.213551-1-marcandre.lureau@redhat.com> -Acked-by: Rob Herring -Signed-off-by: David Gibson ---- - fdtdump.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/fdtdump.c b/fdtdump.c -index d9fb374..483f367 100644 ---- a/fdtdump.c -+++ b/fdtdump.c -@@ -21,7 +21,7 @@ - #define MAX_VERSION 17 - - #define ALIGN(x, a) (((x) + ((a) - 1)) & ~((a) - 1)) --#define PALIGN(p, a) ((void *)(ALIGN((unsigned long)(p), (a)))) -+#define PALIGN(p, a) ((void *)(ALIGN((uintptr_t)(p), (a)))) - #define GET_CELL(p) (p += 4, *((const fdt32_t *)(p-4))) - - static const char *tagname(uint32_t tag) --- -2.25.1 - diff --git a/meta/recipes-kernel/dtc/dtc/0001-meson.patch b/meta/recipes-kernel/dtc/dtc/0001-meson.patch new file mode 100644 index 000000000000..10c4f8706194 --- /dev/null +++ b/meta/recipes-kernel/dtc/dtc/0001-meson.patch @@ -0,0 +1,37 @@ +From faa02d4a60859089017bf92e0e3f49d600c44d73 Mon Sep 17 00:00:00 2001 +From: Trevor Woerner +Date: Sun, 12 Feb 2023 14:37:04 -0500 +Subject: [PATCH] allow pylibfdt in cross + +Allow pylibfdt to be built even in cross-development scenarios. + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Trevor Woerner +--- + meson.build | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/meson.build b/meson.build +index b23ea1b159b2..34a21a6dc783 100644 +--- a/meson.build ++++ b/meson.build +@@ -118,11 +118,11 @@ if get_option('tools') + ) + endif + +-if not meson.is_cross_build() +- if py.found() and swig.found() +- subdir('pylibfdt') +- endif ++if py.found() and swig.found() ++ subdir('pylibfdt') ++endif + ++if not meson.is_cross_build() + if get_option('tools') + subdir('tests') + endif +-- +2.36.0.rc2.17.g4027e30c53 + diff --git a/meta/recipes-kernel/dtc/dtc_1.6.1.bb b/meta/recipes-kernel/dtc/dtc_1.7.0.bb similarity index 51% rename from meta/recipes-kernel/dtc/dtc_1.6.1.bb rename to meta/recipes-kernel/dtc/dtc_1.7.0.bb index 2a6ac089a338..445bf54f8581 100644 --- a/meta/recipes-kernel/dtc/dtc_1.6.1.bb +++ b/meta/recipes-kernel/dtc/dtc_1.7.0.bb @@ -1,15 +1,18 @@ SUMMARY = "Device Tree Compiler" HOMEPAGE = "https://devicetree.org/" -DESCRIPTION = "The Device Tree Compiler is a tool used to manipulate the Open-Firmware-like device tree used by PowerPC kernels." +DESCRIPTION = "The Device Tree Compiler is a toolchain for working with device tree source and binary files." +DEPENDS = "bison-native python3-setuptools-scm-native swig-native libyaml" SECTION = "bootloader" LICENSE = "GPL-2.0-only | BSD-2-Clause" LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ - file://libfdt/libfdt.h;beginline=4;endline=7;md5=05bb357cfb75cae7d2b01d2ee8d76407" + file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927 \ + file://README.license;md5=a1eb22e37f09df5b5511b8a278992d0e" SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=master \ - file://0001-fdtdump-fix-Werror-int-to-pointer-cast.patch" -SRCREV = "b6910bec11614980a21e46fbccc35934b671bd81" + file://0001-meson.patch" +PV = "1.7.0+git${SRCPV}" +SRCREV = "039a99414e778332d8f9c04cbd3072e1dcc62798" UPSTREAM_CHECK_GITTAGREGEX = "v(?P\d+(\.\d+)+)" @@ -17,14 +20,15 @@ S = "${WORKDIR}/git" inherit meson pkgconfig -EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled" +EXTRA_OEMESON = "-Dvalgrind=disabled" PACKAGECONFIG ??= "tools" -PACKAGECONFIG[tools] = "-Dtools=true,-Dtools=false,flex-native bison-native" +PACKAGECONFIG[tools] = "-Dtools=true,-Dtools=false,flex-native" PACKAGECONFIG[yaml] = "-Dyaml=enabled,-Dyaml=disabled,libyaml" -PACKAGES =+ "${PN}-misc" +PACKAGES =+ "${PN}-misc ${PN}-pylibfdt" FILES:${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff" +FILES:${PN}-pylibfdt = "${PYTHON_SITEPACKAGES_DIR}" RDEPENDS:${PN}-misc += "${@bb.utils.contains('PACKAGECONFIG', 'tools', 'bash diffutils', '', d)}" BBCLASSEXTEND = "native nativesdk" From patchwork Tue Feb 14 18:30:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 19555 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 A603DC61DA4 for ; Tue, 14 Feb 2023 18:31:17 +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.web11.2099.1676399473607849775 for ; Tue, 14 Feb 2023 10:31:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EcQFjARO; spf=pass (domain: gmail.com, ip: 209.85.160.181, mailfrom: twoerner@gmail.com) Received: by mail-qt1-f181.google.com with SMTP id h24so18672455qtr.0 for ; Tue, 14 Feb 2023 10:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=cNuP37MxrIXRXzJfyU4SeXy0tQefKWx2vn6DFerqlzc=; b=EcQFjAROvbj/gPaWDm88KJgTkSk9uyXu4CKLoJTHcVxkQ6P1GWboCxJJyWwaznBcps Py1n5jmJjRk80Y/UBwQNOhI/RBMF7KE0k3IOP+8cOhPGAi25t3mrrDg1gJg6t0StBrbG ySjjutYbY+iv0e7KLOfwbTg7RxKoLkzyD4WU7qH56Rij+vOqEm9a3swAc1BVU80dvaYr y4IOqb87Ng7WqusHE8WURqR8U6blKv7aJoUrrry2BP9I+TwnbuLF4nSsEfy01fSsC2Ph G+7hPbyZPjUgoD7c/siwN8y86vEb/fSnC58lgNjN+YQNc+O/FbBYK4jQNyeklBjZU/NM DqJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cNuP37MxrIXRXzJfyU4SeXy0tQefKWx2vn6DFerqlzc=; b=acgoAj/z7ilL1WSMcN/vTo4Fi5X+U5gxWWezI4qeAY6gpNXTZbzwE2GXrNn5PHuwex 7A8QxZlmjwlhwP5F/u++SQINigjME1kAozGFsw3ENV7yjmPZnmhh6eD2FB7CcFSTfya9 gUbGXYrEKv1BJ0Xae4oTQ8qLQ3gyENuMEBWxY+qRFbBtT1GxOMjV7dskAj0+UbCrEmb3 U3Eg6qtJJW8GqBI4e6pU4RBIWcRS8CiLQtrLIYHg56WPIRgC//dBRskBIfzfV5hAV32E xFPwU/+0Yl+TsL/wgZkqd3uQEMs7uqXMBTWUZSC70WoyesUvnh6B2wvTsV4sjdmgd91I Hmyg== X-Gm-Message-State: AO0yUKW/+VoiSzxL1UzTv9TGHGif+stl4lOualBB1rCp8fZa7WqDP7dT +Cf/zviF6uDsIgnHokZ4h9t6ighqaUQ= X-Google-Smtp-Source: AK7set8bPmO5GQ9aSn7Z+/vOFhHh0X7wvJF0gUpsCkj0Sug3O6xocO8l9Q8c0Kqc2UY+oVe4dLJ6vw== X-Received: by 2002:ac8:6693:0:b0:3b9:bc8c:c212 with SMTP id d19-20020ac86693000000b003b9bc8cc212mr750868qtp.29.1676399472326; Tue, 14 Feb 2023 10:31:12 -0800 (PST) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id e7-20020a378207000000b0071a49ac0e05sm12184387qkd.111.2023.02.14.10.31.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 10:31:11 -0800 (PST) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Subject: [PATCH v3 2/4] python3-dtschema: add dependency on dtc-pylibfdt Date: Tue, 14 Feb 2023 13:30:59 -0500 Message-Id: <20230214183101.33761-2-twoerner@gmail.com> X-Mailer: git-send-email 2.36.0.rc2.17.g4027e30c53 In-Reply-To: <20230214183101.33761-1-twoerner@gmail.com> References: <20230214183101.33761-1-twoerner@gmail.com> 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, 14 Feb 2023 18:31:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/177171 dt-schema has a dependency on pylibfdt from dtc. Signed-off-by: Trevor Woerner --- meta/recipes-devtools/python/python3-dtschema_2023.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-dtschema_2023.1.bb b/meta/recipes-devtools/python/python3-dtschema_2023.1.bb index 9767c95d3043..7d69b568514c 100644 --- a/meta/recipes-devtools/python/python3-dtschema_2023.1.bb +++ b/meta/recipes-devtools/python/python3-dtschema_2023.1.bb @@ -10,6 +10,6 @@ PYPI_PACKAGE = "dtschema" SRC_URI[sha256sum] = "8fc8c269e4c57e9d008af7b32cd33b77afd4ea1ac9552bcfa96b41b9e0c52586" DEPENDS += "python3-setuptools-scm-native" -RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987" +RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987 dtc-pylibfdt" BBCLASSEXTEND = "native nativesdk" From patchwork Tue Feb 14 18:31:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 19556 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 B5107C64ED8 for ; Tue, 14 Feb 2023 18:31:17 +0000 (UTC) Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) by mx.groups.io with SMTP id smtpd.web10.2086.1676399474776716960 for ; Tue, 14 Feb 2023 10:31:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=osvoChvl; spf=pass (domain: gmail.com, ip: 209.85.219.42, mailfrom: twoerner@gmail.com) Received: by mail-qv1-f42.google.com with SMTP id t8so1358154qvr.5 for ; Tue, 14 Feb 2023 10:31:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=6uymz/5sllMaseRuw2RkWERs1A3SGqh7YMhZqrlrIQk=; b=osvoChvlGTfcXEvXUIYiY4cuMw7Mzfk5rpmCEBZDcQmjvuD2FMDFZ7VGEdBMzFqR1P 3VFDPv0pr2bYblf5PXhYJKqdHG57mv2WJedGGEWzlVDdvxrfy3zptAxPII4hLpjkcfdA wofLx9UOK5C/ZDOdXJ+ENVFq7KtxHqZY+lAJVMmSAixOOXDeTtOmnKZ17eXTnA3y1BSJ u64ya2iZeO6Hvk/esVr6uVpTSWEvKjnARXX4oS4BGVQ257ggaS47Ck/CJSH1cCMl6VJS Ef4NZkrG6+0U0lN/vbbTcGvtwYpgiuPz6tu7ThSv6zOdj0smRljGKw1TWuEzSR+bwnIn 1OUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6uymz/5sllMaseRuw2RkWERs1A3SGqh7YMhZqrlrIQk=; b=uAUY9OFl/D8dGczAquc+LHlYB8mAQchE0/DBqxeAG5TyjivxBKvzfZvH529R13ghYM aeJtaPH8Se9hrWRgVEWBFBUaQ6qgpD1U4uXK4TIxiWEJyFGrePq3sfZfY8N5ULkGSKqh 2XIvAD2d8DcL7vfqy8R/P0kPVhLH5VDR3QoNbQtQ8oby6a8G+P7w+K+iC2k53bLQOqs2 AmOupEn7mxObLY7BSLQnVqFTYe75uLowA81/0NeF+kO1jN03haPrbXltzjY5QxrDhUws S7r3RKzjh/Zcec333172m7e8gmSCczoyg0U4Sa29pNgMa9r81GbL8RnhPAYq7ea1pomh H+Gw== X-Gm-Message-State: AO0yUKWcLuOo3+X7Rkze+TGGgCqnvHD2l6iAU2gTAyxQnSn+WOdVUEmk iz669UExLzj5pWAAbP1e11gNAHfrovQ= X-Google-Smtp-Source: AK7set9BGpSEujtwvP/BPvcZafMR0cz+s8HKvADYeHqc1w9LAP07hwFvqARSKlBmQHbdt0k97Mno4A== X-Received: by 2002:a05:6214:c6e:b0:56e:ab46:c481 with SMTP id t14-20020a0562140c6e00b0056eab46c481mr761607qvj.20.1676399473477; Tue, 14 Feb 2023 10:31:13 -0800 (PST) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id e7-20020a378207000000b0071a49ac0e05sm12184387qkd.111.2023.02.14.10.31.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 10:31:12 -0800 (PST) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Subject: [PATCH v3 3/4] python3-yamllint: add Date: Tue, 14 Feb 2023 13:31:00 -0500 Message-Id: <20230214183101.33761-3-twoerner@gmail.com> X-Mailer: git-send-email 2.36.0.rc2.17.g4027e30c53 In-Reply-To: <20230214183101.33761-1-twoerner@gmail.com> References: <20230214183101.33761-1-twoerner@gmail.com> 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, 14 Feb 2023 18:31:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/177172 Add a recipe for yamllint, which is used in a kernel devshell for dtb checking. Signed-off-by: Trevor Woerner --- meta/conf/distro/include/maintainers.inc | 1 + .../python/python3-yamllint_1.29.0.bb | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-yamllint_1.29.0.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index ec7ea90d16a6..02aa6cb1b2cf 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -704,6 +704,7 @@ RECIPE_MAINTAINER:pn-python3-vcversioner = "Bruce Ashfield X-Patchwork-Id: 19558 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 B4E6DC6379F for ; Tue, 14 Feb 2023 18:31:17 +0000 (UTC) Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) by mx.groups.io with SMTP id smtpd.web11.2100.1676399475920778477 for ; Tue, 14 Feb 2023 10:31:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LXy9mI4b; spf=pass (domain: gmail.com, ip: 209.85.160.175, mailfrom: twoerner@gmail.com) Received: by mail-qt1-f175.google.com with SMTP id cr22so18564929qtb.10 for ; Tue, 14 Feb 2023 10:31:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=CmZfJxV41cFT2eDUoQbE6t1VJZa6RwXH/AWx2UrLVdM=; b=LXy9mI4bn36bZ5T3tt2+VIPu6z4QZOJITo4u8PofyiLsYwUSnlYcReKTPClxGMTVqJ ZtlOGKu3zpa4JfeaFA2W755RfTLt+UkDAi0xtbiowwEmMBtgMZZMT6fsgx4XYj34Od2V +Jb7psWHQni9/zirrs2nj3/BFOyp/6FQ6JgCEtw0OnOs3p+5WUqMSq4zrF7VvGR4cujH C/F/swz/h/LlLrLXkazbRfIyk0uGbkoUtEQ31aEwBA1wc9MQp7Fh0+JsXta+k1wVKxKA xZMn5xq4hSLuT6EAlPByDCnPP5uP2Hy2nNvRsgZgsMZCmQEKsclidXyk9m42H7gA5eTP j2ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CmZfJxV41cFT2eDUoQbE6t1VJZa6RwXH/AWx2UrLVdM=; b=8Hl1VWycnmXv9HLdPpxLPq3gTKDSNpLSetC3t6iOH8U4z1nhyZPfX3RgC05DrXj53m 5e158v1sAKhSV3pAgsbIF8xYsAmxNdaBfkU2VcZEa9hOgGod4OKBSNCjSr0+o6sWBd6w rrERh0D9rRmxyoqGZamEJS0XSZk9kuhmmbMEABxJgvOmysTPoP9Wv/lghiVM5brzyWUT 7YVUiiumGvEIcj+d2+B3V0LNbiOBISAHzf5WEniYTF00uW0skhBIaHRBXnIqs44nuKYY vjbUl3sg2ho+C2rbwspIwxiX2se8/QerJ1WhiTAtIWgjM94wqSgimTFLQIUtLdr8zGxY E4gA== X-Gm-Message-State: AO0yUKWmUt1de2me1vZneMAbdWE9uFfbYiP0C8I+j/GE6o2lfCPKNoBW Px69s3jf9Xl/PgJTMvMoyzv6ufDYE+w= X-Google-Smtp-Source: AK7set83IzRtSCtc/SB3Xf8Y6oLAYsByiylQHXWDJsNJoZGvfJrjxJtEJSAdbriBNfhlh/d/oExM2Q== X-Received: by 2002:a05:622a:170a:b0:3ba:247a:3fb7 with SMTP id h10-20020a05622a170a00b003ba247a3fb7mr4925406qtk.53.1676399474635; Tue, 14 Feb 2023 10:31:14 -0800 (PST) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id e7-20020a378207000000b0071a49ac0e05sm12184387qkd.111.2023.02.14.10.31.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 10:31:13 -0800 (PST) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Subject: [PATCH v3 4/4] linux-yocto: include tools for dtb in devshell Date: Tue, 14 Feb 2023 13:31:01 -0500 Message-Id: <20230214183101.33761-4-twoerner@gmail.com> X-Mailer: git-send-email 2.36.0.rc2.17.g4027e30c53 In-Reply-To: <20230214183101.33761-1-twoerner@gmail.com> References: <20230214183101.33761-1-twoerner@gmail.com> 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, 14 Feb 2023 18:31:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/177173 Make more tools available to the user in a kernel devshell so they can test and validate their device trees. devshell> make dtbs_check Signed-off-by: Trevor Woerner --- 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 091003ed8299..86046150d5c7 100644 --- a/meta/recipes-kernel/linux/linux-yocto.inc +++ b/meta/recipes-kernel/linux/linux-yocto.inc @@ -63,6 +63,10 @@ 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[depends] = " \ + python3-dtschema-native:do_populate_sysroot \ + python3-yamllint-native:do_populate_sysroot \ + " 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")