Dhruvaraj Subhashchandran | 8b9b469 | 2020-09-24 11:59:42 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | |
Dhruvaraj Subhashchandran | 9f55736 | 2021-05-12 06:28:20 -0500 | [diff] [blame] | 3 | unit_files += {'input': 'dump-extensions/openpower-dumps/clear_hostdumps_poweroff.service', |
| 4 | 'output': 'clear_hostdumps_poweroff.service'} |
| 5 | |
Dhruvaraj Subhashchandran | 796a92e | 2021-05-05 13:15:24 -0500 | [diff] [blame] | 6 | # Configuration header file(openpower_dumps_config.h) generation |
| 7 | opconf_data = configuration_data() |
| 8 | |
| 9 | opconf_data.set_quoted('SYSTEM_DUMP_OBJPATH', get_option('SYSTEM_DUMP_OBJPATH'), |
| 10 | description : 'The system dump manager D-Bus path' |
| 11 | ) |
| 12 | opconf_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 | |
| 16 | opconf_data.set_quoted('RESOURCE_DUMP_OBJPATH', get_option('RESOURCE_DUMP_OBJPATH'), |
| 17 | description : 'The resource dump manager D-Bus path' |
| 18 | ) |
| 19 | opconf_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 Subhashchandran | 4a95984 | 2021-09-30 02:55:52 -0500 | [diff] [blame^] | 22 | |
| 23 | |
| 24 | opconf_data.set_quoted('HOSTBOOT_DUMP_OBJPATH', get_option('HOSTBOOT_DUMP_OBJPATH'), |
| 25 | description : 'The Hostboot dump manager D-Bus path' |
| 26 | ) |
| 27 | opconf_data.set_quoted('HOSTBOOT_DUMP_OBJ_ENTRY', get_option('HOSTBOOT_DUMP_OBJ_ENTRY'), |
| 28 | description : 'The hostboot dump entry D-Bus object path' |
| 29 | ) |
| 30 | opconf_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 | ) |
| 33 | opconf_data.set_quoted('HOSTBOOT_DUMP_PATH', get_option('HOSTBOOT_DUMP_PATH'), |
| 34 | description : 'Directory where Hostboot dumps are placed' |
| 35 | ) |
| 36 | opconf_data.set('HOSTBOOT_DUMP_MAX_SIZE', get_option('HOSTBOOT_DUMP_MAX_SIZE'), |
| 37 | description : 'Maximum size of one Hostboot dump in kilo bytes' |
| 38 | ) |
| 39 | opconf_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 | ) |
| 42 | opconf_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 Subhashchandran | 796a92e | 2021-05-05 13:15:24 -0500 | [diff] [blame] | 46 | configure_file(configuration : opconf_data, |
| 47 | output : 'openpower_dumps_config.h' |
| 48 | ) |
| 49 | |
Dhruvaraj Subhashchandran | 8b9b469 | 2020-09-24 11:59:42 -0500 | [diff] [blame] | 50 | phosphor_dump_manager_sources += [ |
| 51 | 'dump-extensions/openpower-dumps/dump-extensions.cpp', |
| 52 | 'dump-extensions/openpower-dumps/dump_manager_system.cpp', |
Dhruvaraj Subhashchandran | 62337a9 | 2020-11-22 21:24:30 -0600 | [diff] [blame] | 53 | 'dump-extensions/openpower-dumps/system_dump_entry.cpp', |
| 54 | 'dump-extensions/openpower-dumps/dump_manager_resource.cpp', |
Dhruvaraj Subhashchandran | 9a860d6 | 2021-08-20 04:06:06 -0500 | [diff] [blame] | 55 | 'dump-extensions/openpower-dumps/resource_dump_entry.cpp', |
| 56 | 'dump-extensions/openpower-dumps/op_dump_util.cpp' |
Dhruvaraj Subhashchandran | 8b9b469 | 2020-09-24 11:59:42 -0500 | [diff] [blame] | 57 | ] |