]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
meta/files: Add a jsonschema for bitbake-setup configuration files
authorYoann Congal <yoann.congal@smile.fr>
Fri, 24 Oct 2025 00:16:18 +0000 (02:16 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Oct 2025 16:58:15 +0000 (16:58 +0000)
commit15107ba12ff35b27c2c0ae5a9dcc9c1418f55b13
tree27e4dcfbcd27b8870fed67f57cf1eb9ab09927e7
parentc84a8958f30bbb982656ddcbe7476f6f81e1a6fb
meta/files: Add a jsonschema for bitbake-setup configuration files

This schema is a bit loose and should validate any configuration files working with
bitbake-setup but, also, some broken ones:
* If present, a "bb-layer" can be an empty array.
* bb-setup need at least one of "bb-layers" or "oe-template", that is
  not enforced in the current schema.
* bb-setup accepts "configurations = []" but it results in a impossible
  choice in interactive mode. This is rejected by the schema.
* In each configuration, "name" and "description" are optional but the
  flatten configuration must have them. This is not enforced by the
  schema.

To test a configuration files against this schema: (for exemple to
validate bitbake default registry)
   $ pip install check-jsonschema
   $ check-jsonschema -v --schemafile meta/files/bitbake-setup.schema.json bitbake/default-registry/configurations/*
  ok -- validation done
  The following files were checked:
    bitbake/default-registry/configurations/oe-nodistro.conf.json
    bitbake/default-registry/configurations/poky-master.conf.json

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/files/bitbake-setup.schema.json [new file with mode: 0644]