xref: /openbmc/phosphor-psu-code-mgmt/meson.options (revision 783406e649e90e13540f192f4111270a02d83168)
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
27*783406e6SShawn McCarney#   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
35*783406e6SShawn McCarney# The PSU_MODEL_UTIL specifies an executable that accepts the PSU
36*783406e6SShawn McCarney# inventory path as input and outputs the PSU model string.
37*783406e6SShawn McCarney# For example:
38*783406e6SShawn McCarney#   psutils --get-model /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0
39*783406e6SShawn McCarneyoption('PSU_MODEL_UTIL',
40*783406e6SShawn McCarney       type: 'string',
41*783406e6SShawn McCarney       value: '/usr/bin/psutils --raw --get-model',
42*783406e6SShawn McCarney       description: 'The command and arguments to get the PSU model')
43*783406e6SShawn McCarney
44079af155SGeorge Liu# The PSU_VERSION_COMPARE_UTIL specifies an executable that accepts the PSU
45079af155SGeorge Liu# versions as input, and outputs which version is the newest, e.g.
46079af155SGeorge Liu#   psutils get-version 0001 0002 0003 # May output 0003
47079af155SGeorge Liu# or in vendor-example
48079af155SGeorge Liu#   get_latest_version 0001 0002 0003 # output 0003
49079af155SGeorge Liuoption('PSU_VERSION_COMPARE_UTIL',
50079af155SGeorge Liu       type: 'string',
51079af155SGeorge Liu       value: '/usr/bin/psutils --raw --compare',
52079af155SGeorge Liu       description: 'The command and arguments to compare PSU versions')
53079af155SGeorge Liu
54079af155SGeorge Liu# The PSU update service
55079af155SGeorge Liu# It shall take a path containing the PSU image(s) as the input
56079af155SGeorge Liuoption('PSU_UPDATE_SERVICE',
57079af155SGeorge Liu       type: 'string',
58079af155SGeorge Liu       value: 'psu-update@.service',
59079af155SGeorge Liu       description: 'The PSU update service')
60079af155SGeorge Liu
61079af155SGeorge Liuoption('IMG_DIR_PERSIST',
62079af155SGeorge Liu       type: 'string',
63079af155SGeorge Liu       value: '/var/lib/obmc/psu',
64079af155SGeorge Liu       description: 'The writable directory to store updated PSU images persistently')
65079af155SGeorge Liu
66079af155SGeorge Liuoption('IMG_DIR_BUILTIN',
67079af155SGeorge Liu       type: 'string',
68079af155SGeorge Liu       value: '/usr/share/obmc/psu',
69079af155SGeorge Liu       description: 'The read-only directory where the built-in PSU images are stored')
70fb86e794SFaisal Awada
71fb86e794SFaisal Awadaoption('ALWAYS_USE_BUILTIN_IMG_DIR',
72fb86e794SFaisal Awada    type: 'boolean',
73fb86e794SFaisal Awada    value: false,
74fb86e794SFaisal Awada    description: 'Only scan for PSU images in IMG_BUILTIN_DIR')
75