145b3537aSGeorge Liu 2f5f87caeSPatrick Williamsoption('tests', type: 'feature', value: 'enabled', description: 'Build tests.') 3f5f87caeSPatrick Williams 445b3537aSGeorge Liuoption( 5f5f87caeSPatrick Williams 'json-config', 6f5f87caeSPatrick Williams type: 'feature', 7f5f87caeSPatrick Williams value: 'enabled', 8f5f87caeSPatrick Williams description: 'Use json at runtime to configure fan packages.', 945b3537aSGeorge Liu) 1045b3537aSGeorge Liu 1145b3537aSGeorge Liuoption( 12f5f87caeSPatrick Williams 'machine-name', 13f5f87caeSPatrick Williams type: 'string', 14f5f87caeSPatrick Williams value: '', 15f5f87caeSPatrick 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( 21f5f87caeSPatrick Williams 'control-service', 22f5f87caeSPatrick Williams type: 'feature', 23f5f87caeSPatrick Williams value: 'enabled', 24f5f87caeSPatrick Williams description: 'Build fan control service.', 2545b3537aSGeorge Liu) 2645b3537aSGeorge Liu 2745b3537aSGeorge Liuoption( 28f5f87caeSPatrick Williams 'json-control', 29f5f87caeSPatrick Williams type: 'feature', 30f5f87caeSPatrick 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 34f5f87caeSPatrick Williams not do anything.''', 3545b3537aSGeorge Liu) 3645b3537aSGeorge Liu 3745b3537aSGeorge Liuoption( 38f5f87caeSPatrick Williams 'control-persist-root-path', 39f5f87caeSPatrick Williams type: 'string', 40f5f87caeSPatrick Williams value: '/var/lib/phosphor-fan-presence/control', 41f5f87caeSPatrick Williams description: 'Base location to persist zone property states', 4245b3537aSGeorge Liu) 4345b3537aSGeorge Liu 4445b3537aSGeorge Liuoption( 45f5f87caeSPatrick Williams 'fan-def-yaml-file', 46f5f87caeSPatrick Williams type: 'string', 47f5f87caeSPatrick Williams value: 'example/fans.yaml', 48f5f87caeSPatrick Williams description: 'Build time fan configuration file', 4945b3537aSGeorge Liu) 5045b3537aSGeorge Liuoption( 51f5f87caeSPatrick Williams 'fan-zone-yaml-file', 52f5f87caeSPatrick Williams type: 'string', 53f5f87caeSPatrick Williams value: 'example/zones.yaml', 54f5f87caeSPatrick Williams description: 'Build time fan configuration file', 5545b3537aSGeorge Liu) 5645b3537aSGeorge Liuoption( 57f5f87caeSPatrick Williams 'zone-events-yaml-file', 58f5f87caeSPatrick Williams type: 'string', 59f5f87caeSPatrick Williams value: 'example/events.yaml', 60f5f87caeSPatrick Williams description: 'Build time fan configuration file', 6145b3537aSGeorge Liu) 6245b3537aSGeorge Liuoption( 63f5f87caeSPatrick Williams 'zone-conditions-yaml-file', 64f5f87caeSPatrick Williams type: 'string', 65f5f87caeSPatrick Williams value: 'example/zone_conditions.yaml', 66f5f87caeSPatrick Williams description: 'Build time fan configuration file', 6745b3537aSGeorge Liu) 6845b3537aSGeorge Liu 6945b3537aSGeorge Liu# Monitor 7045b3537aSGeorge Liu 7145b3537aSGeorge Liuoption( 72f5f87caeSPatrick Williams 'monitor-service', 73f5f87caeSPatrick Williams type: 'feature', 74f5f87caeSPatrick Williams value: 'enabled', 75f5f87caeSPatrick Williams description: 'Build fan monitor service', 7645b3537aSGeorge Liu) 7745b3537aSGeorge Liu 7845b3537aSGeorge Liuoption( 79f5f87caeSPatrick Williams 'fan-monitor-yaml-file', 80f5f87caeSPatrick Williams type: 'string', 81f5f87caeSPatrick Williams value: 'example/monitor.yaml', 82f5f87caeSPatrick Williams description: 'Location of the config file', 8345b3537aSGeorge Liu) 8445b3537aSGeorge Liu 8545b3537aSGeorge Liuoption( 86f5f87caeSPatrick Williams 'num-monitor-log-entries', 87f5f87caeSPatrick Williams type: 'integer', 88f5f87caeSPatrick Williams value: 75, 89f5f87caeSPatrick Williams description: 'Maximum number of entries in the monitor log.', 9045b3537aSGeorge Liu) 9145b3537aSGeorge Liu 9245b3537aSGeorge Liuoption( 93f5f87caeSPatrick Williams 'delay-host-control', 94ea96c55bSMatt Spinler value: 0, 95f5f87caeSPatrick Williams type: 'integer', 96f5f87caeSPatrick Williams description: 'Delay host control when the power is on and the fan sensors are offline.', 9745b3537aSGeorge Liu) 9845b3537aSGeorge Liu 9945b3537aSGeorge Liuoption( 100f5f87caeSPatrick Williams 'monitor-use-host-state', 101f5f87caeSPatrick Williams value: 'disabled', 102f5f87caeSPatrick Williams type: 'feature', 103f5f87caeSPatrick Williams description: 'Use CurrentHostState for fan monitor to decide power state.', 10445b3537aSGeorge Liu) 10545b3537aSGeorge Liu 10645b3537aSGeorge Liu# Presence 10745b3537aSGeorge Liu 10845b3537aSGeorge Liuoption( 109f5f87caeSPatrick Williams 'presence-service', 110f5f87caeSPatrick Williams type: 'feature', 111f5f87caeSPatrick Williams value: 'enabled', 112f5f87caeSPatrick Williams description: 'Build fan presence service.', 11345b3537aSGeorge Liu) 11445b3537aSGeorge Liu 11545b3537aSGeorge Liuoption( 116f5f87caeSPatrick Williams 'presence-config', 117f5f87caeSPatrick Williams type: 'string', 118f5f87caeSPatrick Williams value: 'example/example.yaml', 119f5f87caeSPatrick Williams description: 'Location of the config file', 12045b3537aSGeorge Liu) 12145b3537aSGeorge Liu 12245b3537aSGeorge Liuoption( 123f5f87caeSPatrick Williams 'num-presence-log-entries', 124f5f87caeSPatrick Williams type: 'integer', 125f5f87caeSPatrick Williams value: 50, 126f5f87caeSPatrick Williams description: 'Maximum number of entries in the presence log.', 12745b3537aSGeorge Liu) 12845b3537aSGeorge Liu 12945b3537aSGeorge Liu# Sensor Monitor 13045b3537aSGeorge Liu 13145b3537aSGeorge Liuoption( 132f5f87caeSPatrick Williams 'sensor-monitor-service', 133f5f87caeSPatrick Williams type: 'feature', 134f5f87caeSPatrick Williams value: 'enabled', 135f5f87caeSPatrick Williams description: 'Build sensor monitor.', 13645b3537aSGeorge Liu) 13745b3537aSGeorge Liu 13845b3537aSGeorge Liuoption( 139f5f87caeSPatrick Williams 'sensor-monitor-persist-root-path', 140f5f87caeSPatrick Williams type: 'string', 14145b3537aSGeorge Liu value: '/var/lib/phosphor-fan-presence/sensor-monitor', 142f5f87caeSPatrick Williams description: 'Root path for persisting sensor monitor data.', 14345b3537aSGeorge Liu) 14445b3537aSGeorge Liu 14545b3537aSGeorge Liuoption( 146f5f87caeSPatrick Williams 'sensor-monitor-hard-shutdown-delay', 147f5f87caeSPatrick Williams type: 'integer', 148f5f87caeSPatrick Williams value: 23000, 149f5f87caeSPatrick Williams description: 'Milliseconds to delay the alarm before hard shutdown.', 15045b3537aSGeorge Liu) 15145b3537aSGeorge Liu 15245b3537aSGeorge Liuoption( 153f5f87caeSPatrick Williams 'sensor-monitor-soft-shutdown-delay', 154f5f87caeSPatrick Williams type: 'integer', 155f5f87caeSPatrick Williams value: 900000, 156f5f87caeSPatrick Williams description: 'Milliseconds to delay the alarm before soft shutdown.', 15745b3537aSGeorge Liu) 15845b3537aSGeorge Liu 159235adf91SPatrick Rudolphoption( 160235adf91SPatrick Rudolph 'log-sensor-name-on-error', 161235adf91SPatrick Rudolph type: 'boolean', 162235adf91SPatrick Rudolph value: false, 163235adf91SPatrick Rudolph description: 'Append sensor name to error messages.', 164235adf91SPatrick Rudolph) 165235adf91SPatrick Rudolph 16645b3537aSGeorge Liu# Other 16745b3537aSGeorge Liu 16845b3537aSGeorge Liuoption( 169f5f87caeSPatrick Williams 'cooling-type-service', 170f5f87caeSPatrick Williams type: 'feature', 171*3e2a3fe9SMatt Spinler value: 'enabled', 172f5f87caeSPatrick Williams description: 'Build cooling-type package.', 17345b3537aSGeorge Liu) 17445b3537aSGeorge Liu 17545b3537aSGeorge Liuoption( 176f5f87caeSPatrick Williams 'use-host-power-state', 177f5f87caeSPatrick Williams type: 'feature', 178f5f87caeSPatrick Williams value: 'disabled', 179f5f87caeSPatrick Williams description: 'Enable using the host power state for power state checks.', 18045b3537aSGeorge Liu) 18135fb3a05SJerry C Chen 18235fb3a05SJerry C Chenoption( 183f5f87caeSPatrick Williams 'skip-power-checking', 184f5f87caeSPatrick Williams type: 'feature', 185f5f87caeSPatrick Williams value: 'disabled', 186f5f87caeSPatrick Williams description: 'Skip power state checking while sending threshold alarm event.', 18735fb3a05SJerry C Chen) 18835fb3a05SJerry C Chen 189