blob: 8149a6c7d1e491e52b29c381c4469f83af9a76fa [file] [log] [blame]
Lei YU5e0dcb32019-08-02 18:04:34 +08001option('tests', type: 'feature', description: 'Build tests')
Patrick Williams8a08ac12025-02-01 08:37:15 -05002option(
3 'oe-sdk',
4 type: 'feature',
5 value: 'disabled',
6 description: 'Enable OE SDK',
7)
8option(
9 'examples',
10 type: 'boolean',
11 value: true,
12 description: 'Build vendor-example',
13)
Lei YU5e0dcb32019-08-02 18:04:34 +080014
Patrick Williams8a08ac12025-02-01 08:37:15 -050015option(
16 'MANIFEST_FILE',
17 type: 'string',
18 value: 'MANIFEST',
19 description: 'The path of the MANIFEST file',
20)
Lei YUc4cfc6e2019-08-02 11:30:10 +080021
Patrick Williams8a08ac12025-02-01 08:37:15 -050022option(
23 'SOFTWARE_OBJPATH',
24 type: 'string',
25 value: '/xyz/openbmc_project/software',
26 description: 'The software manager Dbus root',
27)
Lei YUc4cfc6e2019-08-02 11:30:10 +080028
Patrick Williams8a08ac12025-02-01 08:37:15 -050029option(
30 'PSU_INVENTORY_PATH_BASE',
31 type: 'string',
32 value: '/xyz/openbmc_project/inventory/system',
33 description: 'The base path for PSU inventory',
34)
Lei YU5f3584d2019-08-27 16:28:53 +080035
Patrick Williams8a08ac12025-02-01 08:37:15 -050036option(
37 'IMG_DIR',
38 type: 'string',
39 value: '/tmp/images',
40 description: 'The directory where downloaded or uploaded PSU images are placed and extracted',
41)
Lei YU5f3584d2019-08-27 16:28:53 +080042
43# The PSU_VERSION_UTIL specifies an executable that accepts the PSU
44# inventory path as input, and output the version string, e.g
Shawn McCarney783406e2024-11-17 21:49:37 -060045# psutils --get-version /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0
Lei YU5f3584d2019-08-27 16:28:53 +080046# or in vendor-example
Lei YU65207482019-10-11 16:39:36 +080047# get_version <some-psu-path>
Patrick Williams8a08ac12025-02-01 08:37:15 -050048option(
49 'PSU_VERSION_UTIL',
50 type: 'string',
51 value: '/usr/bin/psutils --raw --get-version',
52 description: 'The command and arguments to get PSU version',
53)
Lei YU12c9f4c2019-09-11 15:08:15 +080054
Shawn McCarney783406e2024-11-17 21:49:37 -060055# The PSU_MODEL_UTIL specifies an executable that accepts the PSU
56# inventory path as input and outputs the PSU model string.
57# For example:
58# psutils --get-model /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0
Patrick Williams8a08ac12025-02-01 08:37:15 -050059option(
60 'PSU_MODEL_UTIL',
61 type: 'string',
62 value: '/usr/bin/psutils --raw --get-model',
63 description: 'The command and arguments to get the PSU model',
64)
Shawn McCarney783406e2024-11-17 21:49:37 -060065
Lei YU65207482019-10-11 16:39:36 +080066# The PSU_VERSION_COMPARE_UTIL specifies an executable that accepts the PSU
67# versions as input, and outputs which version is the newest, e.g.
68# psutils get-version 0001 0002 0003 # May output 0003
69# or in vendor-example
70# get_latest_version 0001 0002 0003 # output 0003
Patrick Williams8a08ac12025-02-01 08:37:15 -050071option(
72 'PSU_VERSION_COMPARE_UTIL',
73 type: 'string',
74 value: '/usr/bin/psutils --raw --compare',
75 description: 'The command and arguments to compare PSU versions',
76)
Lei YU65207482019-10-11 16:39:36 +080077
Lei YU12c9f4c2019-09-11 15:08:15 +080078# The PSU update service
79# It shall take a path containing the PSU image(s) as the input
Patrick Williams8a08ac12025-02-01 08:37:15 -050080option(
81 'PSU_UPDATE_SERVICE',
82 type: 'string',
83 value: 'psu-update@.service',
84 description: 'The PSU update service',
85)
Lei YU2e0e2de2019-09-26 16:42:23 +080086
Patrick Williams8a08ac12025-02-01 08:37:15 -050087option(
88 'IMG_DIR_PERSIST',
89 type: 'string',
90 value: '/var/lib/obmc/psu',
91 description: 'The writable directory to store updated PSU images persistently',
92)
Lei YU2e0e2de2019-09-26 16:42:23 +080093
Patrick Williams8a08ac12025-02-01 08:37:15 -050094option(
95 'IMG_DIR_BUILTIN',
96 type: 'string',
97 value: '/usr/share/obmc/psu',
98 description: 'The read-only directory where the built-in PSU images are stored',
99)
Faisal Awadafb86e792024-09-11 10:51:17 -0500100
Patrick Williams8a08ac12025-02-01 08:37:15 -0500101option(
102 'ALWAYS_USE_BUILTIN_IMG_DIR',
Faisal Awadafb86e792024-09-11 10:51:17 -0500103 type: 'boolean',
104 value: false,
Patrick Williams8a08ac12025-02-01 08:37:15 -0500105 description: 'Only scan for PSU images in IMG_BUILTIN_DIR',
106)