]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oe-setup-layers: make "path" optional
authorYoann Congal <yoann.congal@smile.fr>
Sat, 1 Nov 2025 22:57:44 +0000 (23:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Nov 2025 17:39:51 +0000 (17:39 +0000)
commit7f36f0526fae5a81f9bc02e16cc849a2b1ea5797
tree14cef2446eb71d3cb00baf34c67e3c428b221ef1
parent2eed0deab456df4ef8876afe0710c9c89b41d45f
oe-setup-layers: make "path" optional

Layer names and path are often redundant. Allow users to omit the path
key when it is equal to the layer name by using the layer name as a
default value for its path.

For example, from layers.example.json:
  "sources": {
      "meta-alex": {
          "path": "meta-alex"
      },
      "meta-intel": {
          "path": "meta-intel"
      },
      "poky": {
          "path": "poky"
      }
  },

Update the schema to stop requiring "path" and remove it in example for
"meta-intel".

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/files/layers.example.json
meta/files/layers.schema.json
scripts/oe-setup-layers