1079af155SGeorge Liuoption('tests', type: 'feature', description: 'Build tests') 2d5f4fc47SPatrick Williamsoption('oe-sdk', type: 'feature', value: 'disabled', description: 'Enable OE SDK') 3079af155SGeorge Liuoption('examples', type: 'boolean', value: true, description: 'Build vendor-example') 4079af155SGeorge Liu 5079af155SGeorge Liuoption('MANIFEST_FILE', 6079af155SGeorge Liu type: 'string', 7079af155SGeorge Liu value: 'MANIFEST', 8079af155SGeorge Liu description: 'The path of the MANIFEST file') 9079af155SGeorge Liu 10079af155SGeorge Liuoption('SOFTWARE_OBJPATH', 11079af155SGeorge Liu type: 'string', 12079af155SGeorge Liu value: '/xyz/openbmc_project/software', 13079af155SGeorge Liu description: 'The software manager Dbus root') 14079af155SGeorge Liu 15079af155SGeorge Liuoption('PSU_INVENTORY_PATH_BASE', 16079af155SGeorge Liu type: 'string', 17079af155SGeorge Liu value: '/xyz/openbmc_project/inventory/system', 18079af155SGeorge Liu description: 'The base path for PSU inventory') 19079af155SGeorge Liu 20079af155SGeorge Liuoption('IMG_DIR', 21079af155SGeorge Liu type: 'string', 22079af155SGeorge Liu value: '/tmp/images', 23079af155SGeorge Liu description: 'The directory where downloaded or uploaded PSU images are placed and extracted') 24079af155SGeorge Liu 25079af155SGeorge Liu# The PSU_VERSION_UTIL specifies an executable that accepts the PSU 26079af155SGeorge Liu# inventory path as input, and output the version string, e.g 27079af155SGeorge Liu# psutils get-version /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0 28079af155SGeorge Liu# or in vendor-example 29079af155SGeorge Liu# get_version <some-psu-path> 30079af155SGeorge Liuoption('PSU_VERSION_UTIL', 31079af155SGeorge Liu type: 'string', 32079af155SGeorge Liu value: '/usr/bin/psutils --raw --get-version', 33079af155SGeorge Liu description: 'The command and arguments to get PSU version') 34079af155SGeorge Liu 35079af155SGeorge Liu# The PSU_VERSION_COMPARE_UTIL specifies an executable that accepts the PSU 36079af155SGeorge Liu# versions as input, and outputs which version is the newest, e.g. 37079af155SGeorge Liu# psutils get-version 0001 0002 0003 # May output 0003 38079af155SGeorge Liu# or in vendor-example 39079af155SGeorge Liu# get_latest_version 0001 0002 0003 # output 0003 40079af155SGeorge Liuoption('PSU_VERSION_COMPARE_UTIL', 41079af155SGeorge Liu type: 'string', 42079af155SGeorge Liu value: '/usr/bin/psutils --raw --compare', 43079af155SGeorge Liu description: 'The command and arguments to compare PSU versions') 44079af155SGeorge Liu 45079af155SGeorge Liu# The PSU update service 46079af155SGeorge Liu# It shall take a path containing the PSU image(s) as the input 47079af155SGeorge Liuoption('PSU_UPDATE_SERVICE', 48079af155SGeorge Liu type: 'string', 49079af155SGeorge Liu value: 'psu-update@.service', 50079af155SGeorge Liu description: 'The PSU update service') 51079af155SGeorge Liu 52079af155SGeorge Liuoption('IMG_DIR_PERSIST', 53079af155SGeorge Liu type: 'string', 54079af155SGeorge Liu value: '/var/lib/obmc/psu', 55079af155SGeorge Liu description: 'The writable directory to store updated PSU images persistently') 56079af155SGeorge Liu 57079af155SGeorge Liuoption('IMG_DIR_BUILTIN', 58079af155SGeorge Liu type: 'string', 59079af155SGeorge Liu value: '/usr/share/obmc/psu', 60079af155SGeorge Liu description: 'The read-only directory where the built-in PSU images are stored') 61*fb86e794SFaisal Awada 62*fb86e794SFaisal Awadaoption('ALWAYS_USE_BUILTIN_IMG_DIR', 63*fb86e794SFaisal Awada type: 'boolean', 64*fb86e794SFaisal Awada value: false, 65*fb86e794SFaisal Awada description: 'Only scan for PSU images in IMG_BUILTIN_DIR') 66