summaryrefslogtreecommitdiffstats
path: root/meta/files/bitbake-setup.schema.json
blob: 7030f1d6d55801f7ecaf9a53369fb3d2c28fe579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "description": "Schema for bitbake-setup configuration files",
    "type": "object",
    "required": [
        "description",
        "bitbake-setup",
        "version"
    ],
    "properties": {
        "description": {
            "type": "string",
            "description": "Description of the bitbake-setup configuration file"
        },
        "sources": {
            "$ref": "layers.schema.json#/properties/sources"
        },
        "bitbake-setup": {
            "type": "object",
            "description": "BitBake-setup configurations",
            "required": [
                "configurations"
            ],
            "properties": {
                "configurations": {
                    "type": "array",
                    "minItems": 1,
                    "$anchor": "configurations",
                    "items": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string",
                                "description": "Name of the configuration"
                            },
                            "description": {
                                "type": "string",
                                "description": "Human-readable description of the configuration"
                            },
                            "bb-layers": {
                                "type": "array",
                                "description": "List of BitBake layer paths to include, relative to the layers download directory",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "bb-layers-file-relative": {
                                "type": "array",
                                "description": "List of BitBake layers paths to include, relative to the directory with the configuration file",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "oe-template": {
                                "type": "string",
                                "description": "OE-template configuration"
                            },
                            "oe-fragments": {
                                "$anchor": "oe-fragments",
                                "type": "array",
                                "description": "List of BitBake configuration fragments to enable",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "oe-fragments-one-of": {
                                "type": "object",
                                "description": "Mutually exclusive bitbake configuration fragment",
                                "patternProperties": {
                                    ".*": {
                                        "type": "object",
                                        "required": [
                                            "description",
                                            "options"
                                        ],
                                        "properties": {
                                            "description": {
                                                "type": "string",
                                                "description": "Human-readable description of the fragment category"
                                            },
                                            "options": {
                                                "$ref": "#oe-fragments"
                                            }
                                        },
                                        "additionalProperties": false
                                    }
                                },
                                "additionalProperties": false
                            },
                            "configurations": {
                                "$ref": "#configurations"
                            },
                            "bb-env-passthrough-additions": {
                                "type": "array",
                                "description": "List of environment variables to include in BB_ENV_PASSTHROUGH_ADDITIONS",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "additionalProperties": false
                    }
                }
            },
            "additionalProperties": false
        },
        "version": {
            "description": "The version of this document; currently '1.0'",
            "enum": [
                "1.0"
            ]
        }
    },
    "additionalProperties": false
}