1ecffbaeeSGeorge Liu 2ecffbaeeSGeorge Liuoption('tests', type: 'feature', description: 'Build tests') 362ce1594SPatrick Williamsoption( 462ce1594SPatrick Williams 'boot-flag-safe-mode-support', 562ce1594SPatrick Williams type: 'feature', 662ce1594SPatrick Williams description: 'Add option to enable/disable safe mode in boot flags', 762ce1594SPatrick Williams) 862ce1594SPatrick Williamsoption( 962ce1594SPatrick Williams 'i2c-whitelist-check', 1062ce1594SPatrick Williams type: 'feature', 1162ce1594SPatrick Williams description: 'Add option to enable/disable i2c master write read command white list checking', 1262ce1594SPatrick Williams) 13ecffbaeeSGeorge Liu 14ecffbaeeSGeorge Liu# SoftPowerOff 15ecffbaeeSGeorge Liuoption('softoff', type: 'feature', description: 'Builds soft power off') 1662ce1594SPatrick Williamsoption( 1762ce1594SPatrick Williams 'softoff-busname', 1862ce1594SPatrick Williams type: 'string', 1962ce1594SPatrick Williams value: 'xyz.openbmc_project.Ipmi.Internal.SoftPowerOff', 2062ce1594SPatrick Williams description: 'The Dbus busname to own for SoftPowerOff', 2162ce1594SPatrick Williams) 2262ce1594SPatrick Williamsoption( 2362ce1594SPatrick Williams 'softoff-objpath', 2462ce1594SPatrick Williams type: 'string', 2562ce1594SPatrick Williams value: '/xyz/openbmc_project/ipmi/internal/soft_power_off', 2662ce1594SPatrick Williams description: 'The SoftPowerOff Dbus root', 2762ce1594SPatrick Williams) 2862ce1594SPatrick Williamsoption( 2962ce1594SPatrick Williams 'ipmi-sms-atn-ack-timeout-secs', 3062ce1594SPatrick Williams type: 'integer', 3162ce1594SPatrick Williams value: 3, 3262ce1594SPatrick Williams description: 'Timeout for host to ack and query SMS_ATN from BMC', 3362ce1594SPatrick Williams) 3462ce1594SPatrick Williamsoption( 3562ce1594SPatrick Williams 'ipmi-host-shutdown-complete-timeout-secs', 3662ce1594SPatrick Williams type: 'integer', 3762ce1594SPatrick Williams value: 2700, 3862ce1594SPatrick Williams description: 'Wait time for host to shutdown', 3962ce1594SPatrick 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 4362ce1594SPatrick Williamsoption( 4462ce1594SPatrick Williams 'host-inband-request-dir', 4562ce1594SPatrick Williams type: 'string', 4662ce1594SPatrick Williams value: '/run/openbmc/', 4762ce1594SPatrick Williams description: 'Directory to store host initiated shutdown file', 4862ce1594SPatrick Williams) 4962ce1594SPatrick Williamsoption( 5062ce1594SPatrick Williams 'host-inband-request-file', 5162ce1594SPatrick Williams type: 'string', 5262ce1594SPatrick Williams value: 'host@%u-request', 5362ce1594SPatrick Williams description: 'File to create if host has initiated shutdown or reboot', 5462ce1594SPatrick Williams) 55ecffbaeeSGeorge Liu 56ecffbaeeSGeorge Liu 57ecffbaeeSGeorge Liu# Config Variables 5862ce1594SPatrick Williamsoption( 5962ce1594SPatrick Williams 'board-sensor', 6062ce1594SPatrick Williams type: 'string', 6162ce1594SPatrick Williams value: '/xyz/openbmc_project/inventory/system/chassis/motherboard', 6262ce1594SPatrick Williams description: 'The inventory path to the motherboard fault sensor', 6362ce1594SPatrick Williams) 6462ce1594SPatrick Williamsoption( 6562ce1594SPatrick Williams 'system-sensor', 6662ce1594SPatrick Williams type: 'string', 6762ce1594SPatrick Williams value: '/xyz/openbmc_project/inventory/system', 6862ce1594SPatrick Williams description: 'The inventory path to the system event sensor', 6962ce1594SPatrick Williams) 70ecffbaeeSGeorge Liu 71ecffbaeeSGeorge Liu# Control Host Interfaces 7262ce1594SPatrick Williamsoption( 7362ce1594SPatrick Williams 'control-host-busname', 7462ce1594SPatrick Williams type: 'string', 7562ce1594SPatrick Williams value: 'xyz.openbmc_project.Control.Host', 7662ce1594SPatrick Williams description: 'The Control Host Dbus busname to own', 7762ce1594SPatrick Williams) 7862ce1594SPatrick Williamsoption( 7962ce1594SPatrick Williams 'control-host-obj-mgr', 8062ce1594SPatrick Williams type: 'string', 8162ce1594SPatrick Williams value: '/xyz/openbmc_project/control', 8262ce1594SPatrick Williams description: 'The Control Host D-Bus Object Manager', 8362ce1594SPatrick Williams) 8462ce1594SPatrick Williamsoption( 8562ce1594SPatrick Williams 'host-name', 8662ce1594SPatrick Williams type: 'string', 8762ce1594SPatrick Williams value: 'host', 8862ce1594SPatrick Williams description: 'The Control Host D-Bus Object Manager', 8962ce1594SPatrick Williams) 90ecffbaeeSGeorge Liu 91ecffbaeeSGeorge Liu# Power reading sensor configuration file 9262ce1594SPatrick Williamsoption( 9362ce1594SPatrick Williams 'power-reading-sensor', 9462ce1594SPatrick Williams type: 'string', 9562ce1594SPatrick Williams value: '/usr/share/ipmi-providers/power_reading.json', 9662ce1594SPatrick Williams description: 'Power reading sensor configuration file', 9762ce1594SPatrick Williams) 9862ce1594SPatrick Williamsoption( 9962ce1594SPatrick Williams 'host-ipmi-lib-path', 10062ce1594SPatrick Williams type: 'string', 10162ce1594SPatrick Williams value: '/usr/lib/ipmid-providers/', 10262ce1594SPatrick Williams description: 'The file path to search for libraries', 10362ce1594SPatrick 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. 10762ce1594SPatrick Williamsoption( 10862ce1594SPatrick Williams 'update-functional-on-fail', 10962ce1594SPatrick Williams type: 'feature', 11062ce1594SPatrick Williams value: 'disabled', 11162ce1594SPatrick Williams description: 'Check functional property to skip reading from faulty sensors', 11262ce1594SPatrick Williams) 113ecffbaeeSGeorge Liu 114ecffbaeeSGeorge Liu# Features 115ecffbaeeSGeorge Liu 116ecffbaeeSGeorge Liu# When libuserlayer is disabled, libuserlayer won't be included in the build. 11762ce1594SPatrick Williamsoption( 11862ce1594SPatrick Williams 'libuserlayer', 11962ce1594SPatrick Williams type: 'feature', 12062ce1594SPatrick Williams description: 'Option to exclue exclude libuserlayer', 12162ce1594SPatrick 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. 12862ce1594SPatrick Williamsoption( 12962ce1594SPatrick Williams 'transport-oem', 13062ce1594SPatrick Williams type: 'feature', 13162ce1594SPatrick Williams value: 'disabled', 13262ce1594SPatrick Williams description: 'Enable transporthandler_oem contents', 13362ce1594SPatrick Williams) 134ecffbaeeSGeorge Liu 135ecffbaeeSGeorge Liu# IPMI whitelist mechanism is not needed by everyone; offer a way to disable it 13662ce1594SPatrick Williamsoption( 13762ce1594SPatrick Williams 'ipmi-whitelist', 13862ce1594SPatrick Williams type: 'feature', 13962ce1594SPatrick Williams description: 'Enable/disable IPMI whitelist filtering', 14062ce1594SPatrick Williams) 14162ce1594SPatrick Williamsoption( 14262ce1594SPatrick Williams 'whitelist-conf', 14362ce1594SPatrick Williams type: 'string', 14462ce1594SPatrick Williams value: 'host-ipmid-whitelist.conf', 14562ce1594SPatrick Williams description: 'Paths to IPMI whitelisted commands conf files', 14662ce1594SPatrick Williams) 147ecffbaeeSGeorge Liu 148ecffbaeeSGeorge Liu# Entity Manager Decorators 14962ce1594SPatrick Williamsoption( 15062ce1594SPatrick Williams 'entity-manager-decorators', 15162ce1594SPatrick Williams type: 'feature', 15262ce1594SPatrick Williams value: 'enabled', 15362ce1594SPatrick Williams description: 'The Entity Manager Decorators flag is enabled by default; offer a way to disable it', 15462ce1594SPatrick Williams) 155ecffbaeeSGeorge Liu 156ecffbaeeSGeorge Liu# Dynamic Sensor Stack 15762ce1594SPatrick Williamsoption( 15862ce1594SPatrick Williams 'dynamic-sensors', 15962ce1594SPatrick Williams type: 'feature', 16062ce1594SPatrick Williams value: 'disabled', 16162ce1594SPatrick Williams description: 'Dynamic sensors stack is enabled by default; offer a way to disable it', 16262ce1594SPatrick Williams) 16362ce1594SPatrick Williamsoption( 16462ce1594SPatrick Williams 'dynamic-sensors-write', 16562ce1594SPatrick Williams type: 'feature', 16662ce1594SPatrick Williams value: 'disabled', 16762ce1594SPatrick Williams description: 'Dynamic sensors stack is enabled by default; offer a way to disable it', 16862ce1594SPatrick Williams) 16962ce1594SPatrick Williamsoption( 17062ce1594SPatrick Williams 'hybrid-sensors', 17162ce1594SPatrick Williams type: 'feature', 17262ce1594SPatrick Williams value: 'disabled', 17362ce1594SPatrick Williams description: 'Hybrid sensors stack is disabled by default; offer a way to enable it', 17462ce1594SPatrick Williams) 17562ce1594SPatrick Williamsoption( 17662ce1594SPatrick Williams 'sensors-oem', 17762ce1594SPatrick Williams type: 'feature', 17862ce1594SPatrick Williams value: 'disabled', 17962ce1594SPatrick Williams description: 'OEM sensor SDR parsing is disabled by default; offer a way to enable it', 18062ce1594SPatrick Williams) 181ecffbaeeSGeorge Liu 182ecffbaeeSGeorge Liu# Sensor Cache 18362ce1594SPatrick Williamsoption( 18462ce1594SPatrick Williams 'sensors-cache', 18562ce1594SPatrick Williams type: 'feature', 18662ce1594SPatrick Williams value: 'disabled', 18762ce1594SPatrick Williams description: 'Sensor cache stack is disabled by default; offer a way to enable it', 18862ce1594SPatrick Williams) 189ecffbaeeSGeorge Liu 190c2c26f93SAlexander Hansen# Short Sensor Names for IPMI 19162ce1594SPatrick Williamsoption( 19262ce1594SPatrick Williams 'shortname-remove-suffix', 19362ce1594SPatrick Williams type: 'feature', 19462ce1594SPatrick Williams value: 'enabled', 19562ce1594SPatrick Williams description: 'shortname-remove-suffix is enabled by default', 19662ce1594SPatrick Williams) 19762ce1594SPatrick Williamsoption( 19862ce1594SPatrick Williams 'shortname-replace-words', 19962ce1594SPatrick Williams type: 'feature', 20062ce1594SPatrick Williams value: 'disabled', 20162ce1594SPatrick Williams description: 'shortname-replace-words is disabled by default', 20262ce1594SPatrick Williams) 203c2c26f93SAlexander Hansen 204ecffbaeeSGeorge Liu# Generate configuration from Yaml 205ecffbaeeSGeorge Liuoption('sensor-yaml-gen', type: 'string', value: 'sensor-example.yaml') 20662ce1594SPatrick Williamsoption( 20762ce1594SPatrick Williams 'invsensor-yaml-gen', 20862ce1594SPatrick Williams type: 'string', 20962ce1594SPatrick Williams value: 'inventory-sensor-example.yaml', 21062ce1594SPatrick Williams) 211ecffbaeeSGeorge Liuoption('fru-yaml-gen', type: 'string', value: 'fru-read-example.yaml') 212ecffbaeeSGeorge Liu 213ecffbaeeSGeorge Liu# Software Version 21462ce1594SPatrick Williamsoption( 21562ce1594SPatrick Williams 'get-dbus-active-software', 21662ce1594SPatrick Williams type: 'feature', 21762ce1594SPatrick Williams description: 'Use the getActiveSoftwareVersionInfo for the BMC version and dev_id.json as backup', 21862ce1594SPatrick Williams) 21962ce1594SPatrick Williamsoption( 22062ce1594SPatrick Williams 'fw-ver-regex', 22162ce1594SPatrick Williams type: 'string', 22262ce1594SPatrick Williams value: '(\\\\d+)\\\\.(\\\\d+)', 22362ce1594SPatrick Williams description: 'Regular expressions for parsing firmware revision', 22462ce1594SPatrick Williams) 22562ce1594SPatrick Williamsoption( 22662ce1594SPatrick Williams 'matches-map', 22762ce1594SPatrick Williams type: 'array', 22862ce1594SPatrick Williams value: ['1', '2', '0', '0', '0', '0'], 22962ce1594SPatrick Williams description: 'An array of integers', 23062ce1594SPatrick Williams) 231ecffbaeeSGeorge Liu 232ecffbaeeSGeorge Liu# libipmi20.so library 23362ce1594SPatrick Williamsoption( 23462ce1594SPatrick Williams 'dynamic-storages-only', 23562ce1594SPatrick Williams type: 'feature', 23662ce1594SPatrick Williams value: 'disabled', 23762ce1594SPatrick Williams description: 'Request to compile storage commands in the libipmi20 library', 23862ce1594SPatrick Williams) 239768730d2SPatrick Williams 240768730d2SPatrick Williams# open-power specific functionality. 24162ce1594SPatrick Williamsoption( 24262ce1594SPatrick Williams 'open-power', 24362ce1594SPatrick Williams type: 'feature', 24462ce1594SPatrick Williams description: 'Support open-power specific functions', 24562ce1594SPatrick Williams) 246e2fae4b9SJohn Chung 247d0b99b11SVernon Mauery# arm-sbmr specific functionality. 248d0b99b11SVernon Maueryoption( 249d0b99b11SVernon Mauery 'arm-sbmr', 250d0b99b11SVernon Mauery type: 'feature', 251d0b99b11SVernon Mauery description: 'Support Arm SBMR specific functions', 252d0b99b11SVernon Mauery) 253d0b99b11SVernon Mauery 254d0b99b11SVernon Mauery####################################################################### 255d0b99b11SVernon Mauery# Transport options 256d0b99b11SVernon Mauery####################################################################### 257d0b99b11SVernon Mauery 258e2fae4b9SJohn Chung# HW transport 259e2fae4b9SJohn Chungoption( 260e2fae4b9SJohn Chung 'transport-implementation', 261e2fae4b9SJohn Chung type: 'combo', 262e2fae4b9SJohn Chung choices: ['null', 'serial'], 263ce3e487aSPatrick Williams description: 'transport', 264e2fae4b9SJohn Chung) 2650a3f40b9SJohn Chung 266d0b99b11SVernon Mauery 267d0b99b11SVernon Mauery 268d0b99b11SVernon Mauery####################################################################### 269d0b99b11SVernon Mauery# OEM Libraries 270d0b99b11SVernon Mauery####################################################################### 2710a3f40b9SJohn Chungoption( 272d0b99b11SVernon Mauery 'oem-libraries', 273d0b99b11SVernon Mauery type: 'array', 274d0b99b11SVernon Mauery choices: [ 275d0b99b11SVernon Mauery # will build all of the OEM libraries - default 276d0b99b11SVernon Mauery 'all', 277d0b99b11SVernon Mauery # don't build any OEM libraries 278d0b99b11SVernon Mauery 'none', 279d0b99b11SVernon Mauery ####################################### 280d0b99b11SVernon Mauery # keep list below sorted alphabetically 281d0b99b11SVernon Mauery ####################################### 282d0b99b11SVernon Mauery 'example', 283*6b580c7cSPrithvi Pai 'nvidia', 284d0b99b11SVernon Mauery ], 285d0b99b11SVernon Mauery value: ['all'], 286d0b99b11SVernon Mauery description: 'Build selected OEM IPMI provider libraries', 2870a3f40b9SJohn Chung) 288