blob: 1664f04aae8363bd9063f0a47f793ac910401d57 [file] [log] [blame]
Mike Cappsa0819562022-06-13 10:17:10 -04001
Patrick Williamsf5f87ca2025-02-01 08:36:20 -05002option('tests', type: 'feature', value: 'enabled', description: 'Build tests.')
3
Mike Cappsa0819562022-06-13 10:17:10 -04004option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -05005 'json-config',
6 type: 'feature',
7 value: 'enabled',
8 description: 'Use json at runtime to configure fan packages.',
Mike Cappsa0819562022-06-13 10:17:10 -04009)
10
11option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050012 'machine-name',
13 type: 'string',
14 value: '',
15 description: 'Machine name being built. Used to install the proper JSON config files.',
Mike Cappsa0819562022-06-13 10:17:10 -040016)
17
18# Control
19
20option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050021 'control-service',
22 type: 'feature',
23 value: 'enabled',
24 description: 'Build fan control service.',
Mike Cappsa0819562022-06-13 10:17:10 -040025)
26
27option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050028 'json-control',
29 type: 'feature',
30 value: 'enabled',
Matt Spinler8cfe3012022-08-22 16:38:57 -050031 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 Williamsf5f87ca2025-02-01 08:36:20 -050034 not do anything.''',
Mike Cappsa0819562022-06-13 10:17:10 -040035)
36
37option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050038 '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 Cappsa0819562022-06-13 10:17:10 -040042)
43
44option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050045 'fan-def-yaml-file',
46 type: 'string',
47 value: 'example/fans.yaml',
48 description: 'Build time fan configuration file',
Mike Cappsa0819562022-06-13 10:17:10 -040049)
50option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050051 'fan-zone-yaml-file',
52 type: 'string',
53 value: 'example/zones.yaml',
54 description: 'Build time fan configuration file',
Mike Cappsa0819562022-06-13 10:17:10 -040055)
56option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050057 'zone-events-yaml-file',
58 type: 'string',
59 value: 'example/events.yaml',
60 description: 'Build time fan configuration file',
Mike Cappsa0819562022-06-13 10:17:10 -040061)
62option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050063 'zone-conditions-yaml-file',
64 type: 'string',
65 value: 'example/zone_conditions.yaml',
66 description: 'Build time fan configuration file',
Mike Cappsa0819562022-06-13 10:17:10 -040067)
68
69# Monitor
70
71option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050072 'monitor-service',
73 type: 'feature',
74 value: 'enabled',
75 description: 'Build fan monitor service',
Mike Cappsa0819562022-06-13 10:17:10 -040076)
77
78option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050079 'fan-monitor-yaml-file',
80 type: 'string',
81 value: 'example/monitor.yaml',
82 description: 'Location of the config file',
Mike Cappsa0819562022-06-13 10:17:10 -040083)
84
85option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050086 'num-monitor-log-entries',
87 type: 'integer',
88 value: 75,
89 description: 'Maximum number of entries in the monitor log.',
Mike Cappsa0819562022-06-13 10:17:10 -040090)
91
Chau Ly751c8be2023-01-13 08:21:03 +000092option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -050093 '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 Ly751c8be2023-01-13 08:21:03 +000097)
98
Chau Lyfce14902023-01-13 08:52:33 +000099option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500100 'monitor-use-host-state',
101 value: 'disabled',
102 type: 'feature',
103 description: 'Use CurrentHostState for fan monitor to decide power state.',
Chau Lyfce14902023-01-13 08:52:33 +0000104)
105
Mike Cappsa0819562022-06-13 10:17:10 -0400106# Presence
107
108option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500109 'presence-service',
110 type: 'feature',
111 value: 'enabled',
112 description: 'Build fan presence service.',
Mike Cappsa0819562022-06-13 10:17:10 -0400113)
114
115option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500116 'presence-config',
117 type: 'string',
118 value: 'example/example.yaml',
119 description: 'Location of the config file',
Mike Cappsa0819562022-06-13 10:17:10 -0400120)
121
122option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500123 'num-presence-log-entries',
124 type: 'integer',
125 value: 50,
126 description: 'Maximum number of entries in the presence log.',
Mike Cappsa0819562022-06-13 10:17:10 -0400127)
128
129# Sensor Monitor
130
131option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500132 'sensor-monitor-service',
133 type: 'feature',
134 value: 'enabled',
135 description: 'Build sensor monitor.',
Mike Cappsa0819562022-06-13 10:17:10 -0400136)
137
138option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500139 'sensor-monitor-persist-root-path',
140 type: 'string',
Mike Cappsbf8e56f2022-06-29 14:23:07 -0400141 value: '/var/lib/phosphor-fan-presence/sensor-monitor',
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500142 description: 'Root path for persisting sensor monitor data.',
Mike Cappsa0819562022-06-13 10:17:10 -0400143)
144
145option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500146 'sensor-monitor-hard-shutdown-delay',
147 type: 'integer',
148 value: 23000,
149 description: 'Milliseconds to delay the alarm before hard shutdown.',
Mike Cappsa0819562022-06-13 10:17:10 -0400150)
151
152option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500153 'sensor-monitor-soft-shutdown-delay',
154 type: 'integer',
155 value: 900000,
156 description: 'Milliseconds to delay the alarm before soft shutdown.',
Mike Cappsa0819562022-06-13 10:17:10 -0400157)
158
159# Other
160
161option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500162 'cooling-type-service',
163 type: 'feature',
164 value: 'disabled',
165 description: 'Build cooling-type package.',
Mike Cappsa0819562022-06-13 10:17:10 -0400166)
167
168option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500169 'use-host-power-state',
170 type: 'feature',
171 value: 'disabled',
172 description: 'Enable using the host power state for power state checks.',
Mike Cappsa0819562022-06-13 10:17:10 -0400173)
Jerry C Chen35fb3a02024-08-30 14:54:30 +0800174
175option(
Patrick Williamsf5f87ca2025-02-01 08:36:20 -0500176 'skip-power-checking',
177 type: 'feature',
178 value: 'disabled',
179 description: 'Skip power state checking while sending threshold alarm event.',
Jerry C Chen35fb3a02024-08-30 14:54:30 +0800180)
181