blob: b088a8d4bc9ab8c8e06e647b2920de6425a174db [file] [log] [blame]
Adriana Kobylak0af80a42020-05-05 13:32:10 -05001# Supported BMC layout types. Reference:
Gunnar Mills34077dc2020-09-11 09:29:14 -05002# https://github.com/openbmc/docs/blob/master/architecture/code-update/flash-layout.md#supported-filesystem-choices
Adriana Kobylak0af80a42020-05-05 13:32:10 -05003# - static: NOR flash configured with fixed-sized MTD partitions.
4# - ubi: NOR flash device configured with UBI volumes.
Adriana Kobylak86013f32020-05-13 12:12:38 -05005# - mmc: eMMC flash device configured with ext4 filesystems.
Adriana Kobylak0af80a42020-05-05 13:32:10 -05006option('bmc-layout', type: 'combo',
Adriana Kobylak86013f32020-05-13 12:12:38 -05007 choices: ['static', 'ubi', 'mmc'],
Adriana Kobylak0af80a42020-05-05 13:32:10 -05008 value: 'static',
9 description: 'The BMC layout type.')
10
11# Features
Lei YUf2cc64c2021-08-19 19:59:49 +080012option('host-bios-upgrade', type: 'feature', value: 'enabled',
Adriana Kobylak0af80a42020-05-05 13:32:10 -050013 description: 'Enable host bios upgrade support.')
14
Lei YUf2cc64c2021-08-19 19:59:49 +080015option('sync-bmc-files', type: 'feature', value: 'enabled',
Adriana Kobylak0af80a42020-05-05 13:32:10 -050016 description: 'Enable sync of filesystem files.')
17
Adriana Kobylak78e72d92020-05-05 14:01:54 -050018option('tests', type: 'feature', description: 'Build tests')
19
Konstantin Aladyshev294991a2023-04-19 15:24:20 +030020option('verify-signature', type: 'feature', value: 'enabled',
21 description: 'Enable image signature validation.')
George Liu0a06e972020-12-17 09:17:04 +080022
George Liucc742332021-10-20 16:25:55 +080023option(
24 'usb-code-update', type: 'feature', value: 'enabled',
25 description: 'Firmware update via USB.',
26)
27
Andrew Geissler70d72f82022-03-23 13:15:05 -050028option(
29 'side-switch-on-boot', type: 'feature', value: 'enabled',
30 description: 'Automatic flash side switch on boot',
31)
32
Adriana Kobylak0af80a42020-05-05 13:32:10 -050033# Variables
34option(
35 'active-bmc-max-allowed', type: 'integer',
36 value: 1,
37 description: 'The maximum allowed active BMC versions.',
38)
39
40option(
41 'hash-file-name', type: 'string',
42 value: 'hashfunc',
43 description: 'The name of the hash file.',
44)
45
46option(
47 'img-upload-dir', type: 'string',
48 value: '/tmp/images',
49 description: 'Directory where downloaded software images are placed.',
50)
51
52option(
53 'manifest-file-name', type: 'string',
54 value: 'MANIFEST',
55 description: 'The name of the MANIFEST file.',
56)
57
58option(
59 'media-dir', type: 'string',
60 value: '/run/media',
61 description: 'The base dir where all read-only partitions are mounted.',
62)
63
64option(
Adriana Kobylak73609bb2020-06-18 15:05:40 -050065 'optional-images', type: 'array',
Adriana Kobylak73609bb2020-06-18 15:05:40 -050066 value: [],
67 description: 'A list of additional image files in the BMC tarball.',
68)
69
70option(
Adriana Kobylak0af80a42020-05-05 13:32:10 -050071 'publickey-file-name', type: 'string',
72 value: 'publickey',
73 description: 'The name of the public key file.',
74)
75
76option(
77 'signature-file-ext', type: 'string',
78 value: '.sig',
79 description: 'The extension of the Signature file.',
80)
81
82option(
83 'signed-image-conf-path', type: 'string',
84 value: '/etc/activationdata/',
85 description: 'Path of public key and hash function files.',
86)
87
88option(
89 'sync-list-dir-path', type: 'string',
90 value: '/etc/',
91 description: 'The path to the sync list file directory.',
92)
93
94option(
95 'sync-list-file-name', type: 'string',
96 value: 'synclist',
97 description: 'The name of the sync list file.',
98)
Miguel Gomez21dad042020-06-26 20:54:48 +000099
100option(
101 'bmc-msl', type: 'string',
102 value: '',
103 description: 'The BMC minimum ship level.',
104)
105
106option(
107 'regex-bmc-msl', type: 'string',
108 value: '',
109 description: 'The Regular expression to parse the MSL.',
110)
Lei YU6e9fb1d2021-02-19 18:01:40 +0800111
112option(
113 'bios-object-path', type: 'string',
114 value: '/xyz/openbmc_project/software/bios_active',
115 description: 'The BIOS DBus object path.',
116)
Lei YU63769642021-12-10 16:15:04 +0800117
118option('bmc-static-dual-image', type: 'feature', value: 'enabled',
119 description: 'Enable the dual image support for static layout.')
120
121option(
122 'alt-rofs-dir', type: 'string',
123 value: '/run/media/rofs-alt',
124 description: 'The base dir where all read-only partitions are mounted.',
125)
Lei YUcc9b41a2021-12-15 14:07:16 +0800126
127option(
128 'alt-rwfs-dir', type: 'string',
129 value: '/run/media/rwfs-alt/cow',
130 description: 'The dir for alt-rwfs partition.',
131)