Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 1 | |
| 2 | option( |
| 3 | 'tests', type: 'feature', value: 'enabled', description: 'Build tests.', |
| 4 | ) |
| 5 | |
| 6 | option( |
| 7 | 'json-config', type: 'feature', value: 'enabled', |
| 8 | description: 'Use json at runtime to configure fan packages.' |
| 9 | ) |
| 10 | |
| 11 | option( |
| 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 | |
| 18 | option( |
| 19 | 'control-service', type: 'feature', value: 'enabled', |
| 20 | description: 'Build fan control service.' |
| 21 | ) |
| 22 | |
| 23 | option( |
| 24 | 'json-control', type: 'feature', value: 'enabled', |
Matt Spinler | 8cfe301 | 2022-08-22 16:38:57 -0500 | [diff] [blame] | 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.''' |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 29 | ) |
| 30 | |
| 31 | option( |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 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 | |
| 36 | option( |
| 37 | 'fan-def-yaml-file', type: 'string', value: 'example/fans.yaml', |
| 38 | description: 'Build time fan configuration file' |
| 39 | ) |
| 40 | option( |
| 41 | 'fan-zone-yaml-file', type: 'string', value: 'example/zones.yaml', |
| 42 | description: 'Build time fan configuration file' |
| 43 | ) |
| 44 | option( |
| 45 | 'zone-events-yaml-file', type: 'string', value: 'example/events.yaml', |
| 46 | description: 'Build time fan configuration file' |
| 47 | ) |
| 48 | option( |
| 49 | 'zone-conditions-yaml-file', type: 'string', value: 'example/zone_conditions.yaml', |
| 50 | description: 'Build time fan configuration file' |
| 51 | ) |
| 52 | |
| 53 | # Monitor |
| 54 | |
| 55 | option( |
| 56 | 'monitor-service', type: 'feature', value: 'enabled', |
| 57 | description: 'Build fan monitor service' |
| 58 | ) |
| 59 | |
| 60 | option( |
| 61 | 'fan-monitor-yaml-file', type: 'string', value: 'example/monitor.yaml', |
| 62 | description: 'Location of the config file' |
| 63 | ) |
| 64 | |
| 65 | option( |
| 66 | 'num-monitor-log-entries', type: 'integer', value: 75, |
| 67 | description: 'Maximum number of entries in the monitor log.' |
| 68 | ) |
| 69 | |
Chau Ly | 751c8be | 2023-01-13 08:21:03 +0000 | [diff] [blame] | 70 | option( |
| 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 | |
Chau Ly | fce1490 | 2023-01-13 08:52:33 +0000 | [diff] [blame] | 75 | option( |
| 76 | 'monitor-use-host-state', value : 'disabled', type: 'feature', |
| 77 | description: 'Use CurrentHostState for fan monitor to decide power state.' |
| 78 | ) |
| 79 | |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 80 | # Presence |
| 81 | |
| 82 | option( |
| 83 | 'presence-service', type: 'feature', value: 'enabled', |
| 84 | description: 'Build fan presence service.' |
| 85 | ) |
| 86 | |
| 87 | option( |
| 88 | 'presence-config', type: 'string', value: 'example/example.yaml', |
| 89 | description: 'Location of the config file' |
| 90 | ) |
| 91 | |
| 92 | option( |
| 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 | |
| 99 | option( |
| 100 | 'sensor-monitor-service', type: 'feature', value: 'enabled', |
| 101 | description: 'Build sensor monitor.' |
| 102 | ) |
| 103 | |
| 104 | option( |
Mike Capps | bf8e56f | 2022-06-29 14:23:07 -0400 | [diff] [blame] | 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.' |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 108 | ) |
| 109 | |
| 110 | option( |
| 111 | 'sensor-monitor-hard-shutdown-delay', type: 'integer', value: 23000, |
| 112 | description: 'Milliseconds to delay the alarm before hard shutdown.' |
| 113 | ) |
| 114 | |
| 115 | option( |
| 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 | |
| 122 | option( |
| 123 | 'cooling-type-service', type: 'feature', value: 'disabled', |
| 124 | description: 'Build cooling-type package.' |
| 125 | ) |
| 126 | |
| 127 | option( |
Matt Spinler | b7dd3e2 | 2022-08-19 11:33:02 -0500 | [diff] [blame] | 128 | 'use-host-power-state', type: 'feature', value: 'disabled', |
| 129 | description: 'Enable using the host power state for power state checks.' |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 130 | ) |
Jerry C Chen | 35fb3a0 | 2024-08-30 14:54:30 +0800 | [diff] [blame^] | 131 | |
| 132 | option( |
| 133 | 'skip-power-checking', type: 'feature', value: 'disabled', |
| 134 | description: 'Skip power state checking while sending threshold alarm event.' |
| 135 | ) |
| 136 | |