xref: /aosp_15_r20/kernel/configs/xsd/kernelLifetimes/kernel_lifetimes.xsd (revision 1d3556b860e096874ddca674556f5d20fb3a73b0)
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (C) 2024 The Android Open Source Project
3
4         Licensed under the Apache License, Version 2.0 (the "License");
5         you may not use this file except in compliance with the License.
6         You may obtain a copy of the License at
7
8                    http://www.apache.org/licenses/LICENSE-2.0
9
10         Unless required by applicable law or agreed to in writing, software
11         distributed under the License is distributed on an "AS IS" BASIS,
12         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13         See the License for the specific language governing permissions and
14         limitations under the License.
15-->
16
17<xs:schema version="2.0"
18           elementFormDefault="qualified"
19           attributeFormDefault="unqualified"
20           xmlns:xs="http://www.w3.org/2001/XMLSchema">
21    <xs:element name="kernels">
22        <xs:complexType>
23            <xs:sequence>
24                <xs:element name="branch" type="branch" minOccurs="0" maxOccurs="unbounded"/>
25            </xs:sequence>
26            <xs:attribute name="schema_version" type="xs:int" use="required"/>
27        </xs:complexType>
28    </xs:element>
29    <xs:complexType name="branch">
30        <xs:choice>
31            <xs:element name="no-releases" type="no-releases"/>
32            <xs:element name="lts-versions" type="lts-versions"/>
33        </xs:choice>
34        <xs:attribute name="name" type="xs:string" use="required"/>
35        <xs:attribute name="min_android_release" type="xs:int"/>
36        <xs:attribute name="version" type="xs:string" use="required"/>
37        <xs:attribute name="launch" type="xs:date" use="required"/>
38        <xs:attribute name="eol" type="xs:date" use="required"/>
39    </xs:complexType>
40    <xs:complexType name="no-releases">
41        <xs:attribute name="reason" type="xs:string" fixed="non-GKI kernel"/>
42    </xs:complexType>
43    <xs:complexType name="lts-versions">
44        <xs:sequence>
45            <xs:element name="release" type="release" minOccurs="0" maxOccurs="unbounded"/>
46        </xs:sequence>
47    </xs:complexType>
48    <xs:complexType name="release">
49        <xs:attribute name="version" type="xs:string" use="required"/>
50        <xs:attribute name="launch" type="xs:date" use="required"/>
51        <xs:attribute name="eol" type="xs:date" use="required"/>
52    </xs:complexType>
53</xs:schema>
54