xref: /openbmc/phosphor-psu-code-mgmt/meson.options (revision 8a08ac1019f7122253630d3a9a4af0d3ddf39b7f)
1079af155SGeorge Liuoption('tests', type: 'feature', description: 'Build tests')
2*8a08ac10SPatrick Williamsoption(
3*8a08ac10SPatrick Williams    'oe-sdk',
4*8a08ac10SPatrick Williams    type: 'feature',
5*8a08ac10SPatrick Williams    value: 'disabled',
6*8a08ac10SPatrick Williams    description: 'Enable OE SDK',
7*8a08ac10SPatrick Williams)
8*8a08ac10SPatrick Williamsoption(
9*8a08ac10SPatrick Williams    'examples',
10*8a08ac10SPatrick Williams    type: 'boolean',
11*8a08ac10SPatrick Williams    value: true,
12*8a08ac10SPatrick Williams    description: 'Build vendor-example',
13*8a08ac10SPatrick Williams)
14079af155SGeorge Liu
15*8a08ac10SPatrick Williamsoption(
16*8a08ac10SPatrick Williams    'MANIFEST_FILE',
17079af155SGeorge Liu    type: 'string',
18079af155SGeorge Liu    value: 'MANIFEST',
19*8a08ac10SPatrick Williams    description: 'The path of the MANIFEST file',
20*8a08ac10SPatrick Williams)
21079af155SGeorge Liu
22*8a08ac10SPatrick Williamsoption(
23*8a08ac10SPatrick Williams    'SOFTWARE_OBJPATH',
24079af155SGeorge Liu    type: 'string',
25079af155SGeorge Liu    value: '/xyz/openbmc_project/software',
26*8a08ac10SPatrick Williams    description: 'The software manager Dbus root',
27*8a08ac10SPatrick Williams)
28079af155SGeorge Liu
29*8a08ac10SPatrick Williamsoption(
30*8a08ac10SPatrick Williams    'PSU_INVENTORY_PATH_BASE',
31079af155SGeorge Liu    type: 'string',
32079af155SGeorge Liu    value: '/xyz/openbmc_project/inventory/system',
33*8a08ac10SPatrick Williams    description: 'The base path for PSU inventory',
34*8a08ac10SPatrick Williams)
35079af155SGeorge Liu
36*8a08ac10SPatrick Williamsoption(
37*8a08ac10SPatrick Williams    'IMG_DIR',
38079af155SGeorge Liu    type: 'string',
39079af155SGeorge Liu    value: '/tmp/images',
40*8a08ac10SPatrick Williams    description: 'The directory where downloaded or uploaded PSU images are placed and extracted',
41*8a08ac10SPatrick Williams)
42079af155SGeorge Liu
43079af155SGeorge Liu# The PSU_VERSION_UTIL specifies an executable that accepts the PSU
44079af155SGeorge Liu# inventory path as input, and output the version string, e.g
45783406e6SShawn McCarney#   psutils --get-version /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0
46079af155SGeorge Liu# or in vendor-example
47079af155SGeorge Liu#   get_version <some-psu-path>
48*8a08ac10SPatrick Williamsoption(
49*8a08ac10SPatrick Williams    'PSU_VERSION_UTIL',
50079af155SGeorge Liu    type: 'string',
51079af155SGeorge Liu    value: '/usr/bin/psutils --raw --get-version',
52*8a08ac10SPatrick Williams    description: 'The command and arguments to get PSU version',
53*8a08ac10SPatrick Williams)
54079af155SGeorge Liu
55783406e6SShawn McCarney# The PSU_MODEL_UTIL specifies an executable that accepts the PSU
56783406e6SShawn McCarney# inventory path as input and outputs the PSU model string.
57783406e6SShawn McCarney# For example:
58783406e6SShawn McCarney#   psutils --get-model /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0
59*8a08ac10SPatrick Williamsoption(
60*8a08ac10SPatrick Williams    'PSU_MODEL_UTIL',
61783406e6SShawn McCarney    type: 'string',
62783406e6SShawn McCarney    value: '/usr/bin/psutils --raw --get-model',
63*8a08ac10SPatrick Williams    description: 'The command and arguments to get the PSU model',
64*8a08ac10SPatrick Williams)
65783406e6SShawn McCarney
66079af155SGeorge Liu# The PSU_VERSION_COMPARE_UTIL specifies an executable that accepts the PSU
67079af155SGeorge Liu# versions as input, and outputs which version is the newest, e.g.
68079af155SGeorge Liu#   psutils get-version 0001 0002 0003 # May output 0003
69079af155SGeorge Liu# or in vendor-example
70079af155SGeorge Liu#   get_latest_version 0001 0002 0003 # output 0003
71*8a08ac10SPatrick Williamsoption(
72*8a08ac10SPatrick Williams    'PSU_VERSION_COMPARE_UTIL',
73079af155SGeorge Liu    type: 'string',
74079af155SGeorge Liu    value: '/usr/bin/psutils --raw --compare',
75*8a08ac10SPatrick Williams    description: 'The command and arguments to compare PSU versions',
76*8a08ac10SPatrick Williams)
77079af155SGeorge Liu
78079af155SGeorge Liu# The PSU update service
79079af155SGeorge Liu# It shall take a path containing the PSU image(s) as the input
80*8a08ac10SPatrick Williamsoption(
81*8a08ac10SPatrick Williams    'PSU_UPDATE_SERVICE',
82079af155SGeorge Liu    type: 'string',
83079af155SGeorge Liu    value: 'psu-update@.service',
84*8a08ac10SPatrick Williams    description: 'The PSU update service',
85*8a08ac10SPatrick Williams)
86079af155SGeorge Liu
87*8a08ac10SPatrick Williamsoption(
88*8a08ac10SPatrick Williams    'IMG_DIR_PERSIST',
89079af155SGeorge Liu    type: 'string',
90079af155SGeorge Liu    value: '/var/lib/obmc/psu',
91*8a08ac10SPatrick Williams    description: 'The writable directory to store updated PSU images persistently',
92*8a08ac10SPatrick Williams)
93079af155SGeorge Liu
94*8a08ac10SPatrick Williamsoption(
95*8a08ac10SPatrick Williams    'IMG_DIR_BUILTIN',
96079af155SGeorge Liu    type: 'string',
97079af155SGeorge Liu    value: '/usr/share/obmc/psu',
98*8a08ac10SPatrick Williams    description: 'The read-only directory where the built-in PSU images are stored',
99*8a08ac10SPatrick Williams)
100fb86e794SFaisal Awada
101*8a08ac10SPatrick Williamsoption(
102*8a08ac10SPatrick Williams    'ALWAYS_USE_BUILTIN_IMG_DIR',
103fb86e794SFaisal Awada    type: 'boolean',
104fb86e794SFaisal Awada    value: false,
105*8a08ac10SPatrick Williams    description: 'Only scan for PSU images in IMG_BUILTIN_DIR',
106*8a08ac10SPatrick Williams)
107