1
2option(
3    'tests', type: 'feature', value: 'enabled', description: 'Build tests.',
4)
5
6option(
7    'json-config', type: 'feature', value: 'enabled',
8    description: 'Use json at runtime to configure fan packages.'
9)
10
11option(
12    'machine-name', type: 'string', value: '',
13    description: 'Machine name being built. Used to install the proper JSON config files.'
14)
15
16# Control
17
18option(
19    'control-service', type: 'feature', value: 'enabled',
20    description: 'Build fan control service.'
21)
22
23option(
24    'json-control', type: 'feature', value: 'enabled',
25    description: '''This can only be used to disable JSON based fan control
26                    (using json-control=disabled) when json-config is enabled.
27                    If json-control=enabled and json-config=disabled it will
28                    not do anything.'''
29)
30
31option(
32    'control-persist-root-path', type: 'string', value: '/var/lib/phosphor-fan-presence/control',
33    description: 'Base location to persist zone property states'
34)
35
36option(
37    'fan-def-yaml-file', type: 'string', value: 'example/fans.yaml',
38    description: 'Build time fan configuration file'
39)
40option(
41    'fan-zone-yaml-file', type: 'string', value: 'example/zones.yaml',
42    description: 'Build time fan configuration file'
43)
44option(
45    'zone-events-yaml-file', type: 'string', value: 'example/events.yaml',
46    description: 'Build time fan configuration file'
47)
48option(
49    'zone-conditions-yaml-file', type: 'string', value: 'example/zone_conditions.yaml',
50    description: 'Build time fan configuration file'
51)
52
53# Monitor
54
55option(
56    'monitor-service', type: 'feature', value: 'enabled',
57    description: 'Build fan monitor service'
58)
59
60option(
61    'fan-monitor-yaml-file', type: 'string', value: 'example/monitor.yaml',
62    description: 'Location of the config file'
63)
64
65option(
66    'num-monitor-log-entries', type: 'integer', value: 75,
67    description: 'Maximum number of entries in the monitor log.'
68)
69
70option(
71    'delay-host-control', value : '0', type: 'integer',
72    description: 'Delay host control when the power is on and the fan sensors are offline.'
73)
74
75option(
76    'monitor-use-host-state', value : 'disabled', type: 'feature',
77    description: 'Use CurrentHostState for fan monitor to decide power state.'
78)
79
80# Presence
81
82option(
83    'presence-service', type: 'feature', value: 'enabled',
84    description: 'Build fan presence service.'
85)
86
87option(
88    'presence-config', type: 'string', value: 'example/example.yaml',
89    description: 'Location of the config file'
90)
91
92option(
93    'num-presence-log-entries', type: 'integer', value: 50,
94    description: 'Maximum number of entries in the presence log.'
95)
96
97# Sensor Monitor
98
99option(
100    'sensor-monitor-service', type: 'feature', value: 'enabled',
101    description: 'Build sensor monitor.'
102)
103
104option(
105    'sensor-monitor-persist-root-path', type: 'string',
106    value: '/var/lib/phosphor-fan-presence/sensor-monitor',
107    description: 'Root path for persisting sensor monitor data.'
108)
109
110option(
111    'sensor-monitor-hard-shutdown-delay', type: 'integer', value: 23000,
112    description: 'Milliseconds to delay the alarm before hard shutdown.'
113)
114
115option(
116    'sensor-monitor-soft-shutdown-delay', type: 'integer', value: 900000,
117    description: 'Milliseconds to delay the alarm before soft shutdown.'
118)
119
120# Other
121
122option(
123    'cooling-type-service', type: 'feature', value: 'disabled',
124    description: 'Build cooling-type package.'
125)
126
127option(
128    'use-host-power-state', type: 'feature', value: 'disabled',
129    description: 'Enable using the host power state for power state checks.'
130)
131