1 2option('tests', type: 'feature', value: 'enabled', description: 'Build tests.') 3 4option( 5 'json-config', 6 type: 'feature', 7 value: 'enabled', 8 description: 'Use json at runtime to configure fan packages.', 9) 10 11option( 12 'machine-name', 13 type: 'string', 14 value: '', 15 description: 'Machine name being built. Used to install the proper JSON config files.', 16) 17 18# Control 19 20option( 21 'control-service', 22 type: 'feature', 23 value: 'enabled', 24 description: 'Build fan control service.', 25) 26 27option( 28 'json-control', 29 type: 'feature', 30 value: 'enabled', 31 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 34 not do anything.''', 35) 36 37option( 38 'control-persist-root-path', 39 type: 'string', 40 value: '/var/lib/phosphor-fan-presence/control', 41 description: 'Base location to persist zone property states', 42) 43 44option( 45 'fan-def-yaml-file', 46 type: 'string', 47 value: 'example/fans.yaml', 48 description: 'Build time fan configuration file', 49) 50option( 51 'fan-zone-yaml-file', 52 type: 'string', 53 value: 'example/zones.yaml', 54 description: 'Build time fan configuration file', 55) 56option( 57 'zone-events-yaml-file', 58 type: 'string', 59 value: 'example/events.yaml', 60 description: 'Build time fan configuration file', 61) 62option( 63 'zone-conditions-yaml-file', 64 type: 'string', 65 value: 'example/zone_conditions.yaml', 66 description: 'Build time fan configuration file', 67) 68 69# Monitor 70 71option( 72 'monitor-service', 73 type: 'feature', 74 value: 'enabled', 75 description: 'Build fan monitor service', 76) 77 78option( 79 'fan-monitor-yaml-file', 80 type: 'string', 81 value: 'example/monitor.yaml', 82 description: 'Location of the config file', 83) 84 85option( 86 'num-monitor-log-entries', 87 type: 'integer', 88 value: 75, 89 description: 'Maximum number of entries in the monitor log.', 90) 91 92option( 93 '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.', 97) 98 99option( 100 'monitor-use-host-state', 101 value: 'disabled', 102 type: 'feature', 103 description: 'Use CurrentHostState for fan monitor to decide power state.', 104) 105 106# Presence 107 108option( 109 'presence-service', 110 type: 'feature', 111 value: 'enabled', 112 description: 'Build fan presence service.', 113) 114 115option( 116 'presence-config', 117 type: 'string', 118 value: 'example/example.yaml', 119 description: 'Location of the config file', 120) 121 122option( 123 'num-presence-log-entries', 124 type: 'integer', 125 value: 50, 126 description: 'Maximum number of entries in the presence log.', 127) 128 129# Sensor Monitor 130 131option( 132 'sensor-monitor-service', 133 type: 'feature', 134 value: 'enabled', 135 description: 'Build sensor monitor.', 136) 137 138option( 139 'sensor-monitor-persist-root-path', 140 type: 'string', 141 value: '/var/lib/phosphor-fan-presence/sensor-monitor', 142 description: 'Root path for persisting sensor monitor data.', 143) 144 145option( 146 'sensor-monitor-hard-shutdown-delay', 147 type: 'integer', 148 value: 23000, 149 description: 'Milliseconds to delay the alarm before hard shutdown.', 150) 151 152option( 153 'sensor-monitor-soft-shutdown-delay', 154 type: 'integer', 155 value: 900000, 156 description: 'Milliseconds to delay the alarm before soft shutdown.', 157) 158 159# Other 160 161option( 162 'cooling-type-service', 163 type: 'feature', 164 value: 'disabled', 165 description: 'Build cooling-type package.', 166) 167 168option( 169 'use-host-power-state', 170 type: 'feature', 171 value: 'disabled', 172 description: 'Enable using the host power state for power state checks.', 173) 174 175option( 176 'skip-power-checking', 177 type: 'feature', 178 value: 'disabled', 179 description: 'Skip power state checking while sending threshold alarm event.', 180) 181 182