| 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 | dde1828 | 2023-04-14 17:11:57 +0300 | [diff] [blame] | 20 | # This option is considered legacy, therefore there is no PACKAGECONFIG feature for disabling it in the recipe. | 
 | 21 | # Functionality of this option is superseded by the 'verify-full-signature' option. | 
 | 22 | # Option will be removed 4Q 2023 | 
 | 23 | option('verify-signature', type: 'feature', value: 'disabled', | 
| Adriana Kobylak | 42bd993 | 2021-01-28 09:45:24 -0600 | [diff] [blame] | 24 |     description: 'LEGACY: Use verify-full-signature instead. Enable image signature validation.') | 
| Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 25 |  | 
| Lei YU | f2cc64c | 2021-08-19 19:59:49 +0800 | [diff] [blame] | 26 | option('verify-full-signature', type: 'feature', value: 'enabled', | 
| George Liu | 0a06e97 | 2020-12-17 09:17:04 +0800 | [diff] [blame] | 27 |     description: 'Enable image full signature validation.') | 
 | 28 |  | 
| George Liu | cc74233 | 2021-10-20 16:25:55 +0800 | [diff] [blame] | 29 | option( | 
 | 30 |     'usb-code-update', type: 'feature', value: 'enabled', | 
 | 31 |     description: 'Firmware update via USB.', | 
 | 32 | ) | 
 | 33 |  | 
| Andrew Geissler | 70d72f8 | 2022-03-23 13:15:05 -0500 | [diff] [blame] | 34 | option( | 
 | 35 |     'side-switch-on-boot', type: 'feature', value: 'enabled', | 
 | 36 |     description: 'Automatic flash side switch on boot', | 
 | 37 | ) | 
 | 38 |  | 
| Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 39 | # Variables | 
 | 40 | option( | 
 | 41 |     'active-bmc-max-allowed', type: 'integer', | 
 | 42 |     value: 1, | 
 | 43 |     description: 'The maximum allowed active BMC versions.', | 
 | 44 | ) | 
 | 45 |  | 
 | 46 | option( | 
 | 47 |     'hash-file-name', type: 'string', | 
 | 48 |     value: 'hashfunc', | 
 | 49 |     description: 'The name of the hash file.', | 
 | 50 | ) | 
 | 51 |  | 
 | 52 | option( | 
 | 53 |     'img-upload-dir', type: 'string', | 
 | 54 |     value: '/tmp/images', | 
 | 55 |     description: 'Directory where downloaded software images are placed.', | 
 | 56 | ) | 
 | 57 |  | 
 | 58 | option( | 
 | 59 |     'manifest-file-name', type: 'string', | 
 | 60 |     value: 'MANIFEST', | 
 | 61 |     description: 'The name of the MANIFEST file.', | 
 | 62 | ) | 
 | 63 |  | 
 | 64 | option( | 
 | 65 |     'media-dir', type: 'string', | 
 | 66 |     value: '/run/media', | 
 | 67 |     description: 'The base dir where all read-only partitions are mounted.', | 
 | 68 | ) | 
 | 69 |  | 
 | 70 | option( | 
| Adriana Kobylak | 73609bb | 2020-06-18 15:05:40 -0500 | [diff] [blame] | 71 |     'optional-images', type: 'array', | 
| Adriana Kobylak | 73609bb | 2020-06-18 15:05:40 -0500 | [diff] [blame] | 72 |     value: [], | 
 | 73 |     description: 'A list of additional image files in the BMC tarball.', | 
 | 74 | ) | 
 | 75 |  | 
 | 76 | option( | 
| Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 77 |     'publickey-file-name', type: 'string', | 
 | 78 |     value: 'publickey', | 
 | 79 |     description: 'The name of the public key file.', | 
 | 80 | ) | 
 | 81 |  | 
 | 82 | option( | 
 | 83 |     'signature-file-ext', type: 'string', | 
 | 84 |     value: '.sig', | 
 | 85 |     description: 'The extension of the Signature file.', | 
 | 86 | ) | 
 | 87 |  | 
 | 88 | option( | 
 | 89 |     'signed-image-conf-path', type: 'string', | 
 | 90 |     value: '/etc/activationdata/', | 
 | 91 |     description: 'Path of public key and hash function files.', | 
 | 92 | ) | 
 | 93 |  | 
 | 94 | option( | 
 | 95 |     'sync-list-dir-path', type: 'string', | 
 | 96 |     value: '/etc/', | 
 | 97 |     description: 'The path to the sync list file directory.', | 
 | 98 | ) | 
 | 99 |  | 
 | 100 | option( | 
 | 101 |     'sync-list-file-name', type: 'string', | 
 | 102 |     value: 'synclist', | 
 | 103 |     description: 'The name of the sync list file.', | 
 | 104 | ) | 
| Miguel Gomez | 21dad04 | 2020-06-26 20:54:48 +0000 | [diff] [blame] | 105 |  | 
 | 106 | option( | 
 | 107 |     'bmc-msl', type: 'string', | 
 | 108 |     value: '', | 
 | 109 |     description: 'The BMC minimum ship level.', | 
 | 110 | ) | 
 | 111 |  | 
 | 112 | option( | 
 | 113 |     'regex-bmc-msl', type: 'string', | 
 | 114 |     value: '', | 
 | 115 |     description: 'The Regular expression to parse the MSL.', | 
 | 116 | ) | 
| Lei YU | 6e9fb1d | 2021-02-19 18:01:40 +0800 | [diff] [blame] | 117 |  | 
 | 118 | option( | 
 | 119 |     'bios-object-path', type: 'string', | 
 | 120 |     value: '/xyz/openbmc_project/software/bios_active', | 
 | 121 |     description: 'The BIOS DBus object path.', | 
 | 122 | ) | 
| Lei YU | 6376964 | 2021-12-10 16:15:04 +0800 | [diff] [blame] | 123 |  | 
 | 124 | option('bmc-static-dual-image', type: 'feature', value: 'enabled', | 
 | 125 |     description: 'Enable the dual image support for static layout.') | 
 | 126 |  | 
 | 127 | option( | 
 | 128 |     'alt-rofs-dir', type: 'string', | 
 | 129 |     value: '/run/media/rofs-alt', | 
 | 130 |     description: 'The base dir where all read-only partitions are mounted.', | 
 | 131 | ) | 
| Lei YU | cc9b41a | 2021-12-15 14:07:16 +0800 | [diff] [blame] | 132 |  | 
 | 133 | option( | 
 | 134 |     'alt-rwfs-dir', type: 'string', | 
 | 135 |     value: '/run/media/rwfs-alt/cow', | 
 | 136 |     description: 'The dir for alt-rwfs partition.', | 
 | 137 | ) |