Lei YU | 5e0dcb3 | 2019-08-02 18:04:34 +0800 | [diff] [blame] | 1 | option('tests', type: 'feature', description: 'Build tests') |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 2 | option( |
| 3 | 'oe-sdk', |
| 4 | type: 'feature', |
| 5 | value: 'disabled', |
| 6 | description: 'Enable OE SDK', |
| 7 | ) |
| 8 | option( |
| 9 | 'examples', |
| 10 | type: 'boolean', |
| 11 | value: true, |
| 12 | description: 'Build vendor-example', |
| 13 | ) |
Lei YU | 5e0dcb3 | 2019-08-02 18:04:34 +0800 | [diff] [blame] | 14 | |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 15 | option( |
| 16 | 'MANIFEST_FILE', |
| 17 | type: 'string', |
| 18 | value: 'MANIFEST', |
| 19 | description: 'The path of the MANIFEST file', |
| 20 | ) |
Lei YU | c4cfc6e | 2019-08-02 11:30:10 +0800 | [diff] [blame] | 21 | |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 22 | option( |
| 23 | 'SOFTWARE_OBJPATH', |
| 24 | type: 'string', |
| 25 | value: '/xyz/openbmc_project/software', |
| 26 | description: 'The software manager Dbus root', |
| 27 | ) |
Lei YU | c4cfc6e | 2019-08-02 11:30:10 +0800 | [diff] [blame] | 28 | |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 29 | option( |
| 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 YU | 5f3584d | 2019-08-27 16:28:53 +0800 | [diff] [blame] | 35 | |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 36 | option( |
| 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 YU | 5f3584d | 2019-08-27 16:28:53 +0800 | [diff] [blame] | 42 | |
| 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 McCarney | 783406e | 2024-11-17 21:49:37 -0600 | [diff] [blame] | 45 | # psutils --get-version /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0 |
Lei YU | 5f3584d | 2019-08-27 16:28:53 +0800 | [diff] [blame] | 46 | # or in vendor-example |
Lei YU | 6520748 | 2019-10-11 16:39:36 +0800 | [diff] [blame] | 47 | # get_version <some-psu-path> |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 48 | option( |
| 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 YU | 12c9f4c | 2019-09-11 15:08:15 +0800 | [diff] [blame] | 54 | |
Shawn McCarney | 783406e | 2024-11-17 21:49:37 -0600 | [diff] [blame] | 55 | # 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 Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 59 | option( |
| 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 McCarney | 783406e | 2024-11-17 21:49:37 -0600 | [diff] [blame] | 65 | |
Lei YU | 6520748 | 2019-10-11 16:39:36 +0800 | [diff] [blame] | 66 | # 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 Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 71 | option( |
| 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 YU | 6520748 | 2019-10-11 16:39:36 +0800 | [diff] [blame] | 77 | |
Lei YU | 12c9f4c | 2019-09-11 15:08:15 +0800 | [diff] [blame] | 78 | # The PSU update service |
| 79 | # It shall take a path containing the PSU image(s) as the input |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 80 | option( |
| 81 | 'PSU_UPDATE_SERVICE', |
| 82 | type: 'string', |
| 83 | value: 'psu-update@.service', |
| 84 | description: 'The PSU update service', |
| 85 | ) |
Lei YU | 2e0e2de | 2019-09-26 16:42:23 +0800 | [diff] [blame] | 86 | |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 87 | option( |
| 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 YU | 2e0e2de | 2019-09-26 16:42:23 +0800 | [diff] [blame] | 93 | |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 94 | option( |
| 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 Awada | fb86e79 | 2024-09-11 10:51:17 -0500 | [diff] [blame] | 100 | |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 101 | option( |
| 102 | 'ALWAYS_USE_BUILTIN_IMG_DIR', |
Faisal Awada | fb86e79 | 2024-09-11 10:51:17 -0500 | [diff] [blame] | 103 | type: 'boolean', |
| 104 | value: false, |
Patrick Williams | 8a08ac1 | 2025-02-01 08:37:15 -0500 | [diff] [blame] | 105 | description: 'Only scan for PSU images in IMG_BUILTIN_DIR', |
| 106 | ) |