blob: 027c92a7902890fce8eae4ae00e4ee739cddcfdd [file] [log] [blame]
Lei YU5e0dcb32019-08-02 18:04:34 +08001option('tests', type: 'feature', description: 'Build tests')
2option('oe-sdk', type: 'feature', description: 'Enable OE SDK')
Lei YU5f3584d2019-08-27 16:28:53 +08003option('examples', type: 'boolean', value: true, description: 'Build vendor-example')
Lei YU5e0dcb32019-08-02 18:04:34 +08004
Lei YUc4cfc6e2019-08-02 11:30:10 +08005option('MANIFEST_FILE',
6 type: 'string',
7 value: 'MANIFEST',
8 description: 'The path of the MANIFEST file')
9
10option('SOFTWARE_OBJPATH',
11 type: 'string',
12 value: '/xyz/openbmc_project/software',
13 description: 'The software manager Dbus root')
14
Lei YU5e0dcb32019-08-02 18:04:34 +080015option('PSU_INVENTORY_PATH_BASE',
Lei YUc4cfc6e2019-08-02 11:30:10 +080016 type: 'string',
Lei YU5e0dcb32019-08-02 18:04:34 +080017 value: '/xyz/openbmc_project/inventory/system',
18 description: 'The base path for PSU inventory')
Lei YU5f3584d2019-08-27 16:28:53 +080019
Lei YU12c9f4c2019-09-11 15:08:15 +080020option('IMG_DIR',
21 type: 'string',
22 value: '/tmp/images',
23 description: 'The directory where downloaded or uploaded PSU images are placed and extracted')
Lei YU5f3584d2019-08-27 16:28:53 +080024
25# The PSU_VERSION_UTIL specifies an executable that accepts the PSU
26# inventory path as input, and output the version string, e.g
27# psutils get-version /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0
28# or in vendor-example
Lei YU65207482019-10-11 16:39:36 +080029# get_version <some-psu-path>
Lei YU5f3584d2019-08-27 16:28:53 +080030option('PSU_VERSION_UTIL',
31 type: 'string',
Lei YU8ccc6532019-12-23 17:15:25 +080032 value: '/usr/bin/psutils --raw --get-version',
Lei YU5f3584d2019-08-27 16:28:53 +080033 description: 'The command and arguments to get PSU version')
Lei YU12c9f4c2019-09-11 15:08:15 +080034
Lei YU65207482019-10-11 16:39:36 +080035# The PSU_VERSION_COMPARE_UTIL specifies an executable that accepts the PSU
36# versions as input, and outputs which version is the newest, e.g.
37# psutils get-version 0001 0002 0003 # May output 0003
38# or in vendor-example
39# get_latest_version 0001 0002 0003 # output 0003
40option('PSU_VERSION_COMPARE_UTIL',
41 type: 'string',
Lei YU8ccc6532019-12-23 17:15:25 +080042 value: '/usr/bin/psutils --raw --compare',
Lei YU65207482019-10-11 16:39:36 +080043 description: 'The command and arguments to compare PSU versions')
44
Lei YU12c9f4c2019-09-11 15:08:15 +080045# The PSU update service
46# It shall take a path containing the PSU image(s) as the input
47option('PSU_UPDATE_SERVICE',
48 type: 'string',
49 value: 'psu-update@.service',
50 description: 'The PSU update service')
Lei YU2e0e2de2019-09-26 16:42:23 +080051
52option('IMG_DIR_PERSIST',
53 type: 'string',
54 value: '/var/lib/obmc/psu',
55 description: 'The writable directory to store updated PSU images persistently')
56
57option('IMG_DIR_BUILTIN',
58 type: 'string',
Lei YU58c26e32019-09-27 17:52:06 +080059 value: '/usr/share/obmc/psu',
Lei YU2e0e2de2019-09-26 16:42:23 +080060 description: 'The read-only directory where the built-in PSU images are stored')