blob: a356b5b8a09b885f0ae385738da184fc1f12d8dc [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
Lei YUf2cc64c2021-08-19 19:59:49 +080020option('verify-signature', type: 'feature', value: 'enabled',
Adriana Kobylak42bd9932021-01-28 09:45:24 -060021 description: 'LEGACY: Use verify-full-signature instead. Enable image signature validation.')
Adriana Kobylak0af80a42020-05-05 13:32:10 -050022
Lei YUf2cc64c2021-08-19 19:59:49 +080023option('verify-full-signature', type: 'feature', value: 'enabled',
George Liu0a06e972020-12-17 09:17:04 +080024 description: 'Enable image full signature validation.')
25
George Liucc742332021-10-20 16:25:55 +080026option(
27 'usb-code-update', type: 'feature', value: 'enabled',
28 description: 'Firmware update via USB.',
29)
30
Andrew Geissler70d72f82022-03-23 13:15:05 -050031option(
32 'side-switch-on-boot', type: 'feature', value: 'enabled',
33 description: 'Automatic flash side switch on boot',
34)
35
Adriana Kobylak0af80a42020-05-05 13:32:10 -050036# Variables
37option(
38 'active-bmc-max-allowed', type: 'integer',
39 value: 1,
40 description: 'The maximum allowed active BMC versions.',
41)
42
43option(
44 'hash-file-name', type: 'string',
45 value: 'hashfunc',
46 description: 'The name of the hash file.',
47)
48
49option(
50 'img-upload-dir', type: 'string',
51 value: '/tmp/images',
52 description: 'Directory where downloaded software images are placed.',
53)
54
55option(
56 'manifest-file-name', type: 'string',
57 value: 'MANIFEST',
58 description: 'The name of the MANIFEST file.',
59)
60
61option(
62 'media-dir', type: 'string',
63 value: '/run/media',
64 description: 'The base dir where all read-only partitions are mounted.',
65)
66
67option(
Adriana Kobylak73609bb2020-06-18 15:05:40 -050068 'optional-images', type: 'array',
Adriana Kobylak73609bb2020-06-18 15:05:40 -050069 value: [],
70 description: 'A list of additional image files in the BMC tarball.',
71)
72
73option(
Adriana Kobylak0af80a42020-05-05 13:32:10 -050074 'publickey-file-name', type: 'string',
75 value: 'publickey',
76 description: 'The name of the public key file.',
77)
78
79option(
80 'signature-file-ext', type: 'string',
81 value: '.sig',
82 description: 'The extension of the Signature file.',
83)
84
85option(
86 'signed-image-conf-path', type: 'string',
87 value: '/etc/activationdata/',
88 description: 'Path of public key and hash function files.',
89)
90
91option(
92 'sync-list-dir-path', type: 'string',
93 value: '/etc/',
94 description: 'The path to the sync list file directory.',
95)
96
97option(
98 'sync-list-file-name', type: 'string',
99 value: 'synclist',
100 description: 'The name of the sync list file.',
101)
Miguel Gomez21dad042020-06-26 20:54:48 +0000102
103option(
104 'bmc-msl', type: 'string',
105 value: '',
106 description: 'The BMC minimum ship level.',
107)
108
109option(
110 'regex-bmc-msl', type: 'string',
111 value: '',
112 description: 'The Regular expression to parse the MSL.',
113)
Lei YU6e9fb1d2021-02-19 18:01:40 +0800114
115option(
116 'bios-object-path', type: 'string',
117 value: '/xyz/openbmc_project/software/bios_active',
118 description: 'The BIOS DBus object path.',
119)
Lei YU63769642021-12-10 16:15:04 +0800120
121option('bmc-static-dual-image', type: 'feature', value: 'enabled',
122 description: 'Enable the dual image support for static layout.')
123
124option(
125 'alt-rofs-dir', type: 'string',
126 value: '/run/media/rofs-alt',
127 description: 'The base dir where all read-only partitions are mounted.',
128)
Lei YUcc9b41a2021-12-15 14:07:16 +0800129
130option(
131 'alt-rwfs-dir', type: 'string',
132 value: '/run/media/rwfs-alt/cow',
133 description: 'The dir for alt-rwfs partition.',
134)