Lei YU | 5e0dcb3 | 2019-08-02 18:04:34 +0800 | [diff] [blame] | 1 | option('tests', type: 'feature', description: 'Build tests') |
| 2 | option('oe-sdk', type: 'feature', description: 'Enable OE SDK') |
Lei YU | 5f3584d | 2019-08-27 16:28:53 +0800 | [diff] [blame] | 3 | option('examples', type: 'boolean', value: true, description: 'Build vendor-example') |
Lei YU | 5e0dcb3 | 2019-08-02 18:04:34 +0800 | [diff] [blame] | 4 | |
Lei YU | c4cfc6e | 2019-08-02 11:30:10 +0800 | [diff] [blame] | 5 | option('MANIFEST_FILE', |
| 6 | type: 'string', |
| 7 | value: 'MANIFEST', |
| 8 | description: 'The path of the MANIFEST file') |
| 9 | |
| 10 | option('SOFTWARE_OBJPATH', |
| 11 | type: 'string', |
| 12 | value: '/xyz/openbmc_project/software', |
| 13 | description: 'The software manager Dbus root') |
| 14 | |
Lei YU | 5e0dcb3 | 2019-08-02 18:04:34 +0800 | [diff] [blame] | 15 | option('PSU_INVENTORY_PATH_BASE', |
Lei YU | c4cfc6e | 2019-08-02 11:30:10 +0800 | [diff] [blame] | 16 | type: 'string', |
Lei YU | 5e0dcb3 | 2019-08-02 18:04:34 +0800 | [diff] [blame] | 17 | value: '/xyz/openbmc_project/inventory/system', |
| 18 | description: 'The base path for PSU inventory') |
Lei YU | 5f3584d | 2019-08-27 16:28:53 +0800 | [diff] [blame] | 19 | |
Lei YU | 12c9f4c | 2019-09-11 15:08:15 +0800 | [diff] [blame] | 20 | option('IMG_DIR', |
| 21 | type: 'string', |
| 22 | value: '/tmp/images', |
| 23 | description: 'The directory where downloaded or uploaded PSU images are placed and extracted') |
Lei YU | 5f3584d | 2019-08-27 16:28:53 +0800 | [diff] [blame] | 24 | |
| 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 YU | 6520748 | 2019-10-11 16:39:36 +0800 | [diff] [blame] | 29 | # get_version <some-psu-path> |
Lei YU | 5f3584d | 2019-08-27 16:28:53 +0800 | [diff] [blame] | 30 | option('PSU_VERSION_UTIL', |
| 31 | type: 'string', |
Lei YU | 8ccc653 | 2019-12-23 17:15:25 +0800 | [diff] [blame] | 32 | value: '/usr/bin/psutils --raw --get-version', |
Lei YU | 5f3584d | 2019-08-27 16:28:53 +0800 | [diff] [blame] | 33 | description: 'The command and arguments to get PSU version') |
Lei YU | 12c9f4c | 2019-09-11 15:08:15 +0800 | [diff] [blame] | 34 | |
Lei YU | 6520748 | 2019-10-11 16:39:36 +0800 | [diff] [blame] | 35 | # 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 |
| 40 | option('PSU_VERSION_COMPARE_UTIL', |
| 41 | type: 'string', |
Lei YU | 8ccc653 | 2019-12-23 17:15:25 +0800 | [diff] [blame] | 42 | value: '/usr/bin/psutils --raw --compare', |
Lei YU | 6520748 | 2019-10-11 16:39:36 +0800 | [diff] [blame] | 43 | description: 'The command and arguments to compare PSU versions') |
| 44 | |
Lei YU | 12c9f4c | 2019-09-11 15:08:15 +0800 | [diff] [blame] | 45 | # The PSU update service |
| 46 | # It shall take a path containing the PSU image(s) as the input |
| 47 | option('PSU_UPDATE_SERVICE', |
| 48 | type: 'string', |
| 49 | value: 'psu-update@.service', |
| 50 | description: 'The PSU update service') |
Lei YU | 2e0e2de | 2019-09-26 16:42:23 +0800 | [diff] [blame] | 51 | |
| 52 | option('IMG_DIR_PERSIST', |
| 53 | type: 'string', |
| 54 | value: '/var/lib/obmc/psu', |
| 55 | description: 'The writable directory to store updated PSU images persistently') |
| 56 | |
| 57 | option('IMG_DIR_BUILTIN', |
| 58 | type: 'string', |
Lei YU | 58c26e3 | 2019-09-27 17:52:06 +0800 | [diff] [blame] | 59 | value: '/usr/share/obmc/psu', |
Lei YU | 2e0e2de | 2019-09-26 16:42:23 +0800 | [diff] [blame] | 60 | description: 'The read-only directory where the built-in PSU images are stored') |