xref: /openbmc/phosphor-state-manager/meson.options (revision ff85df60109ddfb9d56e2a887c6aed83d16c3e3c)
1option('tests', type: 'feature', description: 'Build tests')
2
3option(
4    'host-sched-objpath',
5    type: 'string',
6    value: '/xyz/openbmc_project/scheduled/host',
7    description: 'The scheduled host Dbus root.',
8)
9
10option(
11    'hypervisor-busname',
12    type: 'string',
13    value: 'xyz.openbmc_project.State.Hypervisor',
14    description: 'The Hypervisor DBus busname to own.',
15)
16
17option(
18    'hypervisor-objpath',
19    type: 'string',
20    value: '/xyz/openbmc_project/state/hypervisor',
21    description: 'The hypervisor state manager Dbus root.',
22)
23
24option(
25    'host-state-persist-path',
26    type: 'string',
27    value: '/var/lib/phosphor-state-manager/host{}-PersistData',
28    description: 'Path format of file for storing requested HostState,boot progress and os status.',
29)
30
31option(
32    'poh-counter-persist-path',
33    type: 'string',
34    value: '/var/lib/phosphor-state-manager/chassis{}-POHCounter',
35    description: 'Path format of file for storing POH counter.',
36)
37
38option(
39    'chassis-state-change-persist-path',
40    type: 'string',
41    value: '/var/lib/phosphor-state-manager/chassis{}-StateChangeTime',
42    description: 'Path format of file for storing the state change time.',
43)
44
45option(
46    'scheduled-host-transition-persist-path',
47    type: 'string',
48    value: '/var/lib/phosphor-state-manager/scheduledHostTransition',
49    description: 'Path of file for storing the scheduled time and the requested transition.',
50)
51
52option(
53    'boot-count-max-allowed',
54    type: 'integer',
55    value: 3,
56    description: 'The maximum allowed reboot count.',
57)
58
59option(
60    'class-version',
61    type: 'integer',
62    value: 2,
63    description: 'Class version to register with Cereal.',
64)
65
66option(
67    'warm-reboot',
68    type: 'feature',
69    value: 'enabled',
70    description: 'Enable warm reboots of the system',
71)
72
73option(
74    'force-warm-reboot',
75    type: 'feature',
76    value: 'enabled',
77    description: 'Enable forced warm reboots of the system',
78)
79
80option(
81    'host-gpios',
82    type: 'feature',
83    value: 'enabled',
84    description: 'Enable gpio mechanism to check host state.',
85)
86
87option(
88    'host-gpios-busname',
89    type: 'string',
90    value: 'xyz.openbmc_project.State.HostCondition.Gpio',
91    description: 'The host gpios Dbus busname to own.',
92)
93
94option(
95    'host-gpios-objpath',
96    type: 'string',
97    value: '/xyz/openbmc_project/Gpios',
98    description: 'The host gpios Dbus root.',
99)
100
101option(
102    'sysfs-secure-boot-path',
103    type: 'string',
104    value: '/sys/kernel/debug/aspeed/sbc/secure_boot',
105    description: 'The sysfs path to the secure boot value.',
106)
107
108option(
109    'sysfs-abr-image-path',
110    type: 'string',
111    value: '/sys/kernel/debug/aspeed/sbc/abr_image',
112    description: 'The sysfs path to the abr image value.',
113)
114
115option(
116    'only-run-apr-on-power-loss',
117    type: 'boolean',
118    value: false,
119    description: 'Only run automatic restore policy due to loss of AC power.',
120)
121
122option(
123    'sysfs-tpm-device-path',
124    type: 'string',
125    value: '/sys/firmware/devicetree/base/ahb/apb@1e780000/bus@1e78a000/i2c@680/tpm@2e',
126    description: 'The sysfs path to the tpm device.',
127)
128
129option(
130    'sysfs-tpm-measurement-path',
131    type: 'string',
132    value: '/sys/class/tpm/tpm0/pcr-sha256/0',
133    description: 'The sysfs path to the tpm measurement value.',
134)
135
136option(
137    'only-allow-boot-when-bmc-ready',
138    type: 'boolean',
139    value: false,
140    description: 'Only allow chassis and host power on operations when BMC is Ready.',
141)
142
143option(
144    'check-fwupdate-before-do-transition',
145    type: 'feature',
146    value: 'enabled',
147    description: 'Only do transition request when no firmware being updated',
148)
149
150option(
151    'apply-power-policy-bmc-ready',
152    type: 'feature',
153    value: 'enabled',
154    description: 'Apply the Power policy right after BMC_READY',
155)
156
157option(
158    'install-utils',
159    type: 'feature',
160    value: 'enabled',
161    description: 'Install the obmcutil script',
162)
163
164option(
165    'run-apr-on-pinhole-reset',
166    type: 'boolean',
167    value: true,
168    description: 'run APR when BMC has been rebooted due to pinhole action',
169)
170
171option(
172    'run-apr-on-watchdog-reset',
173    type: 'boolean',
174    value: true,
175    description: 'run APR when BMC has been rebooted due to watchdog',
176)
177
178option(
179    'run-apr-on-software-reset',
180    type: 'boolean',
181    value: true,
182    description: 'run APR when BMC has been rebooted due to software request',
183)
184