Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 1 | |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 2 | option('tests', type: 'feature', value: 'enabled', description: 'Build tests.') |
| 3 | |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 4 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 5 | 'json-config', |
| 6 | type: 'feature', |
| 7 | value: 'enabled', |
| 8 | description: 'Use json at runtime to configure fan packages.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 9 | ) |
| 10 | |
| 11 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 12 | 'machine-name', |
| 13 | type: 'string', |
| 14 | value: '', |
| 15 | description: 'Machine name being built. Used to install the proper JSON config files.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | # Control |
| 19 | |
| 20 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 21 | 'control-service', |
| 22 | type: 'feature', |
| 23 | value: 'enabled', |
| 24 | description: 'Build fan control service.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 25 | ) |
| 26 | |
| 27 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 28 | 'json-control', |
| 29 | type: 'feature', |
| 30 | value: 'enabled', |
Matt Spinler | 8cfe301 | 2022-08-22 16:38:57 -0500 | [diff] [blame] | 31 | description: '''This can only be used to disable JSON based fan control |
| 32 | (using json-control=disabled) when json-config is enabled. |
| 33 | If json-control=enabled and json-config=disabled it will |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 34 | not do anything.''', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 35 | ) |
| 36 | |
| 37 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 38 | 'control-persist-root-path', |
| 39 | type: 'string', |
| 40 | value: '/var/lib/phosphor-fan-presence/control', |
| 41 | description: 'Base location to persist zone property states', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 42 | ) |
| 43 | |
| 44 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 45 | 'fan-def-yaml-file', |
| 46 | type: 'string', |
| 47 | value: 'example/fans.yaml', |
| 48 | description: 'Build time fan configuration file', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 49 | ) |
| 50 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 51 | 'fan-zone-yaml-file', |
| 52 | type: 'string', |
| 53 | value: 'example/zones.yaml', |
| 54 | description: 'Build time fan configuration file', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 55 | ) |
| 56 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 57 | 'zone-events-yaml-file', |
| 58 | type: 'string', |
| 59 | value: 'example/events.yaml', |
| 60 | description: 'Build time fan configuration file', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 61 | ) |
| 62 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 63 | 'zone-conditions-yaml-file', |
| 64 | type: 'string', |
| 65 | value: 'example/zone_conditions.yaml', |
| 66 | description: 'Build time fan configuration file', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 67 | ) |
| 68 | |
| 69 | # Monitor |
| 70 | |
| 71 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 72 | 'monitor-service', |
| 73 | type: 'feature', |
| 74 | value: 'enabled', |
| 75 | description: 'Build fan monitor service', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 76 | ) |
| 77 | |
| 78 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 79 | 'fan-monitor-yaml-file', |
| 80 | type: 'string', |
| 81 | value: 'example/monitor.yaml', |
| 82 | description: 'Location of the config file', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 83 | ) |
| 84 | |
| 85 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 86 | 'num-monitor-log-entries', |
| 87 | type: 'integer', |
| 88 | value: 75, |
| 89 | description: 'Maximum number of entries in the monitor log.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 90 | ) |
| 91 | |
Chau Ly | 751c8be | 2023-01-13 08:21:03 +0000 | [diff] [blame] | 92 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 93 | 'delay-host-control', |
| 94 | value: '0', |
| 95 | type: 'integer', |
| 96 | description: 'Delay host control when the power is on and the fan sensors are offline.', |
Chau Ly | 751c8be | 2023-01-13 08:21:03 +0000 | [diff] [blame] | 97 | ) |
| 98 | |
Chau Ly | fce1490 | 2023-01-13 08:52:33 +0000 | [diff] [blame] | 99 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 100 | 'monitor-use-host-state', |
| 101 | value: 'disabled', |
| 102 | type: 'feature', |
| 103 | description: 'Use CurrentHostState for fan monitor to decide power state.', |
Chau Ly | fce1490 | 2023-01-13 08:52:33 +0000 | [diff] [blame] | 104 | ) |
| 105 | |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 106 | # Presence |
| 107 | |
| 108 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 109 | 'presence-service', |
| 110 | type: 'feature', |
| 111 | value: 'enabled', |
| 112 | description: 'Build fan presence service.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 113 | ) |
| 114 | |
| 115 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 116 | 'presence-config', |
| 117 | type: 'string', |
| 118 | value: 'example/example.yaml', |
| 119 | description: 'Location of the config file', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 120 | ) |
| 121 | |
| 122 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 123 | 'num-presence-log-entries', |
| 124 | type: 'integer', |
| 125 | value: 50, |
| 126 | description: 'Maximum number of entries in the presence log.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 127 | ) |
| 128 | |
| 129 | # Sensor Monitor |
| 130 | |
| 131 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 132 | 'sensor-monitor-service', |
| 133 | type: 'feature', |
| 134 | value: 'enabled', |
| 135 | description: 'Build sensor monitor.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 136 | ) |
| 137 | |
| 138 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 139 | 'sensor-monitor-persist-root-path', |
| 140 | type: 'string', |
Mike Capps | bf8e56f | 2022-06-29 14:23:07 -0400 | [diff] [blame] | 141 | value: '/var/lib/phosphor-fan-presence/sensor-monitor', |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 142 | description: 'Root path for persisting sensor monitor data.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 143 | ) |
| 144 | |
| 145 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 146 | 'sensor-monitor-hard-shutdown-delay', |
| 147 | type: 'integer', |
| 148 | value: 23000, |
| 149 | description: 'Milliseconds to delay the alarm before hard shutdown.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 150 | ) |
| 151 | |
| 152 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 153 | 'sensor-monitor-soft-shutdown-delay', |
| 154 | type: 'integer', |
| 155 | value: 900000, |
| 156 | description: 'Milliseconds to delay the alarm before soft shutdown.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 157 | ) |
| 158 | |
| 159 | # Other |
| 160 | |
| 161 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 162 | 'cooling-type-service', |
| 163 | type: 'feature', |
| 164 | value: 'disabled', |
| 165 | description: 'Build cooling-type package.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 166 | ) |
| 167 | |
| 168 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 169 | 'use-host-power-state', |
| 170 | type: 'feature', |
| 171 | value: 'disabled', |
| 172 | description: 'Enable using the host power state for power state checks.', |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 173 | ) |
Jerry C Chen | 35fb3a0 | 2024-08-30 14:54:30 +0800 | [diff] [blame] | 174 | |
| 175 | option( |
Patrick Williams | f5f87ca | 2025-02-01 08:36:20 -0500 | [diff] [blame] | 176 | 'skip-power-checking', |
| 177 | type: 'feature', |
| 178 | value: 'disabled', |
| 179 | description: 'Skip power state checking while sending threshold alarm event.', |
Jerry C Chen | 35fb3a0 | 2024-08-30 14:54:30 +0800 | [diff] [blame] | 180 | ) |
| 181 | |