Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 1 | # Supported BMC layout types. Reference: |
Gunnar Mills | 34077dc | 2020-09-11 09:29:14 -0500 | [diff] [blame] | 2 | # https://github.com/openbmc/docs/blob/master/architecture/code-update/flash-layout.md#supported-filesystem-choices |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 3 | # - static: NOR flash configured with fixed-sized MTD partitions. |
| 4 | # - ubi: NOR flash device configured with UBI volumes. |
Adriana Kobylak | 86013f3 | 2020-05-13 12:12:38 -0500 | [diff] [blame] | 5 | # - mmc: eMMC flash device configured with ext4 filesystems. |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 6 | option('bmc-layout', type: 'combo', |
Adriana Kobylak | 86013f3 | 2020-05-13 12:12:38 -0500 | [diff] [blame] | 7 | choices: ['static', 'ubi', 'mmc'], |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 8 | value: 'static', |
| 9 | description: 'The BMC layout type.') |
| 10 | |
| 11 | # Features |
Lei YU | f2cc64c | 2021-08-19 19:59:49 +0800 | [diff] [blame] | 12 | option('host-bios-upgrade', type: 'feature', value: 'enabled', |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 13 | description: 'Enable host bios upgrade support.') |
| 14 | |
Lei YU | f2cc64c | 2021-08-19 19:59:49 +0800 | [diff] [blame] | 15 | option('sync-bmc-files', type: 'feature', value: 'enabled', |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 16 | description: 'Enable sync of filesystem files.') |
| 17 | |
Adriana Kobylak | 78e72d9 | 2020-05-05 14:01:54 -0500 | [diff] [blame] | 18 | option('tests', type: 'feature', description: 'Build tests') |
| 19 | |
Konstantin Aladyshev | 294991a | 2023-04-19 15:24:20 +0300 | [diff] [blame] | 20 | option('verify-signature', type: 'feature', value: 'enabled', |
| 21 | description: 'Enable image signature validation.') |
George Liu | 0a06e97 | 2020-12-17 09:17:04 +0800 | [diff] [blame] | 22 | |
George Liu | cc74233 | 2021-10-20 16:25:55 +0800 | [diff] [blame] | 23 | option( |
| 24 | 'usb-code-update', type: 'feature', value: 'enabled', |
| 25 | description: 'Firmware update via USB.', |
| 26 | ) |
| 27 | |
Jagpal Singh Gill | cc49878 | 2024-02-29 15:16:36 -0800 | [diff] [blame] | 28 | option('software-update-dbus-interface', type: 'feature', value: 'enabled', |
| 29 | description: 'Implementation using software update D-Bus interface - https://github.com/openbmc/docs/blob/master/designs/code-update.md.', |
| 30 | ) |
| 31 | |
Andrew Geissler | 70d72f8 | 2022-03-23 13:15:05 -0500 | [diff] [blame] | 32 | option( |
| 33 | 'side-switch-on-boot', type: 'feature', value: 'enabled', |
| 34 | description: 'Automatic flash side switch on boot', |
| 35 | ) |
| 36 | |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 37 | # Variables |
| 38 | option( |
| 39 | 'active-bmc-max-allowed', type: 'integer', |
| 40 | value: 1, |
| 41 | description: 'The maximum allowed active BMC versions.', |
| 42 | ) |
| 43 | |
| 44 | option( |
| 45 | 'hash-file-name', type: 'string', |
| 46 | value: 'hashfunc', |
| 47 | description: 'The name of the hash file.', |
| 48 | ) |
| 49 | |
| 50 | option( |
| 51 | 'img-upload-dir', type: 'string', |
| 52 | value: '/tmp/images', |
| 53 | description: 'Directory where downloaded software images are placed.', |
| 54 | ) |
| 55 | |
| 56 | option( |
| 57 | 'manifest-file-name', type: 'string', |
| 58 | value: 'MANIFEST', |
| 59 | description: 'The name of the MANIFEST file.', |
| 60 | ) |
| 61 | |
| 62 | option( |
| 63 | 'media-dir', type: 'string', |
| 64 | value: '/run/media', |
| 65 | description: 'The base dir where all read-only partitions are mounted.', |
| 66 | ) |
| 67 | |
| 68 | option( |
Adriana Kobylak | 73609bb | 2020-06-18 15:05:40 -0500 | [diff] [blame] | 69 | 'optional-images', type: 'array', |
Adriana Kobylak | 73609bb | 2020-06-18 15:05:40 -0500 | [diff] [blame] | 70 | value: [], |
| 71 | description: 'A list of additional image files in the BMC tarball.', |
| 72 | ) |
| 73 | |
| 74 | option( |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 75 | 'publickey-file-name', type: 'string', |
| 76 | value: 'publickey', |
| 77 | description: 'The name of the public key file.', |
| 78 | ) |
| 79 | |
| 80 | option( |
| 81 | 'signature-file-ext', type: 'string', |
| 82 | value: '.sig', |
| 83 | description: 'The extension of the Signature file.', |
| 84 | ) |
| 85 | |
| 86 | option( |
| 87 | 'signed-image-conf-path', type: 'string', |
| 88 | value: '/etc/activationdata/', |
| 89 | description: 'Path of public key and hash function files.', |
| 90 | ) |
| 91 | |
| 92 | option( |
| 93 | 'sync-list-dir-path', type: 'string', |
| 94 | value: '/etc/', |
| 95 | description: 'The path to the sync list file directory.', |
| 96 | ) |
| 97 | |
| 98 | option( |
| 99 | 'sync-list-file-name', type: 'string', |
| 100 | value: 'synclist', |
| 101 | description: 'The name of the sync list file.', |
| 102 | ) |
Miguel Gomez | 21dad04 | 2020-06-26 20:54:48 +0000 | [diff] [blame] | 103 | |
| 104 | option( |
| 105 | 'bmc-msl', type: 'string', |
| 106 | value: '', |
| 107 | description: 'The BMC minimum ship level.', |
| 108 | ) |
| 109 | |
| 110 | option( |
| 111 | 'regex-bmc-msl', type: 'string', |
| 112 | value: '', |
| 113 | description: 'The Regular expression to parse the MSL.', |
| 114 | ) |
Lei YU | 6e9fb1d | 2021-02-19 18:01:40 +0800 | [diff] [blame] | 115 | |
| 116 | option( |
| 117 | 'bios-object-path', type: 'string', |
| 118 | value: '/xyz/openbmc_project/software/bios_active', |
| 119 | description: 'The BIOS DBus object path.', |
| 120 | ) |
Lei YU | 6376964 | 2021-12-10 16:15:04 +0800 | [diff] [blame] | 121 | |
| 122 | option('bmc-static-dual-image', type: 'feature', value: 'enabled', |
| 123 | description: 'Enable the dual image support for static layout.') |
| 124 | |
| 125 | option( |
| 126 | 'alt-rofs-dir', type: 'string', |
| 127 | value: '/run/media/rofs-alt', |
| 128 | description: 'The base dir where all read-only partitions are mounted.', |
| 129 | ) |
Lei YU | cc9b41a | 2021-12-15 14:07:16 +0800 | [diff] [blame] | 130 | |
| 131 | option( |
| 132 | 'alt-rwfs-dir', type: 'string', |
| 133 | value: '/run/media/rwfs-alt/cow', |
| 134 | description: 'The dir for alt-rwfs partition.', |
| 135 | ) |