blob: ac971a4221ac575e121ccc5346b5d216b8b36879 [file] [log] [blame]
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -05001# SPDX-License-Identifier: Apache-2.0
2
Dhruvaraj Subhashchandran9f557362021-05-12 06:28:20 -05003unit_files += {'input': 'dump-extensions/openpower-dumps/clear_hostdumps_poweroff.service',
4 'output': 'clear_hostdumps_poweroff.service'}
5
Dhruvaraj Subhashchandran796a92e2021-05-05 13:15:24 -05006# Configuration header file(openpower_dumps_config.h) generation
7opconf_data = configuration_data()
8
9opconf_data.set_quoted('SYSTEM_DUMP_OBJPATH', get_option('SYSTEM_DUMP_OBJPATH'),
10 description : 'The system dump manager D-Bus path'
11 )
12opconf_data.set_quoted('SYSTEM_DUMP_OBJ_ENTRY', get_option('SYSTEM_DUMP_OBJ_ENTRY'),
13 description : 'The system dump entry D-Bus object path'
14 )
15
16opconf_data.set_quoted('RESOURCE_DUMP_OBJPATH', get_option('RESOURCE_DUMP_OBJPATH'),
17 description : 'The resource dump manager D-Bus path'
18 )
19opconf_data.set_quoted('RESOURCE_DUMP_OBJ_ENTRY', get_option('RESOURCE_DUMP_OBJ_ENTRY'),
20 description : 'The resource dump entry D-Bus object path'
21 )
Dhruvaraj Subhashchandran4a959842021-09-30 02:55:52 -050022
23
24opconf_data.set_quoted('HOSTBOOT_DUMP_OBJPATH', get_option('HOSTBOOT_DUMP_OBJPATH'),
25 description : 'The Hostboot dump manager D-Bus path'
26 )
27opconf_data.set_quoted('HOSTBOOT_DUMP_OBJ_ENTRY', get_option('HOSTBOOT_DUMP_OBJ_ENTRY'),
28 description : 'The hostboot dump entry D-Bus object path'
29 )
30opconf_data.set_quoted('HOSTBOOT_DUMP_TMP_FILE_DIR', get_option('HOSTBOOT_DUMP_TMP_FILE_DIR'),
31 description : 'Directory where hostboot dump pieces are stored for packaging'
32 )
33opconf_data.set_quoted('HOSTBOOT_DUMP_PATH', get_option('HOSTBOOT_DUMP_PATH'),
34 description : 'Directory where Hostboot dumps are placed'
35 )
36opconf_data.set('HOSTBOOT_DUMP_MAX_SIZE', get_option('HOSTBOOT_DUMP_MAX_SIZE'),
37 description : 'Maximum size of one Hostboot dump in kilo bytes'
38 )
39opconf_data.set('HOSTBOOT_DUMP_MIN_SPACE_REQD', get_option('HOSTBOOT_DUMP_MIN_SPACE_REQD'),
40 description : 'Minimum space required for one Hostboot dump in kilo bytes'
41 )
42opconf_data.set('HOSTBOOT_DUMP_TOTAL_SIZE', get_option('HOSTBOOT_DUMP_TOTAL_SIZE'),
43 description : 'Total size of the dump in kilo bytes'
44 )
45
Dhruvaraj Subhashchandran796a92e2021-05-05 13:15:24 -050046configure_file(configuration : opconf_data,
47 output : 'openpower_dumps_config.h'
48 )
49
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -050050phosphor_dump_manager_sources += [
51 'dump-extensions/openpower-dumps/dump-extensions.cpp',
52 'dump-extensions/openpower-dumps/dump_manager_system.cpp',
Dhruvaraj Subhashchandran62337a92020-11-22 21:24:30 -060053 'dump-extensions/openpower-dumps/system_dump_entry.cpp',
54 'dump-extensions/openpower-dumps/dump_manager_resource.cpp',
Dhruvaraj Subhashchandran9a860d62021-08-20 04:06:06 -050055 'dump-extensions/openpower-dumps/resource_dump_entry.cpp',
56 'dump-extensions/openpower-dumps/op_dump_util.cpp'
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -050057 ]