[03/20] python: introduce python3-dtschema

Message ID c653e0c3cd0edd038b3c3a2d9df442d2fe5ea745.1637788184.git.bruce.ashfield@gmail.com
State Accepted, archived
Commit d56fcb5806784359a9e81ea5ac4816caaeee7750
Headers show
Series [01/20] linux-yocto-dev: bump to v5.16+ | expand

Commit Message

Bruce Ashfield Nov. 24, 2021, 9:14 p.m. UTC
From: Bruce Ashfield <bruce.ashfield@gmail.com>

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 <bruce.ashfield@gmail.com>
---
 .../python/python3-dtschema_2021.10.bb           | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-dtschema_2021.10.bb

Comments

Khem Raj Nov. 25, 2021, 5:36 p.m. UTC | #1
fails to build for me

https://errors.yoctoproject.org/Errors/Details/618010/

On Wed, Nov 24, 2021 at 1:14 PM Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
>
> From: Bruce Ashfield <bruce.ashfield@gmail.com>
>
> 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 <bruce.ashfield@gmail.com>
> ---
>  .../python/python3-dtschema_2021.10.bb           | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>  create mode 100644 meta/recipes-devtools/python/python3-dtschema_2021.10.bb
>
> diff --git a/meta/recipes-devtools/python/python3-dtschema_2021.10.bb b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
> new file mode 100644
> index 0000000000..f16232d610
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
> @@ -0,0 +1,16 @@
> +DESCRIPTION = "Tooling for devicetree validation using YAML and jsonschema"
> +HOMEPAGE = "https://github.com/devicetree-org/dt-schema"
> +LICENSE = "BSD-2-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=457495c8fa03540db4a576bf7869e811"
> +
> +inherit pypi setuptools3
> +
> +PYPI_PACKAGE = "dtschema"
> +
> +SRC_URI[md5sum] = "d2f0d847ba2ad4d223317ef7304342b0"
> +SRC_URI[sha256sum] = "d09c94d13f46e6674ba11ff31220651ad1b02dae860f5a87905dfac6b8d768d9"
> +
> +DEPENDS += "python3-setuptools-scm"
> +RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987"
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.19.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#158749): https://lists.openembedded.org/g/openembedded-core/message/158749
> Mute This Topic: https://lists.openembedded.org/mt/87290455/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Bruce Ashfield Nov. 25, 2021, 5:51 p.m. UTC | #2
On Thu, Nov 25, 2021 at 12:36 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> fails to build for me
>
> https://errors.yoctoproject.org/Errors/Details/618010/

It was updated in-branch with fixups.  The version in this patch is
known to break on a target build.

Bruce

>
> On Wed, Nov 24, 2021 at 1:14 PM Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
> >
> > From: Bruce Ashfield <bruce.ashfield@gmail.com>
> >
> > 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 <bruce.ashfield@gmail.com>
> > ---
> >  .../python/python3-dtschema_2021.10.bb           | 16 ++++++++++++++++
> >  1 file changed, 16 insertions(+)
> >  create mode 100644 meta/recipes-devtools/python/python3-dtschema_2021.10.bb
> >
> > diff --git a/meta/recipes-devtools/python/python3-dtschema_2021.10.bb b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
> > new file mode 100644
> > index 0000000000..f16232d610
> > --- /dev/null
> > +++ b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
> > @@ -0,0 +1,16 @@
> > +DESCRIPTION = "Tooling for devicetree validation using YAML and jsonschema"
> > +HOMEPAGE = "https://github.com/devicetree-org/dt-schema"
> > +LICENSE = "BSD-2-Clause"
> > +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=457495c8fa03540db4a576bf7869e811"
> > +
> > +inherit pypi setuptools3
> > +
> > +PYPI_PACKAGE = "dtschema"
> > +
> > +SRC_URI[md5sum] = "d2f0d847ba2ad4d223317ef7304342b0"
> > +SRC_URI[sha256sum] = "d09c94d13f46e6674ba11ff31220651ad1b02dae860f5a87905dfac6b8d768d9"
> > +
> > +DEPENDS += "python3-setuptools-scm"
> > +RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987"
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > --
> > 2.19.1
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#158749): https://lists.openembedded.org/g/openembedded-core/message/158749
> > Mute This Topic: https://lists.openembedded.org/mt/87290455/1997914
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
Khem Raj Nov. 25, 2021, 5:53 p.m. UTC | #3
On 11/25/21 9:51 AM, Bruce Ashfield wrote:
> On Thu, Nov 25, 2021 at 12:36 PM Khem Raj <raj.khem@gmail.com> wrote:
>>
>> fails to build for me
>>
>> https://errors.yoctoproject.org/Errors/Details/618010/
> 
> It was updated in-branch with fixups.  The version in this patch is
> known to break on a target build.

thanks, my grinder runs slowly since it builds a lot of stuff, so it 
gets to errors a bit late :). Are these fixes already in master-next now ?

> 
> Bruce
> 
>>
>> On Wed, Nov 24, 2021 at 1:14 PM Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
>>>
>>> From: Bruce Ashfield <bruce.ashfield@gmail.com>
>>>
>>> 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 <bruce.ashfield@gmail.com>
>>> ---
>>>   .../python/python3-dtschema_2021.10.bb           | 16 ++++++++++++++++
>>>   1 file changed, 16 insertions(+)
>>>   create mode 100644 meta/recipes-devtools/python/python3-dtschema_2021.10.bb
>>>
>>> diff --git a/meta/recipes-devtools/python/python3-dtschema_2021.10.bb b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
>>> new file mode 100644
>>> index 0000000000..f16232d610
>>> --- /dev/null
>>> +++ b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
>>> @@ -0,0 +1,16 @@
>>> +DESCRIPTION = "Tooling for devicetree validation using YAML and jsonschema"
>>> +HOMEPAGE = "https://github.com/devicetree-org/dt-schema"
>>> +LICENSE = "BSD-2-Clause"
>>> +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=457495c8fa03540db4a576bf7869e811"
>>> +
>>> +inherit pypi setuptools3
>>> +
>>> +PYPI_PACKAGE = "dtschema"
>>> +
>>> +SRC_URI[md5sum] = "d2f0d847ba2ad4d223317ef7304342b0"
>>> +SRC_URI[sha256sum] = "d09c94d13f46e6674ba11ff31220651ad1b02dae860f5a87905dfac6b8d768d9"
>>> +
>>> +DEPENDS += "python3-setuptools-scm"
>>> +RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987"
>>> +
>>> +BBCLASSEXTEND = "native nativesdk"
>>> --
>>> 2.19.1
>>>
>>>
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>> Links: You receive all messages sent to this group.
>>> View/Reply Online (#158749): https://lists.openembedded.org/g/openembedded-core/message/158749
>>> Mute This Topic: https://lists.openembedded.org/mt/87290455/1997914
>>> Group Owner: openembedded-core+owner@lists.openembedded.org
>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>
> 
> 
>
Bruce Ashfield Nov. 25, 2021, 6 p.m. UTC | #4
On Thu, Nov 25, 2021 at 12:53 PM Khem Raj <raj.khem@gmail.com> wrote:
>
>
>
> On 11/25/21 9:51 AM, Bruce Ashfield wrote:
> > On Thu, Nov 25, 2021 at 12:36 PM Khem Raj <raj.khem@gmail.com> wrote:
> >>
> >> fails to build for me
> >>
> >> https://errors.yoctoproject.org/Errors/Details/618010/
> >
> > It was updated in-branch with fixups.  The version in this patch is
> > known to break on a target build.
>
> thanks, my grinder runs slowly since it builds a lot of stuff, so it
> gets to errors a bit late :). Are these fixes already in master-next now ?

Yup,

Richard picked up the fix after I noticed the failure in my AB run, I see the

DEPENDS += "python3-setuptools-scm-native"

In the master-next version, which was the fix for the target build issue.

Bruce

>
> >
> > Bruce
> >
> >>
> >> On Wed, Nov 24, 2021 at 1:14 PM Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
> >>>
> >>> From: Bruce Ashfield <bruce.ashfield@gmail.com>
> >>>
> >>> 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 <bruce.ashfield@gmail.com>
> >>> ---
> >>>   .../python/python3-dtschema_2021.10.bb           | 16 ++++++++++++++++
> >>>   1 file changed, 16 insertions(+)
> >>>   create mode 100644 meta/recipes-devtools/python/python3-dtschema_2021.10.bb
> >>>
> >>> diff --git a/meta/recipes-devtools/python/python3-dtschema_2021.10.bb b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
> >>> new file mode 100644
> >>> index 0000000000..f16232d610
> >>> --- /dev/null
> >>> +++ b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
> >>> @@ -0,0 +1,16 @@
> >>> +DESCRIPTION = "Tooling for devicetree validation using YAML and jsonschema"
> >>> +HOMEPAGE = "https://github.com/devicetree-org/dt-schema"
> >>> +LICENSE = "BSD-2-Clause"
> >>> +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=457495c8fa03540db4a576bf7869e811"
> >>> +
> >>> +inherit pypi setuptools3
> >>> +
> >>> +PYPI_PACKAGE = "dtschema"
> >>> +
> >>> +SRC_URI[md5sum] = "d2f0d847ba2ad4d223317ef7304342b0"
> >>> +SRC_URI[sha256sum] = "d09c94d13f46e6674ba11ff31220651ad1b02dae860f5a87905dfac6b8d768d9"
> >>> +
> >>> +DEPENDS += "python3-setuptools-scm"
> >>> +RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987"
> >>> +
> >>> +BBCLASSEXTEND = "native nativesdk"
> >>> --
> >>> 2.19.1
> >>>
> >>>
> >>> -=-=-=-=-=-=-=-=-=-=-=-
> >>> Links: You receive all messages sent to this group.
> >>> View/Reply Online (#158749): https://lists.openembedded.org/g/openembedded-core/message/158749
> >>> Mute This Topic: https://lists.openembedded.org/mt/87290455/1997914
> >>> Group Owner: openembedded-core+owner@lists.openembedded.org
> >>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> >>> -=-=-=-=-=-=-=-=-=-=-=-
> >>>
> >
> >
> >

Patch

diff --git a/meta/recipes-devtools/python/python3-dtschema_2021.10.bb b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
new file mode 100644
index 0000000000..f16232d610
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-dtschema_2021.10.bb
@@ -0,0 +1,16 @@ 
+DESCRIPTION = "Tooling for devicetree validation using YAML and jsonschema"
+HOMEPAGE = "https://github.com/devicetree-org/dt-schema"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=457495c8fa03540db4a576bf7869e811"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "dtschema"
+
+SRC_URI[md5sum] = "d2f0d847ba2ad4d223317ef7304342b0"
+SRC_URI[sha256sum] = "d09c94d13f46e6674ba11ff31220651ad1b02dae860f5a87905dfac6b8d768d9"
+
+DEPENDS += "python3-setuptools-scm"
+RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987"
+
+BBCLASSEXTEND = "native nativesdk"