xref: /openbmc/phosphor-bmc-code-mgmt/meson.options (revision f6470b5e95618fa0eeb8b03b37c53a311dfc1ef3)
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.
6ec807fcbSPatrick Williamsoption(
7ec807fcbSPatrick Williams    'bmc-layout',
8ec807fcbSPatrick Williams    type: 'combo',
9123dde15SGeorge Liu    choices: ['static', 'ubi', 'mmc'],
10123dde15SGeorge Liu    value: 'static',
11ec807fcbSPatrick Williams    description: 'The BMC layout type.',
12ec807fcbSPatrick Williams)
13123dde15SGeorge Liu
14123dde15SGeorge Liu# Features
15ec807fcbSPatrick Williamsoption(
16ec807fcbSPatrick Williams    'host-bios-upgrade',
17ec807fcbSPatrick Williams    type: 'feature',
18ec807fcbSPatrick Williams    value: 'enabled',
19ec807fcbSPatrick Williams    description: 'Enable host bios upgrade support.',
20ec807fcbSPatrick Williams)
21123dde15SGeorge Liu
22ec807fcbSPatrick Williamsoption(
23ec807fcbSPatrick Williams    'sync-bmc-files',
24ec807fcbSPatrick Williams    type: 'feature',
25ec807fcbSPatrick Williams    value: 'enabled',
26ec807fcbSPatrick Williams    description: 'Enable sync of filesystem files.',
27ec807fcbSPatrick Williams)
28123dde15SGeorge Liu
29123dde15SGeorge Liuoption('tests', type: 'feature', description: 'Build tests')
30123dde15SGeorge Liu
31ec807fcbSPatrick Williamsoption(
32ec807fcbSPatrick Williams    'verify-signature',
33ec807fcbSPatrick Williams    type: 'feature',
34ec807fcbSPatrick Williams    value: 'enabled',
35ec807fcbSPatrick Williams    description: 'Enable image signature validation.',
36ec807fcbSPatrick Williams)
37123dde15SGeorge Liu
38123dde15SGeorge Liuoption(
39ec807fcbSPatrick Williams    'usb-code-update',
40ec807fcbSPatrick Williams    type: 'feature',
41ec807fcbSPatrick Williams    value: 'enabled',
42123dde15SGeorge Liu    description: 'Firmware update via USB.',
43123dde15SGeorge Liu)
44123dde15SGeorge Liu
45ec807fcbSPatrick Williamsoption(
46ec807fcbSPatrick Williams    'software-update-dbus-interface',
47ec807fcbSPatrick Williams    type: 'feature',
48ec807fcbSPatrick Williams    value: 'enabled',
49cc49878dSJagpal Singh Gill    description: 'Implementation using software update D-Bus interface - https://github.com/openbmc/docs/blob/master/designs/code-update.md.',
50cc49878dSJagpal Singh Gill)
51cc49878dSJagpal Singh Gill
52123dde15SGeorge Liuoption(
537e446a40SChristopher Meis    'i2cvr-software-update',
547e446a40SChristopher Meis    type: 'feature',
557e446a40SChristopher Meis    value: 'enabled',
567e446a40SChristopher Meis    description: 'Enable update of i2c voltage regulators',
577e446a40SChristopher Meis)
587e446a40SChristopher Meis
597e446a40SChristopher Meisoption(
60*f6470b5eSDaniel Hsu    'cpld-software-update',
61*f6470b5eSDaniel Hsu    type: 'feature',
62*f6470b5eSDaniel Hsu    value: 'enabled',
63*f6470b5eSDaniel Hsu    description: 'Enable update of CPLD',
64*f6470b5eSDaniel Hsu)
65*f6470b5eSDaniel Hsu
66*f6470b5eSDaniel Hsuoption(
67ec807fcbSPatrick Williams    'side-switch-on-boot',
68ec807fcbSPatrick Williams    type: 'feature',
69ec807fcbSPatrick Williams    value: 'enabled',
70123dde15SGeorge Liu    description: 'Automatic flash side switch on boot',
71123dde15SGeorge Liu)
72123dde15SGeorge Liu
73f2c95a08SAlexander Hansenoption(
74f2c95a08SAlexander Hansen    'bios-software-update',
75f2c95a08SAlexander Hansen    type: 'feature',
76f2c95a08SAlexander Hansen    value: 'enabled',
77f2c95a08SAlexander Hansen    description: 'Enable BIOS/Host firmware update',
78f2c95a08SAlexander Hansen)
79f2c95a08SAlexander Hansen
80994a77ffSKevin Tungoption(
81994a77ffSKevin Tung    'eepromdevice-software-update',
82994a77ffSKevin Tung    type: 'feature',
83994a77ffSKevin Tung    value: 'enabled',
84994a77ffSKevin Tung    description: 'Enable EEPROM device update support.',
85994a77ffSKevin Tung)
86994a77ffSKevin Tung
87123dde15SGeorge Liu# Variables
88123dde15SGeorge Liuoption(
89ec807fcbSPatrick Williams    'active-bmc-max-allowed',
90ec807fcbSPatrick Williams    type: 'integer',
91123dde15SGeorge Liu    value: 1,
92123dde15SGeorge Liu    description: 'The maximum allowed active BMC versions.',
93123dde15SGeorge Liu)
94123dde15SGeorge Liu
95123dde15SGeorge Liuoption(
96ec807fcbSPatrick Williams    'hash-file-name',
97ec807fcbSPatrick Williams    type: 'string',
98123dde15SGeorge Liu    value: 'hashfunc',
99123dde15SGeorge Liu    description: 'The name of the hash file.',
100123dde15SGeorge Liu)
101123dde15SGeorge Liu
102123dde15SGeorge Liuoption(
103ec807fcbSPatrick Williams    'img-upload-dir',
104ec807fcbSPatrick Williams    type: 'string',
105123dde15SGeorge Liu    value: '/tmp/images',
106123dde15SGeorge Liu    description: 'Directory where downloaded software images are placed.',
107123dde15SGeorge Liu)
108123dde15SGeorge Liu
109123dde15SGeorge Liuoption(
110ec807fcbSPatrick Williams    'manifest-file-name',
111ec807fcbSPatrick Williams    type: 'string',
112123dde15SGeorge Liu    value: 'MANIFEST',
113123dde15SGeorge Liu    description: 'The name of the MANIFEST file.',
114123dde15SGeorge Liu)
115123dde15SGeorge Liu
116123dde15SGeorge Liuoption(
117ec807fcbSPatrick Williams    'media-dir',
118ec807fcbSPatrick Williams    type: 'string',
119123dde15SGeorge Liu    value: '/run/media',
120123dde15SGeorge Liu    description: 'The base dir where all read-only partitions are mounted.',
121123dde15SGeorge Liu)
122123dde15SGeorge Liu
123123dde15SGeorge Liuoption(
124ec807fcbSPatrick Williams    'optional-images',
125ec807fcbSPatrick Williams    type: 'array',
126123dde15SGeorge Liu    value: [],
127123dde15SGeorge Liu    description: 'A list of additional image files in the BMC tarball.',
128123dde15SGeorge Liu)
129123dde15SGeorge Liu
130123dde15SGeorge Liuoption(
131ec807fcbSPatrick Williams    'publickey-file-name',
132ec807fcbSPatrick Williams    type: 'string',
133123dde15SGeorge Liu    value: 'publickey',
134123dde15SGeorge Liu    description: 'The name of the public key file.',
135123dde15SGeorge Liu)
136123dde15SGeorge Liu
137123dde15SGeorge Liuoption(
138ec807fcbSPatrick Williams    'signature-file-ext',
139ec807fcbSPatrick Williams    type: 'string',
140123dde15SGeorge Liu    value: '.sig',
141123dde15SGeorge Liu    description: 'The extension of the Signature file.',
142123dde15SGeorge Liu)
143123dde15SGeorge Liu
144123dde15SGeorge Liuoption(
145ec807fcbSPatrick Williams    'signed-image-conf-path',
146ec807fcbSPatrick Williams    type: 'string',
147123dde15SGeorge Liu    value: '/etc/activationdata/',
148123dde15SGeorge Liu    description: 'Path of public key and hash function files.',
149123dde15SGeorge Liu)
150123dde15SGeorge Liu
151123dde15SGeorge Liuoption(
152ec807fcbSPatrick Williams    'sync-list-dir-path',
153ec807fcbSPatrick Williams    type: 'string',
154123dde15SGeorge Liu    value: '/etc/',
155123dde15SGeorge Liu    description: 'The path to the sync list file directory.',
156123dde15SGeorge Liu)
157123dde15SGeorge Liu
158123dde15SGeorge Liuoption(
159ec807fcbSPatrick Williams    'sync-list-file-name',
160ec807fcbSPatrick Williams    type: 'string',
161123dde15SGeorge Liu    value: 'synclist',
162123dde15SGeorge Liu    description: 'The name of the sync list file.',
163123dde15SGeorge Liu)
164123dde15SGeorge Liu
165123dde15SGeorge Liuoption(
166ec807fcbSPatrick Williams    'bmc-msl',
167ec807fcbSPatrick Williams    type: 'string',
168123dde15SGeorge Liu    value: '',
169123dde15SGeorge Liu    description: 'The BMC minimum ship level.',
170123dde15SGeorge Liu)
171123dde15SGeorge Liu
172123dde15SGeorge Liuoption(
173ec807fcbSPatrick Williams    'regex-bmc-msl',
174ec807fcbSPatrick Williams    type: 'string',
175123dde15SGeorge Liu    value: '',
176123dde15SGeorge Liu    description: 'The Regular expression to parse the MSL.',
177123dde15SGeorge Liu)
178123dde15SGeorge Liu
179123dde15SGeorge Liuoption(
180ec807fcbSPatrick Williams    'bios-object-path',
181ec807fcbSPatrick Williams    type: 'string',
182123dde15SGeorge Liu    value: '/xyz/openbmc_project/software/bios_active',
183123dde15SGeorge Liu    description: 'The BIOS DBus object path.',
184123dde15SGeorge Liu)
185123dde15SGeorge Liu
186ec807fcbSPatrick Williamsoption(
187ec807fcbSPatrick Williams    'bmc-static-dual-image',
188ec807fcbSPatrick Williams    type: 'feature',
189ec807fcbSPatrick Williams    value: 'enabled',
190ec807fcbSPatrick Williams    description: 'Enable the dual image support for static layout.',
191ec807fcbSPatrick Williams)
192123dde15SGeorge Liu
193123dde15SGeorge Liuoption(
194ec807fcbSPatrick Williams    'alt-rofs-dir',
195ec807fcbSPatrick Williams    type: 'string',
196123dde15SGeorge Liu    value: '/run/media/rofs-alt',
197123dde15SGeorge Liu    description: 'The base dir where all read-only partitions are mounted.',
198123dde15SGeorge Liu)
199123dde15SGeorge Liu
200123dde15SGeorge Liuoption(
201ec807fcbSPatrick Williams    'alt-rwfs-dir',
202ec807fcbSPatrick Williams    type: 'string',
203123dde15SGeorge Liu    value: '/run/media/rwfs-alt/cow',
204123dde15SGeorge Liu    description: 'The dir for alt-rwfs partition.',
205123dde15SGeorge Liu)
206