Lei YU | 5e0dcb3 | 2019-08-02 18:04:34 +0800 | [diff] [blame] | 1 | option('tests', type: 'feature', description: 'Build tests') |
Patrick Williams | d5f4fc4 | 2023-11-29 07:18:17 -0600 | [diff] [blame] | 2 | option('oe-sdk', type: 'feature', value: 'disabled', 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 |
Shawn McCarney | 783406e | 2024-11-17 21:49:37 -0600 | [diff] [blame] | 27 | # psutils --get-version /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0 |
Lei YU | 5f3584d | 2019-08-27 16:28:53 +0800 | [diff] [blame] | 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 | |
Shawn McCarney | 783406e | 2024-11-17 21:49:37 -0600 | [diff] [blame] | 35 | # The PSU_MODEL_UTIL specifies an executable that accepts the PSU |
| 36 | # inventory path as input and outputs the PSU model string. |
| 37 | # For example: |
| 38 | # psutils --get-model /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0 |
| 39 | option('PSU_MODEL_UTIL', |
| 40 | type: 'string', |
| 41 | value: '/usr/bin/psutils --raw --get-model', |
| 42 | description: 'The command and arguments to get the PSU model') |
| 43 | |
Lei YU | 6520748 | 2019-10-11 16:39:36 +0800 | [diff] [blame] | 44 | # The PSU_VERSION_COMPARE_UTIL specifies an executable that accepts the PSU |
| 45 | # versions as input, and outputs which version is the newest, e.g. |
| 46 | # psutils get-version 0001 0002 0003 # May output 0003 |
| 47 | # or in vendor-example |
| 48 | # get_latest_version 0001 0002 0003 # output 0003 |
| 49 | option('PSU_VERSION_COMPARE_UTIL', |
| 50 | type: 'string', |
Lei YU | 8ccc653 | 2019-12-23 17:15:25 +0800 | [diff] [blame] | 51 | value: '/usr/bin/psutils --raw --compare', |
Lei YU | 6520748 | 2019-10-11 16:39:36 +0800 | [diff] [blame] | 52 | description: 'The command and arguments to compare PSU versions') |
| 53 | |
Lei YU | 12c9f4c | 2019-09-11 15:08:15 +0800 | [diff] [blame] | 54 | # The PSU update service |
| 55 | # It shall take a path containing the PSU image(s) as the input |
| 56 | option('PSU_UPDATE_SERVICE', |
| 57 | type: 'string', |
| 58 | value: 'psu-update@.service', |
| 59 | description: 'The PSU update service') |
Lei YU | 2e0e2de | 2019-09-26 16:42:23 +0800 | [diff] [blame] | 60 | |
| 61 | option('IMG_DIR_PERSIST', |
| 62 | type: 'string', |
| 63 | value: '/var/lib/obmc/psu', |
| 64 | description: 'The writable directory to store updated PSU images persistently') |
| 65 | |
| 66 | option('IMG_DIR_BUILTIN', |
| 67 | type: 'string', |
Lei YU | 58c26e3 | 2019-09-27 17:52:06 +0800 | [diff] [blame] | 68 | value: '/usr/share/obmc/psu', |
Lei YU | 2e0e2de | 2019-09-26 16:42:23 +0800 | [diff] [blame] | 69 | description: 'The read-only directory where the built-in PSU images are stored') |
Faisal Awada | fb86e79 | 2024-09-11 10:51:17 -0500 | [diff] [blame] | 70 | |
| 71 | option('ALWAYS_USE_BUILTIN_IMG_DIR', |
| 72 | type: 'boolean', |
| 73 | value: false, |
| 74 | description: 'Only scan for PSU images in IMG_BUILTIN_DIR') |