145b3537aSGeorge Liu
245b3537aSGeorge Liuoption(
345b3537aSGeorge Liu    'tests', type: 'feature', value: 'enabled', description: 'Build tests.',
445b3537aSGeorge Liu)
545b3537aSGeorge Liu
645b3537aSGeorge Liuoption(
745b3537aSGeorge Liu    'json-config', type: 'feature', value: 'enabled',
845b3537aSGeorge Liu    description: 'Use json at runtime to configure fan packages.'
945b3537aSGeorge Liu)
1045b3537aSGeorge Liu
1145b3537aSGeorge Liuoption(
1245b3537aSGeorge Liu    'machine-name', type: 'string', value: '',
1345b3537aSGeorge Liu    description: 'Machine name being built. Used to install the proper JSON config files.'
1445b3537aSGeorge Liu)
1545b3537aSGeorge Liu
1645b3537aSGeorge Liu# Control
1745b3537aSGeorge Liu
1845b3537aSGeorge Liuoption(
1945b3537aSGeorge Liu    'control-service', type: 'feature', value: 'enabled',
2045b3537aSGeorge Liu    description: 'Build fan control service.'
2145b3537aSGeorge Liu)
2245b3537aSGeorge Liu
2345b3537aSGeorge Liuoption(
2445b3537aSGeorge Liu    'json-control', type: 'feature', value: 'enabled',
2545b3537aSGeorge Liu    description: '''This can only be used to disable JSON based fan control
2645b3537aSGeorge Liu                    (using json-control=disabled) when json-config is enabled.
2745b3537aSGeorge Liu                    If json-control=enabled and json-config=disabled it will
2845b3537aSGeorge Liu                    not do anything.'''
2945b3537aSGeorge Liu)
3045b3537aSGeorge Liu
3145b3537aSGeorge Liuoption(
3245b3537aSGeorge Liu    'control-persist-root-path', type: 'string', value: '/var/lib/phosphor-fan-presence/control',
3345b3537aSGeorge Liu    description: 'Base location to persist zone property states'
3445b3537aSGeorge Liu)
3545b3537aSGeorge Liu
3645b3537aSGeorge Liuoption(
3745b3537aSGeorge Liu    'fan-def-yaml-file', type: 'string', value: 'example/fans.yaml',
3845b3537aSGeorge Liu    description: 'Build time fan configuration file'
3945b3537aSGeorge Liu)
4045b3537aSGeorge Liuoption(
4145b3537aSGeorge Liu    'fan-zone-yaml-file', type: 'string', value: 'example/zones.yaml',
4245b3537aSGeorge Liu    description: 'Build time fan configuration file'
4345b3537aSGeorge Liu)
4445b3537aSGeorge Liuoption(
4545b3537aSGeorge Liu    'zone-events-yaml-file', type: 'string', value: 'example/events.yaml',
4645b3537aSGeorge Liu    description: 'Build time fan configuration file'
4745b3537aSGeorge Liu)
4845b3537aSGeorge Liuoption(
4945b3537aSGeorge Liu    'zone-conditions-yaml-file', type: 'string', value: 'example/zone_conditions.yaml',
5045b3537aSGeorge Liu    description: 'Build time fan configuration file'
5145b3537aSGeorge Liu)
5245b3537aSGeorge Liu
5345b3537aSGeorge Liu# Monitor
5445b3537aSGeorge Liu
5545b3537aSGeorge Liuoption(
5645b3537aSGeorge Liu    'monitor-service', type: 'feature', value: 'enabled',
5745b3537aSGeorge Liu    description: 'Build fan monitor service'
5845b3537aSGeorge Liu)
5945b3537aSGeorge Liu
6045b3537aSGeorge Liuoption(
6145b3537aSGeorge Liu    'fan-monitor-yaml-file', type: 'string', value: 'example/monitor.yaml',
6245b3537aSGeorge Liu    description: 'Location of the config file'
6345b3537aSGeorge Liu)
6445b3537aSGeorge Liu
6545b3537aSGeorge Liuoption(
6645b3537aSGeorge Liu    'num-monitor-log-entries', type: 'integer', value: 75,
6745b3537aSGeorge Liu    description: 'Maximum number of entries in the monitor log.'
6845b3537aSGeorge Liu)
6945b3537aSGeorge Liu
7045b3537aSGeorge Liuoption(
7145b3537aSGeorge Liu    'delay-host-control', value : '0', type: 'integer',
7245b3537aSGeorge Liu    description: 'Delay host control when the power is on and the fan sensors are offline.'
7345b3537aSGeorge Liu)
7445b3537aSGeorge Liu
7545b3537aSGeorge Liuoption(
7645b3537aSGeorge Liu    'monitor-use-host-state', value : 'disabled', type: 'feature',
7745b3537aSGeorge Liu    description: 'Use CurrentHostState for fan monitor to decide power state.'
7845b3537aSGeorge Liu)
7945b3537aSGeorge Liu
8045b3537aSGeorge Liu# Presence
8145b3537aSGeorge Liu
8245b3537aSGeorge Liuoption(
8345b3537aSGeorge Liu    'presence-service', type: 'feature', value: 'enabled',
8445b3537aSGeorge Liu    description: 'Build fan presence service.'
8545b3537aSGeorge Liu)
8645b3537aSGeorge Liu
8745b3537aSGeorge Liuoption(
8845b3537aSGeorge Liu    'presence-config', type: 'string', value: 'example/example.yaml',
8945b3537aSGeorge Liu    description: 'Location of the config file'
9045b3537aSGeorge Liu)
9145b3537aSGeorge Liu
9245b3537aSGeorge Liuoption(
9345b3537aSGeorge Liu    'num-presence-log-entries', type: 'integer', value: 50,
9445b3537aSGeorge Liu    description: 'Maximum number of entries in the presence log.'
9545b3537aSGeorge Liu)
9645b3537aSGeorge Liu
9745b3537aSGeorge Liu# Sensor Monitor
9845b3537aSGeorge Liu
9945b3537aSGeorge Liuoption(
10045b3537aSGeorge Liu    'sensor-monitor-service', type: 'feature', value: 'enabled',
10145b3537aSGeorge Liu    description: 'Build sensor monitor.'
10245b3537aSGeorge Liu)
10345b3537aSGeorge Liu
10445b3537aSGeorge Liuoption(
10545b3537aSGeorge Liu    'sensor-monitor-persist-root-path', type: 'string',
10645b3537aSGeorge Liu    value: '/var/lib/phosphor-fan-presence/sensor-monitor',
10745b3537aSGeorge Liu    description: 'Root path for persisting sensor monitor data.'
10845b3537aSGeorge Liu)
10945b3537aSGeorge Liu
11045b3537aSGeorge Liuoption(
11145b3537aSGeorge Liu    'sensor-monitor-hard-shutdown-delay', type: 'integer', value: 23000,
11245b3537aSGeorge Liu    description: 'Milliseconds to delay the alarm before hard shutdown.'
11345b3537aSGeorge Liu)
11445b3537aSGeorge Liu
11545b3537aSGeorge Liuoption(
11645b3537aSGeorge Liu    'sensor-monitor-soft-shutdown-delay', type: 'integer', value: 900000,
11745b3537aSGeorge Liu    description: 'Milliseconds to delay the alarm before soft shutdown.'
11845b3537aSGeorge Liu)
11945b3537aSGeorge Liu
12045b3537aSGeorge Liu# Other
12145b3537aSGeorge Liu
12245b3537aSGeorge Liuoption(
12345b3537aSGeorge Liu    'cooling-type-service', type: 'feature', value: 'disabled',
12445b3537aSGeorge Liu    description: 'Build cooling-type package.'
12545b3537aSGeorge Liu)
12645b3537aSGeorge Liu
12745b3537aSGeorge Liuoption(
12845b3537aSGeorge Liu    'use-host-power-state', type: 'feature', value: 'disabled',
12945b3537aSGeorge Liu    description: 'Enable using the host power state for power state checks.'
13045b3537aSGeorge Liu)
131*35fb3a05SJerry C Chen
132*35fb3a05SJerry C Chenoption(
133*35fb3a05SJerry C Chen    'skip-power-checking', type: 'feature', value: 'disabled',
134*35fb3a05SJerry C Chen    description: 'Skip power state checking while sending threshold alarm event.'
135*35fb3a05SJerry C Chen)
136*35fb3a05SJerry C Chen
137