1ecffbaeeSGeorge Liuoption('tests', type: 'feature', description: 'Build tests') 262ce1594SPatrick Williamsoption( 362ce1594SPatrick Williams 'boot-flag-safe-mode-support', 462ce1594SPatrick Williams type: 'feature', 562ce1594SPatrick Williams description: 'Add option to enable/disable safe mode in boot flags', 662ce1594SPatrick Williams) 762ce1594SPatrick Williamsoption( 862ce1594SPatrick Williams 'i2c-whitelist-check', 962ce1594SPatrick Williams type: 'feature', 1062ce1594SPatrick Williams description: 'Add option to enable/disable i2c master write read command white list checking', 1162ce1594SPatrick Williams) 12ecffbaeeSGeorge Liu 13ecffbaeeSGeorge Liu# SoftPowerOff 14ecffbaeeSGeorge Liuoption('softoff', type: 'feature', description: 'Builds soft power off') 1562ce1594SPatrick Williamsoption( 1662ce1594SPatrick Williams 'softoff-busname', 1762ce1594SPatrick Williams type: 'string', 1862ce1594SPatrick Williams value: 'xyz.openbmc_project.Ipmi.Internal.SoftPowerOff', 1962ce1594SPatrick Williams description: 'The Dbus busname to own for SoftPowerOff', 2062ce1594SPatrick Williams) 2162ce1594SPatrick Williamsoption( 2262ce1594SPatrick Williams 'softoff-objpath', 2362ce1594SPatrick Williams type: 'string', 2462ce1594SPatrick Williams value: '/xyz/openbmc_project/ipmi/internal/soft_power_off', 2562ce1594SPatrick Williams description: 'The SoftPowerOff Dbus root', 2662ce1594SPatrick Williams) 2762ce1594SPatrick Williamsoption( 2862ce1594SPatrick Williams 'ipmi-sms-atn-ack-timeout-secs', 2962ce1594SPatrick Williams type: 'integer', 3062ce1594SPatrick Williams value: 3, 3162ce1594SPatrick Williams description: 'Timeout for host to ack and query SMS_ATN from BMC', 3262ce1594SPatrick Williams) 3362ce1594SPatrick Williamsoption( 3462ce1594SPatrick Williams 'ipmi-host-shutdown-complete-timeout-secs', 3562ce1594SPatrick Williams type: 'integer', 3662ce1594SPatrick Williams value: 2700, 3762ce1594SPatrick Williams description: 'Wait time for host to shutdown', 3862ce1594SPatrick Williams) 39ecffbaeeSGeorge Liu# Indicates an in-band power off or reboot request from the host 40ecffbaeeSGeorge Liu# This file is used to ensure the soft off service does not run for host 41ecffbaeeSGeorge Liu# initiated shutdown or reboot requests 4262ce1594SPatrick Williamsoption( 4362ce1594SPatrick Williams 'host-inband-request-dir', 4462ce1594SPatrick Williams type: 'string', 4562ce1594SPatrick Williams value: '/run/openbmc/', 4662ce1594SPatrick Williams description: 'Directory to store host initiated shutdown file', 4762ce1594SPatrick Williams) 4862ce1594SPatrick Williamsoption( 4962ce1594SPatrick Williams 'host-inband-request-file', 5062ce1594SPatrick Williams type: 'string', 5162ce1594SPatrick Williams value: 'host@%u-request', 5262ce1594SPatrick Williams description: 'File to create if host has initiated shutdown or reboot', 5362ce1594SPatrick Williams) 54ecffbaeeSGeorge Liu 55ecffbaeeSGeorge Liu# Config Variables 5662ce1594SPatrick Williamsoption( 5762ce1594SPatrick Williams 'board-sensor', 5862ce1594SPatrick Williams type: 'string', 5962ce1594SPatrick Williams value: '/xyz/openbmc_project/inventory/system/chassis/motherboard', 6062ce1594SPatrick Williams description: 'The inventory path to the motherboard fault sensor', 6162ce1594SPatrick Williams) 6262ce1594SPatrick Williamsoption( 6362ce1594SPatrick Williams 'system-sensor', 6462ce1594SPatrick Williams type: 'string', 6562ce1594SPatrick Williams value: '/xyz/openbmc_project/inventory/system', 6662ce1594SPatrick Williams description: 'The inventory path to the system event sensor', 6762ce1594SPatrick Williams) 68ecffbaeeSGeorge Liu 69ecffbaeeSGeorge Liu# Control Host Interfaces 7062ce1594SPatrick Williamsoption( 7162ce1594SPatrick Williams 'control-host-busname', 7262ce1594SPatrick Williams type: 'string', 7362ce1594SPatrick Williams value: 'xyz.openbmc_project.Control.Host', 7462ce1594SPatrick Williams description: 'The Control Host Dbus busname to own', 7562ce1594SPatrick Williams) 7662ce1594SPatrick Williamsoption( 7762ce1594SPatrick Williams 'control-host-obj-mgr', 7862ce1594SPatrick Williams type: 'string', 7962ce1594SPatrick Williams value: '/xyz/openbmc_project/control', 8062ce1594SPatrick Williams description: 'The Control Host D-Bus Object Manager', 8162ce1594SPatrick Williams) 8262ce1594SPatrick Williamsoption( 8362ce1594SPatrick Williams 'host-name', 8462ce1594SPatrick Williams type: 'string', 8562ce1594SPatrick Williams value: 'host', 8662ce1594SPatrick Williams description: 'The Control Host D-Bus Object Manager', 8762ce1594SPatrick Williams) 88ecffbaeeSGeorge Liu 89ecffbaeeSGeorge Liu# Power reading sensor configuration file 9062ce1594SPatrick Williamsoption( 9162ce1594SPatrick Williams 'power-reading-sensor', 9262ce1594SPatrick Williams type: 'string', 9362ce1594SPatrick Williams value: '/usr/share/ipmi-providers/power_reading.json', 9462ce1594SPatrick Williams description: 'Power reading sensor configuration file', 9562ce1594SPatrick Williams) 9662ce1594SPatrick Williamsoption( 9762ce1594SPatrick Williams 'host-ipmi-lib-path', 9862ce1594SPatrick Williams type: 'string', 9962ce1594SPatrick Williams value: '/usr/lib/ipmid-providers/', 10062ce1594SPatrick Williams description: 'The file path to search for libraries', 10162ce1594SPatrick Williams) 102ecffbaeeSGeorge Liu 103ecffbaeeSGeorge Liu# When a sensor read fails, hwmon will update the OperationalState interface's Functional property. 104ecffbaeeSGeorge Liu# This will mark the sensor as not functional and we will skip reading from that sensor. 10562ce1594SPatrick Williamsoption( 10662ce1594SPatrick Williams 'update-functional-on-fail', 10762ce1594SPatrick Williams type: 'feature', 10862ce1594SPatrick Williams value: 'disabled', 10962ce1594SPatrick Williams description: 'Check functional property to skip reading from faulty sensors', 11062ce1594SPatrick Williams) 111ecffbaeeSGeorge Liu 112ecffbaeeSGeorge Liu# Features 113ecffbaeeSGeorge Liu 114ecffbaeeSGeorge Liu# When libuserlayer is disabled, libuserlayer won't be included in the build. 11562ce1594SPatrick Williamsoption( 11662ce1594SPatrick Williams 'libuserlayer', 11762ce1594SPatrick Williams type: 'feature', 11862ce1594SPatrick Williams description: 'Option to exclue exclude libuserlayer', 11962ce1594SPatrick Williams) 120ecffbaeeSGeorge Liu 121ecffbaeeSGeorge Liu# When transport-oem is enabled, the transporthandler_oem.cpp contents 122ecffbaeeSGeorge Liu# are compiled and added to the project. The transporthandler_oem.cpp file is 123ecffbaeeSGeorge Liu# copied from your own customization layer in the 124ecffbaeeSGeorge Liu# phosphor-ipmi-host_%.bbappend file. It is not necessary to create this file 125ecffbaeeSGeorge Liu# unless OEM Parameter extensions are required. 12662ce1594SPatrick Williamsoption( 12762ce1594SPatrick Williams 'transport-oem', 12862ce1594SPatrick Williams type: 'feature', 12962ce1594SPatrick Williams value: 'disabled', 13062ce1594SPatrick Williams description: 'Enable transporthandler_oem contents', 13162ce1594SPatrick Williams) 132ecffbaeeSGeorge Liu 133ecffbaeeSGeorge Liu# IPMI whitelist mechanism is not needed by everyone; offer a way to disable it 13462ce1594SPatrick Williamsoption( 13562ce1594SPatrick Williams 'ipmi-whitelist', 13662ce1594SPatrick Williams type: 'feature', 13762ce1594SPatrick Williams description: 'Enable/disable IPMI whitelist filtering', 13862ce1594SPatrick Williams) 13962ce1594SPatrick Williamsoption( 14062ce1594SPatrick Williams 'whitelist-conf', 14162ce1594SPatrick Williams type: 'string', 14262ce1594SPatrick Williams value: 'host-ipmid-whitelist.conf', 14362ce1594SPatrick Williams description: 'Paths to IPMI whitelisted commands conf files', 14462ce1594SPatrick Williams) 145ecffbaeeSGeorge Liu 146ecffbaeeSGeorge Liu# Entity Manager Decorators 14762ce1594SPatrick Williamsoption( 14862ce1594SPatrick Williams 'entity-manager-decorators', 14962ce1594SPatrick Williams type: 'feature', 15062ce1594SPatrick Williams value: 'enabled', 15162ce1594SPatrick Williams description: 'The Entity Manager Decorators flag is enabled by default; offer a way to disable it', 15262ce1594SPatrick Williams) 153ecffbaeeSGeorge Liu 154ecffbaeeSGeorge Liu# Dynamic Sensor Stack 15562ce1594SPatrick Williamsoption( 15662ce1594SPatrick Williams 'dynamic-sensors', 15762ce1594SPatrick Williams type: 'feature', 15862ce1594SPatrick Williams value: 'disabled', 159*11c56920SBrad Bishop description: 'Dynamic sensors stack is disabled by default; offer a way to enable it', 16062ce1594SPatrick Williams) 16162ce1594SPatrick Williamsoption( 16262ce1594SPatrick Williams 'dynamic-sensors-write', 16362ce1594SPatrick Williams type: 'feature', 16462ce1594SPatrick Williams value: 'disabled', 165*11c56920SBrad Bishop description: 'Dynamic sensors stack is disabled by default; offer a way to enable it', 16662ce1594SPatrick Williams) 16762ce1594SPatrick Williamsoption( 16862ce1594SPatrick Williams 'hybrid-sensors', 16962ce1594SPatrick Williams type: 'feature', 17062ce1594SPatrick Williams value: 'disabled', 17162ce1594SPatrick Williams description: 'Hybrid sensors stack is disabled by default; offer a way to enable it', 17262ce1594SPatrick Williams) 17362ce1594SPatrick Williamsoption( 17462ce1594SPatrick Williams 'sensors-oem', 17562ce1594SPatrick Williams type: 'feature', 17662ce1594SPatrick Williams value: 'disabled', 17762ce1594SPatrick Williams description: 'OEM sensor SDR parsing is disabled by default; offer a way to enable it', 17862ce1594SPatrick Williams) 179ecffbaeeSGeorge Liu 180ecffbaeeSGeorge Liu# Sensor Cache 18162ce1594SPatrick Williamsoption( 18262ce1594SPatrick Williams 'sensors-cache', 18362ce1594SPatrick Williams type: 'feature', 18462ce1594SPatrick Williams value: 'disabled', 18562ce1594SPatrick Williams description: 'Sensor cache stack is disabled by default; offer a way to enable it', 18662ce1594SPatrick Williams) 187ecffbaeeSGeorge Liu 188c2c26f93SAlexander Hansen# Short Sensor Names for IPMI 18962ce1594SPatrick Williamsoption( 19062ce1594SPatrick Williams 'shortname-remove-suffix', 19162ce1594SPatrick Williams type: 'feature', 19262ce1594SPatrick Williams value: 'enabled', 19362ce1594SPatrick Williams description: 'shortname-remove-suffix is enabled by default', 19462ce1594SPatrick Williams) 19562ce1594SPatrick Williamsoption( 19662ce1594SPatrick Williams 'shortname-replace-words', 19762ce1594SPatrick Williams type: 'feature', 19862ce1594SPatrick Williams value: 'disabled', 19962ce1594SPatrick Williams description: 'shortname-replace-words is disabled by default', 20062ce1594SPatrick Williams) 201c2c26f93SAlexander Hansen 202ecffbaeeSGeorge Liu# Generate configuration from Yaml 203ecffbaeeSGeorge Liuoption('sensor-yaml-gen', type: 'string', value: 'sensor-example.yaml') 20462ce1594SPatrick Williamsoption( 20562ce1594SPatrick Williams 'invsensor-yaml-gen', 20662ce1594SPatrick Williams type: 'string', 20762ce1594SPatrick Williams value: 'inventory-sensor-example.yaml', 20862ce1594SPatrick Williams) 209ecffbaeeSGeorge Liuoption('fru-yaml-gen', type: 'string', value: 'fru-read-example.yaml') 210ecffbaeeSGeorge Liu 211ecffbaeeSGeorge Liu# Software Version 21262ce1594SPatrick Williamsoption( 21362ce1594SPatrick Williams 'get-dbus-active-software', 21462ce1594SPatrick Williams type: 'feature', 21562ce1594SPatrick Williams description: 'Use the getActiveSoftwareVersionInfo for the BMC version and dev_id.json as backup', 21662ce1594SPatrick Williams) 21762ce1594SPatrick Williamsoption( 21862ce1594SPatrick Williams 'fw-ver-regex', 21962ce1594SPatrick Williams type: 'string', 22062ce1594SPatrick Williams value: '(\\\\d+)\\\\.(\\\\d+)', 22162ce1594SPatrick Williams description: 'Regular expressions for parsing firmware revision', 22262ce1594SPatrick Williams) 22362ce1594SPatrick Williamsoption( 22462ce1594SPatrick Williams 'matches-map', 22562ce1594SPatrick Williams type: 'array', 22662ce1594SPatrick Williams value: ['1', '2', '0', '0', '0', '0'], 22762ce1594SPatrick Williams description: 'An array of integers', 22862ce1594SPatrick Williams) 229ecffbaeeSGeorge Liu 230ecffbaeeSGeorge Liu# libipmi20.so library 23162ce1594SPatrick Williamsoption( 23262ce1594SPatrick Williams 'dynamic-storages-only', 23362ce1594SPatrick Williams type: 'feature', 23462ce1594SPatrick Williams value: 'disabled', 23562ce1594SPatrick Williams description: 'Request to compile storage commands in the libipmi20 library', 23662ce1594SPatrick Williams) 237768730d2SPatrick Williams 238768730d2SPatrick Williams# open-power specific functionality. 23962ce1594SPatrick Williamsoption( 24062ce1594SPatrick Williams 'open-power', 24162ce1594SPatrick Williams type: 'feature', 24262ce1594SPatrick Williams description: 'Support open-power specific functions', 24362ce1594SPatrick Williams) 244e2fae4b9SJohn Chung 245d0b99b11SVernon Mauery# arm-sbmr specific functionality. 246d0b99b11SVernon Maueryoption( 247d0b99b11SVernon Mauery 'arm-sbmr', 248d0b99b11SVernon Mauery type: 'feature', 249d0b99b11SVernon Mauery description: 'Support Arm SBMR specific functions', 250d0b99b11SVernon Mauery) 251d0b99b11SVernon Mauery 252d0b99b11SVernon Mauery####################################################################### 253d0b99b11SVernon Mauery# Transport options 254d0b99b11SVernon Mauery####################################################################### 255d0b99b11SVernon Mauery 256e2fae4b9SJohn Chung# HW transport 257e2fae4b9SJohn Chungoption( 258e2fae4b9SJohn Chung 'transport-implementation', 259e2fae4b9SJohn Chung type: 'combo', 260e2fae4b9SJohn Chung choices: ['null', 'serial'], 261ce3e487aSPatrick Williams description: 'transport', 262e2fae4b9SJohn Chung) 2630a3f40b9SJohn Chung 264d0b99b11SVernon Mauery####################################################################### 265d0b99b11SVernon Mauery# OEM Libraries 266d0b99b11SVernon Mauery####################################################################### 2670a3f40b9SJohn Chungoption( 268d0b99b11SVernon Mauery 'oem-libraries', 269d0b99b11SVernon Mauery type: 'array', 270d0b99b11SVernon Mauery choices: [ 271d0b99b11SVernon Mauery # will build all of the OEM libraries - default 272d0b99b11SVernon Mauery 'all', 273d0b99b11SVernon Mauery # don't build any OEM libraries 274d0b99b11SVernon Mauery 'none', 275d0b99b11SVernon Mauery ####################################### 276d0b99b11SVernon Mauery # keep list below sorted alphabetically 277d0b99b11SVernon Mauery ####################################### 278d0b99b11SVernon Mauery 'example', 2796b580c7cSPrithvi Pai 'nvidia', 280d0b99b11SVernon Mauery ], 281d0b99b11SVernon Mauery value: ['all'], 282d0b99b11SVernon Mauery description: 'Build selected OEM IPMI provider libraries', 2830a3f40b9SJohn Chung) 284