1123dde15SGeorge Liu# Supported BMC layout types. Reference: 2123dde15SGeorge Liu# https://github.com/openbmc/docs/blob/master/architecture/code-update/flash-layout.md#supported-filesystem-choices 3123dde15SGeorge Liu# - static: NOR flash configured with fixed-sized MTD partitions. 4123dde15SGeorge Liu# - ubi: NOR flash device configured with UBI volumes. 5123dde15SGeorge Liu# - mmc: eMMC flash device configured with ext4 filesystems. 6ec807fcbSPatrick Williamsoption( 7ec807fcbSPatrick Williams 'bmc-layout', 8ec807fcbSPatrick Williams type: 'combo', 9123dde15SGeorge Liu choices: ['static', 'ubi', 'mmc'], 10123dde15SGeorge Liu value: 'static', 11ec807fcbSPatrick Williams description: 'The BMC layout type.', 12ec807fcbSPatrick Williams) 13123dde15SGeorge Liu 14123dde15SGeorge Liu# Features 15ec807fcbSPatrick Williamsoption( 16ec807fcbSPatrick Williams 'host-bios-upgrade', 17ec807fcbSPatrick Williams type: 'feature', 18ec807fcbSPatrick Williams value: 'enabled', 19ec807fcbSPatrick Williams description: 'Enable host bios upgrade support.', 20ec807fcbSPatrick Williams) 21123dde15SGeorge Liu 22ec807fcbSPatrick Williamsoption( 23ec807fcbSPatrick Williams 'sync-bmc-files', 24ec807fcbSPatrick Williams type: 'feature', 25ec807fcbSPatrick Williams value: 'enabled', 26ec807fcbSPatrick Williams description: 'Enable sync of filesystem files.', 27ec807fcbSPatrick Williams) 28123dde15SGeorge Liu 29123dde15SGeorge Liuoption('tests', type: 'feature', description: 'Build tests') 30123dde15SGeorge Liu 31ec807fcbSPatrick Williamsoption( 32ec807fcbSPatrick Williams 'verify-signature', 33ec807fcbSPatrick Williams type: 'feature', 34ec807fcbSPatrick Williams value: 'enabled', 35ec807fcbSPatrick Williams description: 'Enable image signature validation.', 36ec807fcbSPatrick Williams) 37123dde15SGeorge Liu 38123dde15SGeorge Liuoption( 39ec807fcbSPatrick Williams 'usb-code-update', 40ec807fcbSPatrick Williams type: 'feature', 41ec807fcbSPatrick Williams value: 'enabled', 42123dde15SGeorge Liu description: 'Firmware update via USB.', 43123dde15SGeorge Liu) 44123dde15SGeorge Liu 45ec807fcbSPatrick Williamsoption( 46ec807fcbSPatrick Williams 'software-update-dbus-interface', 47ec807fcbSPatrick Williams type: 'feature', 48ec807fcbSPatrick Williams value: 'enabled', 49cc49878dSJagpal Singh Gill description: 'Implementation using software update D-Bus interface - https://github.com/openbmc/docs/blob/master/designs/code-update.md.', 50cc49878dSJagpal Singh Gill) 51cc49878dSJagpal Singh Gill 52123dde15SGeorge Liuoption( 53*7e446a40SChristopher Meis 'i2cvr-software-update', 54*7e446a40SChristopher Meis type: 'feature', 55*7e446a40SChristopher Meis value: 'enabled', 56*7e446a40SChristopher Meis description: 'Enable update of i2c voltage regulators', 57*7e446a40SChristopher Meis) 58*7e446a40SChristopher Meis 59*7e446a40SChristopher Meisoption( 60ec807fcbSPatrick Williams 'side-switch-on-boot', 61ec807fcbSPatrick Williams type: 'feature', 62ec807fcbSPatrick Williams value: 'enabled', 63123dde15SGeorge Liu description: 'Automatic flash side switch on boot', 64123dde15SGeorge Liu) 65123dde15SGeorge Liu 66f2c95a08SAlexander Hansenoption( 67f2c95a08SAlexander Hansen 'bios-software-update', 68f2c95a08SAlexander Hansen type: 'feature', 69f2c95a08SAlexander Hansen value: 'enabled', 70f2c95a08SAlexander Hansen description: 'Enable BIOS/Host firmware update', 71f2c95a08SAlexander Hansen) 72f2c95a08SAlexander Hansen 73123dde15SGeorge Liu# Variables 74123dde15SGeorge Liuoption( 75ec807fcbSPatrick Williams 'active-bmc-max-allowed', 76ec807fcbSPatrick Williams type: 'integer', 77123dde15SGeorge Liu value: 1, 78123dde15SGeorge Liu description: 'The maximum allowed active BMC versions.', 79123dde15SGeorge Liu) 80123dde15SGeorge Liu 81123dde15SGeorge Liuoption( 82ec807fcbSPatrick Williams 'hash-file-name', 83ec807fcbSPatrick Williams type: 'string', 84123dde15SGeorge Liu value: 'hashfunc', 85123dde15SGeorge Liu description: 'The name of the hash file.', 86123dde15SGeorge Liu) 87123dde15SGeorge Liu 88123dde15SGeorge Liuoption( 89ec807fcbSPatrick Williams 'img-upload-dir', 90ec807fcbSPatrick Williams type: 'string', 91123dde15SGeorge Liu value: '/tmp/images', 92123dde15SGeorge Liu description: 'Directory where downloaded software images are placed.', 93123dde15SGeorge Liu) 94123dde15SGeorge Liu 95123dde15SGeorge Liuoption( 96ec807fcbSPatrick Williams 'manifest-file-name', 97ec807fcbSPatrick Williams type: 'string', 98123dde15SGeorge Liu value: 'MANIFEST', 99123dde15SGeorge Liu description: 'The name of the MANIFEST file.', 100123dde15SGeorge Liu) 101123dde15SGeorge Liu 102123dde15SGeorge Liuoption( 103ec807fcbSPatrick Williams 'media-dir', 104ec807fcbSPatrick Williams type: 'string', 105123dde15SGeorge Liu value: '/run/media', 106123dde15SGeorge Liu description: 'The base dir where all read-only partitions are mounted.', 107123dde15SGeorge Liu) 108123dde15SGeorge Liu 109123dde15SGeorge Liuoption( 110ec807fcbSPatrick Williams 'optional-images', 111ec807fcbSPatrick Williams type: 'array', 112123dde15SGeorge Liu value: [], 113123dde15SGeorge Liu description: 'A list of additional image files in the BMC tarball.', 114123dde15SGeorge Liu) 115123dde15SGeorge Liu 116123dde15SGeorge Liuoption( 117ec807fcbSPatrick Williams 'publickey-file-name', 118ec807fcbSPatrick Williams type: 'string', 119123dde15SGeorge Liu value: 'publickey', 120123dde15SGeorge Liu description: 'The name of the public key file.', 121123dde15SGeorge Liu) 122123dde15SGeorge Liu 123123dde15SGeorge Liuoption( 124ec807fcbSPatrick Williams 'signature-file-ext', 125ec807fcbSPatrick Williams type: 'string', 126123dde15SGeorge Liu value: '.sig', 127123dde15SGeorge Liu description: 'The extension of the Signature file.', 128123dde15SGeorge Liu) 129123dde15SGeorge Liu 130123dde15SGeorge Liuoption( 131ec807fcbSPatrick Williams 'signed-image-conf-path', 132ec807fcbSPatrick Williams type: 'string', 133123dde15SGeorge Liu value: '/etc/activationdata/', 134123dde15SGeorge Liu description: 'Path of public key and hash function files.', 135123dde15SGeorge Liu) 136123dde15SGeorge Liu 137123dde15SGeorge Liuoption( 138ec807fcbSPatrick Williams 'sync-list-dir-path', 139ec807fcbSPatrick Williams type: 'string', 140123dde15SGeorge Liu value: '/etc/', 141123dde15SGeorge Liu description: 'The path to the sync list file directory.', 142123dde15SGeorge Liu) 143123dde15SGeorge Liu 144123dde15SGeorge Liuoption( 145ec807fcbSPatrick Williams 'sync-list-file-name', 146ec807fcbSPatrick Williams type: 'string', 147123dde15SGeorge Liu value: 'synclist', 148123dde15SGeorge Liu description: 'The name of the sync list file.', 149123dde15SGeorge Liu) 150123dde15SGeorge Liu 151123dde15SGeorge Liuoption( 152ec807fcbSPatrick Williams 'bmc-msl', 153ec807fcbSPatrick Williams type: 'string', 154123dde15SGeorge Liu value: '', 155123dde15SGeorge Liu description: 'The BMC minimum ship level.', 156123dde15SGeorge Liu) 157123dde15SGeorge Liu 158123dde15SGeorge Liuoption( 159ec807fcbSPatrick Williams 'regex-bmc-msl', 160ec807fcbSPatrick Williams type: 'string', 161123dde15SGeorge Liu value: '', 162123dde15SGeorge Liu description: 'The Regular expression to parse the MSL.', 163123dde15SGeorge Liu) 164123dde15SGeorge Liu 165123dde15SGeorge Liuoption( 166ec807fcbSPatrick Williams 'bios-object-path', 167ec807fcbSPatrick Williams type: 'string', 168123dde15SGeorge Liu value: '/xyz/openbmc_project/software/bios_active', 169123dde15SGeorge Liu description: 'The BIOS DBus object path.', 170123dde15SGeorge Liu) 171123dde15SGeorge Liu 172ec807fcbSPatrick Williamsoption( 173ec807fcbSPatrick Williams 'bmc-static-dual-image', 174ec807fcbSPatrick Williams type: 'feature', 175ec807fcbSPatrick Williams value: 'enabled', 176ec807fcbSPatrick Williams description: 'Enable the dual image support for static layout.', 177ec807fcbSPatrick Williams) 178123dde15SGeorge Liu 179123dde15SGeorge Liuoption( 180ec807fcbSPatrick Williams 'alt-rofs-dir', 181ec807fcbSPatrick Williams type: 'string', 182123dde15SGeorge Liu value: '/run/media/rofs-alt', 183123dde15SGeorge Liu description: 'The base dir where all read-only partitions are mounted.', 184123dde15SGeorge Liu) 185123dde15SGeorge Liu 186123dde15SGeorge Liuoption( 187ec807fcbSPatrick Williams 'alt-rwfs-dir', 188ec807fcbSPatrick Williams type: 'string', 189123dde15SGeorge Liu value: '/run/media/rwfs-alt/cow', 190123dde15SGeorge Liu description: 'The dir for alt-rwfs partition.', 191123dde15SGeorge Liu) 192