xref: /openbmc/phosphor-debug-collector/meson.options (revision 57de251c6282084252500b5e27f3fbad38f87d1f)
13b4e981dSGeorge Liu# SPDX-License-Identifier: Apache-2.0
23b4e981dSGeorge Liu
33b4e981dSGeorge Liuoption('tests', type: 'feature', description: 'Build tests')
43b4e981dSGeorge Liu
5*57de251cSPatrick Williamsoption(
6*57de251cSPatrick Williams    'jffs-workaround',
7*57de251cSPatrick Williams    type: 'feature',
8*57de251cSPatrick Williams    description: 'Turn on jffs workaround for core file',
93b4e981dSGeorge Liu)
103b4e981dSGeorge Liu
11*57de251cSPatrick Williamsoption(
12*57de251cSPatrick Williams    'DUMP_BUSNAME',
13*57de251cSPatrick Williams    type: 'string',
143b4e981dSGeorge Liu    value: 'xyz.openbmc_project.Dump.Manager',
15*57de251cSPatrick Williams    description: 'The D-Bus busname to own',
163b4e981dSGeorge Liu)
173b4e981dSGeorge Liu
18*57de251cSPatrick Williamsoption(
19*57de251cSPatrick Williams    'DUMP_OBJPATH',
20*57de251cSPatrick Williams    type: 'string',
213b4e981dSGeorge Liu    value: '/xyz/openbmc_project/dump',
22*57de251cSPatrick Williams    description: 'The dump manager D-Bus root',
233b4e981dSGeorge Liu)
243b4e981dSGeorge Liu
25*57de251cSPatrick Williamsoption(
26*57de251cSPatrick Williams    'BMC_DUMP_OBJPATH',
27*57de251cSPatrick Williams    type: 'string',
283b4e981dSGeorge Liu    value: '/xyz/openbmc_project/dump/bmc',
29*57de251cSPatrick Williams    description: 'The BMC dump manager D-Bus object path',
303b4e981dSGeorge Liu)
313b4e981dSGeorge Liu
32*57de251cSPatrick Williamsoption(
33*57de251cSPatrick Williams    'CORE_FILE_DIR',
34*57de251cSPatrick Williams    type: 'string',
353b4e981dSGeorge Liu    value: '/var/lib/systemd/coredump',
36*57de251cSPatrick Williams    description: 'Directory where core dumps are placed',
373b4e981dSGeorge Liu)
383b4e981dSGeorge Liu
39*57de251cSPatrick Williamsoption(
40*57de251cSPatrick Williams    'BMC_DUMP_OBJ_ENTRY',
41*57de251cSPatrick Williams    type: 'string',
423b4e981dSGeorge Liu    value: '/xyz/openbmc_project/dump/bmc/entry',
43*57de251cSPatrick Williams    description: 'The BMC dump entry D-Bus object path',
443b4e981dSGeorge Liu)
453b4e981dSGeorge Liu
46*57de251cSPatrick Williamsoption(
47*57de251cSPatrick Williams    'BMC_DUMP_PATH',
48*57de251cSPatrick Williams    type: 'string',
493b4e981dSGeorge Liu    value: '/var/lib/phosphor-debug-collector/dumps/',
50*57de251cSPatrick Williams    description: 'Directory where bmc dumps are placed',
513b4e981dSGeorge Liu)
523b4e981dSGeorge Liu
53*57de251cSPatrick Williamsoption(
54*57de251cSPatrick Williams    'SYSTEMD_PSTORE_PATH',
55*57de251cSPatrick Williams    type: 'string',
563b4e981dSGeorge Liu    value: '/var/lib/systemd/pstore/',
57*57de251cSPatrick Williams    description: 'Path to the systemd pstore directory',
583b4e981dSGeorge Liu)
593b4e981dSGeorge Liu
60*57de251cSPatrick Williamsoption(
61*57de251cSPatrick Williams    'BMC_DUMP_MAX_SIZE',
62*57de251cSPatrick Williams    type: 'integer',
633b4e981dSGeorge Liu    value: 200,
64*57de251cSPatrick Williams    description: 'Maximum size of one bmc dump in kilo bytes',
653b4e981dSGeorge Liu)
663b4e981dSGeorge Liu
67*57de251cSPatrick Williamsoption(
68*57de251cSPatrick Williams    'BMC_DUMP_MIN_SPACE_REQD',
69*57de251cSPatrick Williams    type: 'integer',
703b4e981dSGeorge Liu    value: 20,
71*57de251cSPatrick Williams    description: 'Minimum space required for one bmc dump in kilo bytes',
723b4e981dSGeorge Liu)
733b4e981dSGeorge Liu
74*57de251cSPatrick Williamsoption(
75*57de251cSPatrick Williams    'BMC_DUMP_TOTAL_SIZE',
76*57de251cSPatrick Williams    type: 'integer',
773b4e981dSGeorge Liu    value: 1024,
78*57de251cSPatrick Williams    description: 'Total size of the dump in kilo bytes',
793b4e981dSGeorge Liu)
803b4e981dSGeorge Liu
81*57de251cSPatrick Williamsoption(
82*57de251cSPatrick Williams    'ELOG_ID_PERSIST_PATH',
83*57de251cSPatrick Williams    type: 'string',
843b4e981dSGeorge Liu    value: '/var/lib/phosphor-debug-collector/elogid',
85*57de251cSPatrick Williams    description: 'Path of file for storing elog id\'s, which have associated dumps',
863b4e981dSGeorge Liu)
873b4e981dSGeorge Liu
88*57de251cSPatrick Williamsoption(
89*57de251cSPatrick Williams    'CLASS_VERSION',
90*57de251cSPatrick Williams    type: 'integer',
913b4e981dSGeorge Liu    value: 1,
92*57de251cSPatrick Williams    description: 'Class version to register with Cereal',
933b4e981dSGeorge Liu)
943b4e981dSGeorge Liu
95*57de251cSPatrick Williamsoption(
96*57de251cSPatrick Williams    'ERROR_MAP_YAML',
97*57de251cSPatrick Williams    type: 'string',
983b4e981dSGeorge Liu    value: 'example_errors_watch.yaml',
99*57de251cSPatrick Williams    description: 'YAML filepath containing error object paths',
1003b4e981dSGeorge Liu)
1013b4e981dSGeorge Liu
102*57de251cSPatrick Williamsoption(
103*57de251cSPatrick Williams    'host-transport',
104*57de251cSPatrick Williams    type: 'string',
1053b4e981dSGeorge Liu    value: 'default',
106*57de251cSPatrick Williams    description: 'To specify the host dump transport protocol',
1073b4e981dSGeorge Liu)
1083b4e981dSGeorge Liu
109*57de251cSPatrick Williamsoption(
110*57de251cSPatrick Williams    'openpower-dumps-extension',
111*57de251cSPatrick Williams    type: 'feature',
1123b4e981dSGeorge Liu    value: 'disabled',
113*57de251cSPatrick Williams    description: 'Enable Open Power specific dumps',
114*57de251cSPatrick Williams)
115*57de251cSPatrick Williams
116*57de251cSPatrick Williamsoption(
117*57de251cSPatrick Williams    'dump_rotate_config',
118*57de251cSPatrick Williams    type: 'feature',
119*57de251cSPatrick Williams    value: 'disabled',
120*57de251cSPatrick Williams    description: 'Enable rotate config for bmc dump',
1213b4e981dSGeorge Liu)
1223b4e981dSGeorge Liu
1233b4e981dSGeorge Liu# Fault log options
1243b4e981dSGeorge Liu
125*57de251cSPatrick Williamsoption(
126*57de251cSPatrick Williams    'FAULTLOG_DUMP_PATH',
127*57de251cSPatrick Williams    type: 'string',
1283b4e981dSGeorge Liu    value: '/var/lib/phosphor-debug-collector/faultlogs/',
129*57de251cSPatrick Williams    description: 'Directory where fault logs are placed',
1303b4e981dSGeorge Liu)
1313b4e981dSGeorge Liu
132*57de251cSPatrick Williamsoption(
133*57de251cSPatrick Williams    'FAULTLOG_DUMP_OBJPATH',
134*57de251cSPatrick Williams    type: 'string',
1353b4e981dSGeorge Liu    value: '/xyz/openbmc_project/dump/faultlog',
136*57de251cSPatrick Williams    description: 'The fault log dump manager D-Bus object path',
1373b4e981dSGeorge Liu)
1383b4e981dSGeorge Liu
139*57de251cSPatrick Williamsoption(
140*57de251cSPatrick Williams    'FAULTLOG_DUMP_OBJ_ENTRY',
141*57de251cSPatrick Williams    type: 'string',
1423b4e981dSGeorge Liu    value: '/xyz/openbmc_project/dump/faultlog/entry',
143*57de251cSPatrick Williams    description: 'The fault log dump entry D-Bus object path',
1443b4e981dSGeorge Liu)
1453b4e981dSGeorge Liu
1463b4e981dSGeorge Liu# Configurations for openpower-dump extension
1473b4e981dSGeorge Liu
1483b4e981dSGeorge Liu# System dump options
1493b4e981dSGeorge Liu
150*57de251cSPatrick Williamsoption(
151*57de251cSPatrick Williams    'SYSTEM_DUMP_OBJPATH',
152*57de251cSPatrick Williams    type: 'string',
1533b4e981dSGeorge Liu    value: '/xyz/openbmc_project/dump/system',
154*57de251cSPatrick Williams    description: 'The system dump manager D-Bus object path',
1553b4e981dSGeorge Liu)
1563b4e981dSGeorge Liu
157*57de251cSPatrick Williamsoption(
158*57de251cSPatrick Williams    'SYSTEM_DUMP_OBJ_ENTRY',
159*57de251cSPatrick Williams    type: 'string',
1603b4e981dSGeorge Liu    value: '/xyz/openbmc_project/dump/system/entry',
161*57de251cSPatrick Williams    description: 'The system dump entry D-Bus object path',
1623b4e981dSGeorge Liu)
1633b4e981dSGeorge Liu
1643b4e981dSGeorge Liu# Resource dump options
1653b4e981dSGeorge Liu
166*57de251cSPatrick Williamsoption(
167*57de251cSPatrick Williams    'RESOURCE_DUMP_OBJPATH',
168*57de251cSPatrick Williams    type: 'string',
1693b4e981dSGeorge Liu    value: '/xyz/openbmc_project/dump/resource',
170*57de251cSPatrick Williams    description: 'The resource dump manager D-Bus object path',
1713b4e981dSGeorge Liu)
1723b4e981dSGeorge Liu
173*57de251cSPatrick Williamsoption(
174*57de251cSPatrick Williams    'RESOURCE_DUMP_OBJ_ENTRY',
175*57de251cSPatrick Williams    type: 'string',
1763b4e981dSGeorge Liu    value: '/xyz/openbmc_project/dump/resource/entry',
177*57de251cSPatrick Williams    description: 'The resource dump entry D-Bus object path',
1783b4e981dSGeorge Liu)
179