xref: /openbmc/phosphor-fan-presence/meson.options (revision f5f87cae64bc939b42240455a0e37de80c9e17a6)
145b3537aSGeorge Liu
2*f5f87caeSPatrick Williamsoption('tests', type: 'feature', value: 'enabled', description: 'Build tests.')
3*f5f87caeSPatrick Williams
445b3537aSGeorge Liuoption(
5*f5f87caeSPatrick Williams    'json-config',
6*f5f87caeSPatrick Williams    type: 'feature',
7*f5f87caeSPatrick Williams    value: 'enabled',
8*f5f87caeSPatrick Williams    description: 'Use json at runtime to configure fan packages.',
945b3537aSGeorge Liu)
1045b3537aSGeorge Liu
1145b3537aSGeorge Liuoption(
12*f5f87caeSPatrick Williams    'machine-name',
13*f5f87caeSPatrick Williams    type: 'string',
14*f5f87caeSPatrick Williams    value: '',
15*f5f87caeSPatrick Williams    description: 'Machine name being built. Used to install the proper JSON config files.',
1645b3537aSGeorge Liu)
1745b3537aSGeorge Liu
1845b3537aSGeorge Liu# Control
1945b3537aSGeorge Liu
2045b3537aSGeorge Liuoption(
21*f5f87caeSPatrick Williams    'control-service',
22*f5f87caeSPatrick Williams    type: 'feature',
23*f5f87caeSPatrick Williams    value: 'enabled',
24*f5f87caeSPatrick Williams    description: 'Build fan control service.',
2545b3537aSGeorge Liu)
2645b3537aSGeorge Liu
2745b3537aSGeorge Liuoption(
28*f5f87caeSPatrick Williams    'json-control',
29*f5f87caeSPatrick Williams    type: 'feature',
30*f5f87caeSPatrick Williams    value: 'enabled',
3145b3537aSGeorge Liu    description: '''This can only be used to disable JSON based fan control
3245b3537aSGeorge Liu                    (using json-control=disabled) when json-config is enabled.
3345b3537aSGeorge Liu                    If json-control=enabled and json-config=disabled it will
34*f5f87caeSPatrick Williams                    not do anything.''',
3545b3537aSGeorge Liu)
3645b3537aSGeorge Liu
3745b3537aSGeorge Liuoption(
38*f5f87caeSPatrick Williams    'control-persist-root-path',
39*f5f87caeSPatrick Williams    type: 'string',
40*f5f87caeSPatrick Williams    value: '/var/lib/phosphor-fan-presence/control',
41*f5f87caeSPatrick Williams    description: 'Base location to persist zone property states',
4245b3537aSGeorge Liu)
4345b3537aSGeorge Liu
4445b3537aSGeorge Liuoption(
45*f5f87caeSPatrick Williams    'fan-def-yaml-file',
46*f5f87caeSPatrick Williams    type: 'string',
47*f5f87caeSPatrick Williams    value: 'example/fans.yaml',
48*f5f87caeSPatrick Williams    description: 'Build time fan configuration file',
4945b3537aSGeorge Liu)
5045b3537aSGeorge Liuoption(
51*f5f87caeSPatrick Williams    'fan-zone-yaml-file',
52*f5f87caeSPatrick Williams    type: 'string',
53*f5f87caeSPatrick Williams    value: 'example/zones.yaml',
54*f5f87caeSPatrick Williams    description: 'Build time fan configuration file',
5545b3537aSGeorge Liu)
5645b3537aSGeorge Liuoption(
57*f5f87caeSPatrick Williams    'zone-events-yaml-file',
58*f5f87caeSPatrick Williams    type: 'string',
59*f5f87caeSPatrick Williams    value: 'example/events.yaml',
60*f5f87caeSPatrick Williams    description: 'Build time fan configuration file',
6145b3537aSGeorge Liu)
6245b3537aSGeorge Liuoption(
63*f5f87caeSPatrick Williams    'zone-conditions-yaml-file',
64*f5f87caeSPatrick Williams    type: 'string',
65*f5f87caeSPatrick Williams    value: 'example/zone_conditions.yaml',
66*f5f87caeSPatrick Williams    description: 'Build time fan configuration file',
6745b3537aSGeorge Liu)
6845b3537aSGeorge Liu
6945b3537aSGeorge Liu# Monitor
7045b3537aSGeorge Liu
7145b3537aSGeorge Liuoption(
72*f5f87caeSPatrick Williams    'monitor-service',
73*f5f87caeSPatrick Williams    type: 'feature',
74*f5f87caeSPatrick Williams    value: 'enabled',
75*f5f87caeSPatrick Williams    description: 'Build fan monitor service',
7645b3537aSGeorge Liu)
7745b3537aSGeorge Liu
7845b3537aSGeorge Liuoption(
79*f5f87caeSPatrick Williams    'fan-monitor-yaml-file',
80*f5f87caeSPatrick Williams    type: 'string',
81*f5f87caeSPatrick Williams    value: 'example/monitor.yaml',
82*f5f87caeSPatrick Williams    description: 'Location of the config file',
8345b3537aSGeorge Liu)
8445b3537aSGeorge Liu
8545b3537aSGeorge Liuoption(
86*f5f87caeSPatrick Williams    'num-monitor-log-entries',
87*f5f87caeSPatrick Williams    type: 'integer',
88*f5f87caeSPatrick Williams    value: 75,
89*f5f87caeSPatrick Williams    description: 'Maximum number of entries in the monitor log.',
9045b3537aSGeorge Liu)
9145b3537aSGeorge Liu
9245b3537aSGeorge Liuoption(
93*f5f87caeSPatrick Williams    'delay-host-control',
94*f5f87caeSPatrick Williams    value: '0',
95*f5f87caeSPatrick Williams    type: 'integer',
96*f5f87caeSPatrick Williams    description: 'Delay host control when the power is on and the fan sensors are offline.',
9745b3537aSGeorge Liu)
9845b3537aSGeorge Liu
9945b3537aSGeorge Liuoption(
100*f5f87caeSPatrick Williams    'monitor-use-host-state',
101*f5f87caeSPatrick Williams    value: 'disabled',
102*f5f87caeSPatrick Williams    type: 'feature',
103*f5f87caeSPatrick Williams    description: 'Use CurrentHostState for fan monitor to decide power state.',
10445b3537aSGeorge Liu)
10545b3537aSGeorge Liu
10645b3537aSGeorge Liu# Presence
10745b3537aSGeorge Liu
10845b3537aSGeorge Liuoption(
109*f5f87caeSPatrick Williams    'presence-service',
110*f5f87caeSPatrick Williams    type: 'feature',
111*f5f87caeSPatrick Williams    value: 'enabled',
112*f5f87caeSPatrick Williams    description: 'Build fan presence service.',
11345b3537aSGeorge Liu)
11445b3537aSGeorge Liu
11545b3537aSGeorge Liuoption(
116*f5f87caeSPatrick Williams    'presence-config',
117*f5f87caeSPatrick Williams    type: 'string',
118*f5f87caeSPatrick Williams    value: 'example/example.yaml',
119*f5f87caeSPatrick Williams    description: 'Location of the config file',
12045b3537aSGeorge Liu)
12145b3537aSGeorge Liu
12245b3537aSGeorge Liuoption(
123*f5f87caeSPatrick Williams    'num-presence-log-entries',
124*f5f87caeSPatrick Williams    type: 'integer',
125*f5f87caeSPatrick Williams    value: 50,
126*f5f87caeSPatrick Williams    description: 'Maximum number of entries in the presence log.',
12745b3537aSGeorge Liu)
12845b3537aSGeorge Liu
12945b3537aSGeorge Liu# Sensor Monitor
13045b3537aSGeorge Liu
13145b3537aSGeorge Liuoption(
132*f5f87caeSPatrick Williams    'sensor-monitor-service',
133*f5f87caeSPatrick Williams    type: 'feature',
134*f5f87caeSPatrick Williams    value: 'enabled',
135*f5f87caeSPatrick Williams    description: 'Build sensor monitor.',
13645b3537aSGeorge Liu)
13745b3537aSGeorge Liu
13845b3537aSGeorge Liuoption(
139*f5f87caeSPatrick Williams    'sensor-monitor-persist-root-path',
140*f5f87caeSPatrick Williams    type: 'string',
14145b3537aSGeorge Liu    value: '/var/lib/phosphor-fan-presence/sensor-monitor',
142*f5f87caeSPatrick Williams    description: 'Root path for persisting sensor monitor data.',
14345b3537aSGeorge Liu)
14445b3537aSGeorge Liu
14545b3537aSGeorge Liuoption(
146*f5f87caeSPatrick Williams    'sensor-monitor-hard-shutdown-delay',
147*f5f87caeSPatrick Williams    type: 'integer',
148*f5f87caeSPatrick Williams    value: 23000,
149*f5f87caeSPatrick Williams    description: 'Milliseconds to delay the alarm before hard shutdown.',
15045b3537aSGeorge Liu)
15145b3537aSGeorge Liu
15245b3537aSGeorge Liuoption(
153*f5f87caeSPatrick Williams    'sensor-monitor-soft-shutdown-delay',
154*f5f87caeSPatrick Williams    type: 'integer',
155*f5f87caeSPatrick Williams    value: 900000,
156*f5f87caeSPatrick Williams    description: 'Milliseconds to delay the alarm before soft shutdown.',
15745b3537aSGeorge Liu)
15845b3537aSGeorge Liu
15945b3537aSGeorge Liu# Other
16045b3537aSGeorge Liu
16145b3537aSGeorge Liuoption(
162*f5f87caeSPatrick Williams    'cooling-type-service',
163*f5f87caeSPatrick Williams    type: 'feature',
164*f5f87caeSPatrick Williams    value: 'disabled',
165*f5f87caeSPatrick Williams    description: 'Build cooling-type package.',
16645b3537aSGeorge Liu)
16745b3537aSGeorge Liu
16845b3537aSGeorge Liuoption(
169*f5f87caeSPatrick Williams    'use-host-power-state',
170*f5f87caeSPatrick Williams    type: 'feature',
171*f5f87caeSPatrick Williams    value: 'disabled',
172*f5f87caeSPatrick Williams    description: 'Enable using the host power state for power state checks.',
17345b3537aSGeorge Liu)
17435fb3a05SJerry C Chen
17535fb3a05SJerry C Chenoption(
176*f5f87caeSPatrick Williams    'skip-power-checking',
177*f5f87caeSPatrick Williams    type: 'feature',
178*f5f87caeSPatrick Williams    value: 'disabled',
179*f5f87caeSPatrick Williams    description: 'Skip power state checking while sending threshold alarm event.',
18035fb3a05SJerry C Chen)
18135fb3a05SJerry C Chen
182