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