1ecffbaeeSGeorge Liu 2ecffbaeeSGeorge Liuoption('tests', type: 'feature', description: 'Build tests') 3*62ce1594SPatrick Williamsoption( 4*62ce1594SPatrick Williams 'boot-flag-safe-mode-support', 5*62ce1594SPatrick Williams type: 'feature', 6*62ce1594SPatrick Williams description: 'Add option to enable/disable safe mode in boot flags', 7*62ce1594SPatrick Williams) 8*62ce1594SPatrick Williamsoption( 9*62ce1594SPatrick Williams 'i2c-whitelist-check', 10*62ce1594SPatrick Williams type: 'feature', 11*62ce1594SPatrick Williams description: 'Add option to enable/disable i2c master write read command white list checking', 12*62ce1594SPatrick Williams) 13ecffbaeeSGeorge Liu 14ecffbaeeSGeorge Liu# SoftPowerOff 15ecffbaeeSGeorge Liuoption('softoff', type: 'feature', description: 'Builds soft power off') 16*62ce1594SPatrick Williamsoption( 17*62ce1594SPatrick Williams 'softoff-busname', 18*62ce1594SPatrick Williams type: 'string', 19*62ce1594SPatrick Williams value: 'xyz.openbmc_project.Ipmi.Internal.SoftPowerOff', 20*62ce1594SPatrick Williams description: 'The Dbus busname to own for SoftPowerOff', 21*62ce1594SPatrick Williams) 22*62ce1594SPatrick Williamsoption( 23*62ce1594SPatrick Williams 'softoff-objpath', 24*62ce1594SPatrick Williams type: 'string', 25*62ce1594SPatrick Williams value: '/xyz/openbmc_project/ipmi/internal/soft_power_off', 26*62ce1594SPatrick Williams description: 'The SoftPowerOff Dbus root', 27*62ce1594SPatrick Williams) 28*62ce1594SPatrick Williamsoption( 29*62ce1594SPatrick Williams 'ipmi-sms-atn-ack-timeout-secs', 30*62ce1594SPatrick Williams type: 'integer', 31*62ce1594SPatrick Williams value: 3, 32*62ce1594SPatrick Williams description: 'Timeout for host to ack and query SMS_ATN from BMC', 33*62ce1594SPatrick Williams) 34*62ce1594SPatrick Williamsoption( 35*62ce1594SPatrick Williams 'ipmi-host-shutdown-complete-timeout-secs', 36*62ce1594SPatrick Williams type: 'integer', 37*62ce1594SPatrick Williams value: 2700, 38*62ce1594SPatrick Williams description: 'Wait time for host to shutdown', 39*62ce1594SPatrick Williams) 40ecffbaeeSGeorge Liu# Indicates an in-band power off or reboot request from the host 41ecffbaeeSGeorge Liu# This file is used to ensure the soft off service does not run for host 42ecffbaeeSGeorge Liu# initiated shutdown or reboot requests 43*62ce1594SPatrick Williamsoption( 44*62ce1594SPatrick Williams 'host-inband-request-dir', 45*62ce1594SPatrick Williams type: 'string', 46*62ce1594SPatrick Williams value: '/run/openbmc/', 47*62ce1594SPatrick Williams description: 'Directory to store host initiated shutdown file', 48*62ce1594SPatrick Williams) 49*62ce1594SPatrick Williamsoption( 50*62ce1594SPatrick Williams 'host-inband-request-file', 51*62ce1594SPatrick Williams type: 'string', 52*62ce1594SPatrick Williams value: 'host@%u-request', 53*62ce1594SPatrick Williams description: 'File to create if host has initiated shutdown or reboot', 54*62ce1594SPatrick Williams) 55ecffbaeeSGeorge Liu 56ecffbaeeSGeorge Liu 57ecffbaeeSGeorge Liu# Config Variables 58*62ce1594SPatrick Williamsoption( 59*62ce1594SPatrick Williams 'board-sensor', 60*62ce1594SPatrick Williams type: 'string', 61*62ce1594SPatrick Williams value: '/xyz/openbmc_project/inventory/system/chassis/motherboard', 62*62ce1594SPatrick Williams description: 'The inventory path to the motherboard fault sensor', 63*62ce1594SPatrick Williams) 64*62ce1594SPatrick Williamsoption( 65*62ce1594SPatrick Williams 'system-sensor', 66*62ce1594SPatrick Williams type: 'string', 67*62ce1594SPatrick Williams value: '/xyz/openbmc_project/inventory/system', 68*62ce1594SPatrick Williams description: 'The inventory path to the system event sensor', 69*62ce1594SPatrick Williams) 70ecffbaeeSGeorge Liu 71ecffbaeeSGeorge Liu# Control Host Interfaces 72*62ce1594SPatrick Williamsoption( 73*62ce1594SPatrick Williams 'control-host-busname', 74*62ce1594SPatrick Williams type: 'string', 75*62ce1594SPatrick Williams value: 'xyz.openbmc_project.Control.Host', 76*62ce1594SPatrick Williams description: 'The Control Host Dbus busname to own', 77*62ce1594SPatrick Williams) 78*62ce1594SPatrick Williamsoption( 79*62ce1594SPatrick Williams 'control-host-obj-mgr', 80*62ce1594SPatrick Williams type: 'string', 81*62ce1594SPatrick Williams value: '/xyz/openbmc_project/control', 82*62ce1594SPatrick Williams description: 'The Control Host D-Bus Object Manager', 83*62ce1594SPatrick Williams) 84*62ce1594SPatrick Williamsoption( 85*62ce1594SPatrick Williams 'host-name', 86*62ce1594SPatrick Williams type: 'string', 87*62ce1594SPatrick Williams value: 'host', 88*62ce1594SPatrick Williams description: 'The Control Host D-Bus Object Manager', 89*62ce1594SPatrick Williams) 90ecffbaeeSGeorge Liu 91ecffbaeeSGeorge Liu# Power reading sensor configuration file 92*62ce1594SPatrick Williamsoption( 93*62ce1594SPatrick Williams 'power-reading-sensor', 94*62ce1594SPatrick Williams type: 'string', 95*62ce1594SPatrick Williams value: '/usr/share/ipmi-providers/power_reading.json', 96*62ce1594SPatrick Williams description: 'Power reading sensor configuration file', 97*62ce1594SPatrick Williams) 98*62ce1594SPatrick Williamsoption( 99*62ce1594SPatrick Williams 'host-ipmi-lib-path', 100*62ce1594SPatrick Williams type: 'string', 101*62ce1594SPatrick Williams value: '/usr/lib/ipmid-providers/', 102*62ce1594SPatrick Williams description: 'The file path to search for libraries', 103*62ce1594SPatrick Williams) 104ecffbaeeSGeorge Liu 105ecffbaeeSGeorge Liu# When a sensor read fails, hwmon will update the OperationalState interface's Functional property. 106ecffbaeeSGeorge Liu# This will mark the sensor as not functional and we will skip reading from that sensor. 107*62ce1594SPatrick Williamsoption( 108*62ce1594SPatrick Williams 'update-functional-on-fail', 109*62ce1594SPatrick Williams type: 'feature', 110*62ce1594SPatrick Williams value: 'disabled', 111*62ce1594SPatrick Williams description: 'Check functional property to skip reading from faulty sensors', 112*62ce1594SPatrick Williams) 113ecffbaeeSGeorge Liu 114ecffbaeeSGeorge Liu# Features 115ecffbaeeSGeorge Liu 116ecffbaeeSGeorge Liu# When libuserlayer is disabled, libuserlayer won't be included in the build. 117*62ce1594SPatrick Williamsoption( 118*62ce1594SPatrick Williams 'libuserlayer', 119*62ce1594SPatrick Williams type: 'feature', 120*62ce1594SPatrick Williams description: 'Option to exclue exclude libuserlayer', 121*62ce1594SPatrick Williams) 122ecffbaeeSGeorge Liu 123ecffbaeeSGeorge Liu# When transport-oem is enabled, the transporthandler_oem.cpp contents 124ecffbaeeSGeorge Liu# are compiled and added to the project. The transporthandler_oem.cpp file is 125ecffbaeeSGeorge Liu# copied from your own customization layer in the 126ecffbaeeSGeorge Liu# phosphor-ipmi-host_%.bbappend file. It is not necessary to create this file 127ecffbaeeSGeorge Liu# unless OEM Parameter extensions are required. 128*62ce1594SPatrick Williamsoption( 129*62ce1594SPatrick Williams 'transport-oem', 130*62ce1594SPatrick Williams type: 'feature', 131*62ce1594SPatrick Williams value: 'disabled', 132*62ce1594SPatrick Williams description: 'Enable transporthandler_oem contents', 133*62ce1594SPatrick Williams) 134ecffbaeeSGeorge Liu 135ecffbaeeSGeorge Liu# IPMI whitelist mechanism is not needed by everyone; offer a way to disable it 136*62ce1594SPatrick Williamsoption( 137*62ce1594SPatrick Williams 'ipmi-whitelist', 138*62ce1594SPatrick Williams type: 'feature', 139*62ce1594SPatrick Williams description: 'Enable/disable IPMI whitelist filtering', 140*62ce1594SPatrick Williams) 141*62ce1594SPatrick Williamsoption( 142*62ce1594SPatrick Williams 'whitelist-conf', 143*62ce1594SPatrick Williams type: 'string', 144*62ce1594SPatrick Williams value: 'host-ipmid-whitelist.conf', 145*62ce1594SPatrick Williams description: 'Paths to IPMI whitelisted commands conf files', 146*62ce1594SPatrick Williams) 147ecffbaeeSGeorge Liu 148ecffbaeeSGeorge Liu# Entity Manager Decorators 149*62ce1594SPatrick Williamsoption( 150*62ce1594SPatrick Williams 'entity-manager-decorators', 151*62ce1594SPatrick Williams type: 'feature', 152*62ce1594SPatrick Williams value: 'enabled', 153*62ce1594SPatrick Williams description: 'The Entity Manager Decorators flag is enabled by default; offer a way to disable it', 154*62ce1594SPatrick Williams) 155ecffbaeeSGeorge Liu 156ecffbaeeSGeorge Liu# Dynamic Sensor Stack 157*62ce1594SPatrick Williamsoption( 158*62ce1594SPatrick Williams 'dynamic-sensors', 159*62ce1594SPatrick Williams type: 'feature', 160*62ce1594SPatrick Williams value: 'disabled', 161*62ce1594SPatrick Williams description: 'Dynamic sensors stack is enabled by default; offer a way to disable it', 162*62ce1594SPatrick Williams) 163*62ce1594SPatrick Williamsoption( 164*62ce1594SPatrick Williams 'dynamic-sensors-write', 165*62ce1594SPatrick Williams type: 'feature', 166*62ce1594SPatrick Williams value: 'disabled', 167*62ce1594SPatrick Williams description: 'Dynamic sensors stack is enabled by default; offer a way to disable it', 168*62ce1594SPatrick Williams) 169*62ce1594SPatrick Williamsoption( 170*62ce1594SPatrick Williams 'hybrid-sensors', 171*62ce1594SPatrick Williams type: 'feature', 172*62ce1594SPatrick Williams value: 'disabled', 173*62ce1594SPatrick Williams description: 'Hybrid sensors stack is disabled by default; offer a way to enable it', 174*62ce1594SPatrick Williams) 175*62ce1594SPatrick Williamsoption( 176*62ce1594SPatrick Williams 'sensors-oem', 177*62ce1594SPatrick Williams type: 'feature', 178*62ce1594SPatrick Williams value: 'disabled', 179*62ce1594SPatrick Williams description: 'OEM sensor SDR parsing is disabled by default; offer a way to enable it', 180*62ce1594SPatrick Williams) 181ecffbaeeSGeorge Liu 182ecffbaeeSGeorge Liu# Sensor Cache 183*62ce1594SPatrick Williamsoption( 184*62ce1594SPatrick Williams 'sensors-cache', 185*62ce1594SPatrick Williams type: 'feature', 186*62ce1594SPatrick Williams value: 'disabled', 187*62ce1594SPatrick Williams description: 'Sensor cache stack is disabled by default; offer a way to enable it', 188*62ce1594SPatrick Williams) 189ecffbaeeSGeorge Liu 190c2c26f93SAlexander Hansen# Short Sensor Names for IPMI 191*62ce1594SPatrick Williamsoption( 192*62ce1594SPatrick Williams 'shortname-remove-suffix', 193*62ce1594SPatrick Williams type: 'feature', 194*62ce1594SPatrick Williams value: 'enabled', 195*62ce1594SPatrick Williams description: 'shortname-remove-suffix is enabled by default', 196*62ce1594SPatrick Williams) 197*62ce1594SPatrick Williamsoption( 198*62ce1594SPatrick Williams 'shortname-replace-words', 199*62ce1594SPatrick Williams type: 'feature', 200*62ce1594SPatrick Williams value: 'disabled', 201*62ce1594SPatrick Williams description: 'shortname-replace-words is disabled by default', 202*62ce1594SPatrick Williams) 203c2c26f93SAlexander Hansen 204ecffbaeeSGeorge Liu# Generate configuration from Yaml 205ecffbaeeSGeorge Liuoption('sensor-yaml-gen', type: 'string', value: 'sensor-example.yaml') 206*62ce1594SPatrick Williamsoption( 207*62ce1594SPatrick Williams 'invsensor-yaml-gen', 208*62ce1594SPatrick Williams type: 'string', 209*62ce1594SPatrick Williams value: 'inventory-sensor-example.yaml', 210*62ce1594SPatrick Williams) 211ecffbaeeSGeorge Liuoption('fru-yaml-gen', type: 'string', value: 'fru-read-example.yaml') 212ecffbaeeSGeorge Liu 213ecffbaeeSGeorge Liu# Software Version 214*62ce1594SPatrick Williamsoption( 215*62ce1594SPatrick Williams 'get-dbus-active-software', 216*62ce1594SPatrick Williams type: 'feature', 217*62ce1594SPatrick Williams description: 'Use the getActiveSoftwareVersionInfo for the BMC version and dev_id.json as backup', 218*62ce1594SPatrick Williams) 219*62ce1594SPatrick Williamsoption( 220*62ce1594SPatrick Williams 'fw-ver-regex', 221*62ce1594SPatrick Williams type: 'string', 222*62ce1594SPatrick Williams value: '(\\\\d+)\\\\.(\\\\d+)', 223*62ce1594SPatrick Williams description: 'Regular expressions for parsing firmware revision', 224*62ce1594SPatrick Williams) 225*62ce1594SPatrick Williamsoption( 226*62ce1594SPatrick Williams 'matches-map', 227*62ce1594SPatrick Williams type: 'array', 228*62ce1594SPatrick Williams value: ['1', '2', '0', '0', '0', '0'], 229*62ce1594SPatrick Williams description: 'An array of integers', 230*62ce1594SPatrick Williams) 231ecffbaeeSGeorge Liu 232ecffbaeeSGeorge Liu# libipmi20.so library 233*62ce1594SPatrick Williamsoption( 234*62ce1594SPatrick Williams 'dynamic-storages-only', 235*62ce1594SPatrick Williams type: 'feature', 236*62ce1594SPatrick Williams value: 'disabled', 237*62ce1594SPatrick Williams description: 'Request to compile storage commands in the libipmi20 library', 238*62ce1594SPatrick Williams) 239768730d2SPatrick Williams 240768730d2SPatrick Williams# open-power specific functionality. 241*62ce1594SPatrick Williamsoption( 242*62ce1594SPatrick Williams 'open-power', 243*62ce1594SPatrick Williams type: 'feature', 244*62ce1594SPatrick Williams description: 'Support open-power specific functions', 245*62ce1594SPatrick Williams) 246