1123dde15SGeorge Liu# Supported BMC layout types. Reference:
2123dde15SGeorge Liu# https://github.com/openbmc/docs/blob/master/architecture/code-update/flash-layout.md#supported-filesystem-choices
3123dde15SGeorge Liu# - static: NOR flash configured with fixed-sized MTD partitions.
4123dde15SGeorge Liu# - ubi: NOR flash device configured with UBI volumes.
5123dde15SGeorge Liu# - mmc: eMMC flash device configured with ext4 filesystems.
6123dde15SGeorge Liuoption('bmc-layout', type: 'combo',
7123dde15SGeorge Liu    choices: ['static', 'ubi', 'mmc'],
8123dde15SGeorge Liu    value: 'static',
9123dde15SGeorge Liu    description: 'The BMC layout type.')
10123dde15SGeorge Liu
11123dde15SGeorge Liu# Features
12123dde15SGeorge Liuoption('host-bios-upgrade', type: 'feature', value: 'enabled',
13123dde15SGeorge Liu    description: 'Enable host bios upgrade support.')
14123dde15SGeorge Liu
15123dde15SGeorge Liuoption('sync-bmc-files', type: 'feature', value: 'enabled',
16123dde15SGeorge Liu    description: 'Enable sync of filesystem files.')
17123dde15SGeorge Liu
18123dde15SGeorge Liuoption('tests', type: 'feature', description: 'Build tests')
19123dde15SGeorge Liu
20294991a2SKonstantin Aladyshevoption('verify-signature', type: 'feature', value: 'enabled',
21294991a2SKonstantin Aladyshev    description: 'Enable image signature validation.')
22123dde15SGeorge Liu
23123dde15SGeorge Liuoption(
24123dde15SGeorge Liu    'usb-code-update', type: 'feature', value: 'enabled',
25123dde15SGeorge Liu    description: 'Firmware update via USB.',
26123dde15SGeorge Liu)
27123dde15SGeorge Liu
28*cc49878dSJagpal Singh Gilloption('software-update-dbus-interface', type: 'feature', value: 'enabled',
29*cc49878dSJagpal Singh Gill    description: 'Implementation using software update D-Bus interface - https://github.com/openbmc/docs/blob/master/designs/code-update.md.',
30*cc49878dSJagpal Singh Gill)
31*cc49878dSJagpal Singh Gill
32123dde15SGeorge Liuoption(
33123dde15SGeorge Liu    'side-switch-on-boot', type: 'feature', value: 'enabled',
34123dde15SGeorge Liu    description: 'Automatic flash side switch on boot',
35123dde15SGeorge Liu)
36123dde15SGeorge Liu
37123dde15SGeorge Liu# Variables
38123dde15SGeorge Liuoption(
39123dde15SGeorge Liu    'active-bmc-max-allowed', type: 'integer',
40123dde15SGeorge Liu    value: 1,
41123dde15SGeorge Liu    description: 'The maximum allowed active BMC versions.',
42123dde15SGeorge Liu)
43123dde15SGeorge Liu
44123dde15SGeorge Liuoption(
45123dde15SGeorge Liu    'hash-file-name', type: 'string',
46123dde15SGeorge Liu    value: 'hashfunc',
47123dde15SGeorge Liu    description: 'The name of the hash file.',
48123dde15SGeorge Liu)
49123dde15SGeorge Liu
50123dde15SGeorge Liuoption(
51123dde15SGeorge Liu    'img-upload-dir', type: 'string',
52123dde15SGeorge Liu    value: '/tmp/images',
53123dde15SGeorge Liu    description: 'Directory where downloaded software images are placed.',
54123dde15SGeorge Liu)
55123dde15SGeorge Liu
56123dde15SGeorge Liuoption(
57123dde15SGeorge Liu    'manifest-file-name', type: 'string',
58123dde15SGeorge Liu    value: 'MANIFEST',
59123dde15SGeorge Liu    description: 'The name of the MANIFEST file.',
60123dde15SGeorge Liu)
61123dde15SGeorge Liu
62123dde15SGeorge Liuoption(
63123dde15SGeorge Liu    'media-dir', type: 'string',
64123dde15SGeorge Liu    value: '/run/media',
65123dde15SGeorge Liu    description: 'The base dir where all read-only partitions are mounted.',
66123dde15SGeorge Liu)
67123dde15SGeorge Liu
68123dde15SGeorge Liuoption(
69123dde15SGeorge Liu    'optional-images', type: 'array',
70123dde15SGeorge Liu    value: [],
71123dde15SGeorge Liu    description: 'A list of additional image files in the BMC tarball.',
72123dde15SGeorge Liu)
73123dde15SGeorge Liu
74123dde15SGeorge Liuoption(
75123dde15SGeorge Liu    'publickey-file-name', type: 'string',
76123dde15SGeorge Liu    value: 'publickey',
77123dde15SGeorge Liu    description: 'The name of the public key file.',
78123dde15SGeorge Liu)
79123dde15SGeorge Liu
80123dde15SGeorge Liuoption(
81123dde15SGeorge Liu    'signature-file-ext', type: 'string',
82123dde15SGeorge Liu    value: '.sig',
83123dde15SGeorge Liu    description: 'The extension of the Signature file.',
84123dde15SGeorge Liu)
85123dde15SGeorge Liu
86123dde15SGeorge Liuoption(
87123dde15SGeorge Liu    'signed-image-conf-path', type: 'string',
88123dde15SGeorge Liu    value: '/etc/activationdata/',
89123dde15SGeorge Liu    description: 'Path of public key and hash function files.',
90123dde15SGeorge Liu)
91123dde15SGeorge Liu
92123dde15SGeorge Liuoption(
93123dde15SGeorge Liu    'sync-list-dir-path', type: 'string',
94123dde15SGeorge Liu    value: '/etc/',
95123dde15SGeorge Liu    description: 'The path to the sync list file directory.',
96123dde15SGeorge Liu)
97123dde15SGeorge Liu
98123dde15SGeorge Liuoption(
99123dde15SGeorge Liu    'sync-list-file-name', type: 'string',
100123dde15SGeorge Liu    value: 'synclist',
101123dde15SGeorge Liu    description: 'The name of the sync list file.',
102123dde15SGeorge Liu)
103123dde15SGeorge Liu
104123dde15SGeorge Liuoption(
105123dde15SGeorge Liu    'bmc-msl', type: 'string',
106123dde15SGeorge Liu    value: '',
107123dde15SGeorge Liu    description: 'The BMC minimum ship level.',
108123dde15SGeorge Liu)
109123dde15SGeorge Liu
110123dde15SGeorge Liuoption(
111123dde15SGeorge Liu    'regex-bmc-msl', type: 'string',
112123dde15SGeorge Liu    value: '',
113123dde15SGeorge Liu    description: 'The Regular expression to parse the MSL.',
114123dde15SGeorge Liu)
115123dde15SGeorge Liu
116123dde15SGeorge Liuoption(
117123dde15SGeorge Liu    'bios-object-path', type: 'string',
118123dde15SGeorge Liu    value: '/xyz/openbmc_project/software/bios_active',
119123dde15SGeorge Liu    description: 'The BIOS DBus object path.',
120123dde15SGeorge Liu)
121123dde15SGeorge Liu
122123dde15SGeorge Liuoption('bmc-static-dual-image', type: 'feature', value: 'enabled',
123123dde15SGeorge Liu    description: 'Enable the dual image support for static layout.')
124123dde15SGeorge Liu
125123dde15SGeorge Liuoption(
126123dde15SGeorge Liu    'alt-rofs-dir', type: 'string',
127123dde15SGeorge Liu    value: '/run/media/rofs-alt',
128123dde15SGeorge Liu    description: 'The base dir where all read-only partitions are mounted.',
129123dde15SGeorge Liu)
130123dde15SGeorge Liu
131123dde15SGeorge Liuoption(
132123dde15SGeorge Liu    'alt-rwfs-dir', type: 'string',
133123dde15SGeorge Liu    value: '/run/media/rwfs-alt/cow',
134123dde15SGeorge Liu    description: 'The dir for alt-rwfs partition.',
135123dde15SGeorge Liu)
136