blob: b1b51d1e469e7224478425f516f7f3d6ecadcbaa [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 -050022opconf_data.set_quoted('HOSTBOOT_DUMP_OBJPATH', get_option('HOSTBOOT_DUMP_OBJPATH'),
23 description : 'The Hostboot dump manager D-Bus path'
24 )
25opconf_data.set_quoted('HOSTBOOT_DUMP_OBJ_ENTRY', get_option('HOSTBOOT_DUMP_OBJ_ENTRY'),
26 description : 'The hostboot dump entry D-Bus object path'
27 )
28opconf_data.set_quoted('HOSTBOOT_DUMP_TMP_FILE_DIR', get_option('HOSTBOOT_DUMP_TMP_FILE_DIR'),
29 description : 'Directory where hostboot dump pieces are stored for packaging'
30 )
31opconf_data.set_quoted('HOSTBOOT_DUMP_PATH', get_option('HOSTBOOT_DUMP_PATH'),
32 description : 'Directory where Hostboot dumps are placed'
33 )
34opconf_data.set('HOSTBOOT_DUMP_MAX_SIZE', get_option('HOSTBOOT_DUMP_MAX_SIZE'),
35 description : 'Maximum size of one Hostboot dump in kilo bytes'
36 )
37opconf_data.set('HOSTBOOT_DUMP_MIN_SPACE_REQD', get_option('HOSTBOOT_DUMP_MIN_SPACE_REQD'),
38 description : 'Minimum space required for one Hostboot dump in kilo bytes'
39 )
40opconf_data.set('HOSTBOOT_DUMP_TOTAL_SIZE', get_option('HOSTBOOT_DUMP_TOTAL_SIZE'),
41 description : 'Total size of the dump in kilo bytes'
42 )
Dhruvaraj Subhashchandran5e129e22021-05-06 08:55:36 -050043opconf_data.set_quoted('HARDWARE_DUMP_OBJPATH', get_option('HARDWARE_DUMP_OBJPATH'),
44 description : 'The hardware dump manager D-Bus path'
45 )
46opconf_data.set_quoted('HARDWARE_DUMP_OBJ_ENTRY', get_option('HARDWARE_DUMP_OBJ_ENTRY'),
47 description : 'The hardware dump entry D-Bus object path'
48 )
49opconf_data.set_quoted('HARDWARE_DUMP_TMP_FILE_DIR', get_option('HARDWARE_DUMP_TMP_FILE_DIR'),
50 description : 'Directory where hardwre dump pieces are stored for packaging'
51 )
52opconf_data.set_quoted('HARDWARE_DUMP_PATH', get_option('HARDWARE_DUMP_PATH'),
53 description : 'Directory where hardware dumps are placed'
54 )
55opconf_data.set('HARDWARE_DUMP_MAX_SIZE', get_option('HARDWARE_DUMP_MAX_SIZE'),
56 description : 'Maximum size of one hardware dump in kilo bytes'
57 )
58opconf_data.set('HARDWARE_DUMP_MIN_SPACE_REQD', get_option('HARDWARE_DUMP_MIN_SPACE_REQD'),
59 description : 'Minimum space required for one hardware dump in kilo bytes'
60 )
61opconf_data.set('HARDWARE_DUMP_TOTAL_SIZE', get_option('HARDWARE_DUMP_TOTAL_SIZE'),
62 description : 'Total size of the dump in kilo bytes'
63 )
Dhruvaraj Subhashchandran4a959842021-09-30 02:55:52 -050064
Dhruvaraj Subhashchandranb7c93362021-09-20 20:15:01 -050065opconf_data.set_quoted('SBE_DUMP_OBJPATH', get_option('SBE_DUMP_OBJPATH'),
66 description : 'The SBE dump manager D-Bus path'
67 )
68opconf_data.set_quoted('SBE_DUMP_OBJ_ENTRY', get_option('SBE_DUMP_OBJ_ENTRY'),
69 description : 'The SBE dump entry D-Bus object path'
70 )
71opconf_data.set_quoted('SBE_DUMP_TMP_FILE_DIR', get_option('SBE_DUMP_TMP_FILE_DIR'),
72 description : 'Directory where SBE dump pieces are stored for packaging'
73 )
74opconf_data.set_quoted('SBE_DUMP_PATH', get_option('SBE_DUMP_PATH'),
75 description : 'Directory where SBE dumps are placed'
76 )
77opconf_data.set('SBE_DUMP_MAX_SIZE', get_option('SBE_DUMP_MAX_SIZE'),
78 description : 'Maximum size of one SBE dump in kilo bytes'
79 )
80opconf_data.set('SBE_DUMP_MIN_SPACE_REQD', get_option('SBE_DUMP_MIN_SPACE_REQD'),
81 description : 'Minimum space required for one SBE dump in kilo bytes'
82 )
83opconf_data.set('SBE_DUMP_TOTAL_SIZE', get_option('SBE_DUMP_TOTAL_SIZE'),
84 description : 'Total size of the dump in kilo bytes'
85 )
86
Dhruvaraj Subhashchandran796a92e2021-05-05 13:15:24 -050087configure_file(configuration : opconf_data,
88 output : 'openpower_dumps_config.h'
89 )
90
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -050091phosphor_dump_manager_sources += [
92 'dump-extensions/openpower-dumps/dump-extensions.cpp',
93 'dump-extensions/openpower-dumps/dump_manager_system.cpp',
Dhruvaraj Subhashchandran62337a92020-11-22 21:24:30 -060094 'dump-extensions/openpower-dumps/system_dump_entry.cpp',
95 'dump-extensions/openpower-dumps/dump_manager_resource.cpp',
Dhruvaraj Subhashchandran9a860d62021-08-20 04:06:06 -050096 'dump-extensions/openpower-dumps/resource_dump_entry.cpp',
97 'dump-extensions/openpower-dumps/op_dump_util.cpp'
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -050098 ]