]> code.ossystems Code Review - openembedded-core.git/commit
kernel: introduce python3-dtschema-wrapper
authorBruce Ashfield <bruce.ashfield@gmail.com>
Tue, 23 Nov 2021 21:23:43 +0000 (16:23 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Nov 2021 16:58:55 +0000 (16:58 +0000)
commita8525391f8a519426c92f0e28895f426bfcb3f84
treec310ecf4b21a70c4a4cae97b19ad71bc5932c710
parentea71e50be2de5b7fc81f466ea5cd48c2f1e0ef6b
kernel: introduce python3-dtschema-wrapper

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 <bruce.ashfield@gmail.com>
meta/conf/distro/include/maintainers.inc
meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-doc-validate [new file with mode: 0644]
meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-mk-schema [new file with mode: 0644]
meta/recipes-kernel/dtc/python3-dtschema-wrapper/dt-validate [new file with mode: 0644]
meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb [new file with mode: 0644]