|
1 | 1 | ###########################################################
|
2 | 2 | #
|
3 |
| -# SAMPLE_APP mission build setup |
| 3 | +# BPACC_FUN_APP mission build setup |
4 | 4 | #
|
5 | 5 | # This file is evaluated as part of the "prepare" stage
|
6 | 6 | # and can be used to set up prerequisites for the build,
|
7 | 7 | # such as generating header files
|
8 | 8 | #
|
9 | 9 | ###########################################################
|
10 | 10 |
|
11 |
| -# The list of header files that control the SAMPLE_APP configuration |
12 |
| -set(SAMPLE_APP_MISSION_CONFIG_FILE_LIST |
13 |
| - sample_app_fcncodes.h |
14 |
| - sample_app_interface_cfg.h |
15 |
| - sample_app_mission_cfg.h |
16 |
| - sample_app_perfids.h |
17 |
| - sample_app_msg.h |
18 |
| - sample_app_msgdefs.h |
19 |
| - sample_app_msgstruct.h |
20 |
| - sample_app_tbl.h |
21 |
| - sample_app_tbldefs.h |
22 |
| - sample_app_tblstruct.h |
23 |
| - sample_app_topicids.h |
| 11 | +# The list of header files that control the BPACC_FUN_APP configuration |
| 12 | +set(BPACC_FUN_APP_MISSION_CONFIG_FILE_LIST |
| 13 | + bpacc_fun_fcncodes.h |
| 14 | + bpacc_fun_interface_cfg.h |
| 15 | + bpacc_fun_mission_cfg.h |
| 16 | + bpacc_fun_perfids.h |
| 17 | + bpacc_fun_msg.h |
| 18 | + bpacc_fun_msgdefs.h |
| 19 | + bpacc_fun_msgstruct.h |
| 20 | + bpacc_fun_tbl.h |
| 21 | + bpacc_fun_tbldefs.h |
| 22 | + bpacc_fun_tblstruct.h |
| 23 | + bpacc_fun_topicids.h |
24 | 24 | )
|
25 | 25 |
|
26 | 26 | if (CFE_EDS_ENABLED_BUILD)
|
27 | 27 |
|
28 | 28 | # In an EDS-based build, these files come generated from the EDS tool
|
29 |
| - set(SAMPLE_APP_CFGFILE_SRC_sample_app_interface_cfg "sample_app_eds_designparameters.h") |
30 |
| - set(SAMPLE_APP_CFGFILE_SRC_sample_app_tbldefs "sample_app_eds_typedefs.h") |
31 |
| - set(SAMPLE_APP_CFGFILE_SRC_sample_app_tblstruct "sample_app_eds_typedefs.h") |
32 |
| - set(SAMPLE_APP_CFGFILE_SRC_sample_app_msgdefs "sample_app_eds_typedefs.h") |
33 |
| - set(SAMPLE_APP_CFGFILE_SRC_sample_app_msgstruct "sample_app_eds_typedefs.h") |
34 |
| - set(SAMPLE_APP_CFGFILE_SRC_sample_app_fcncodes "sample_app_eds_cc.h") |
| 29 | + set(BPACC_FUN_APP_CFGFILE_SRC_bpacc_fun_interface_cfg "bpacc_fun_eds_designparameters.h") |
| 30 | + set(BPACC_FUN_APP_CFGFILE_SRC_bpacc_fun_tbldefs "bpacc_fun_eds_typedefs.h") |
| 31 | + set(BPACC_FUN_APP_CFGFILE_SRC_bpacc_fun_tblstruct "bpacc_fun_eds_typedefs.h") |
| 32 | + set(BPACC_FUN_APP_CFGFILE_SRC_bpacc_fun_msgdefs "bpacc_fun_eds_typedefs.h") |
| 33 | + set(BPACC_FUN_APP_CFGFILE_SRC_bpacc_fun_msgstruct "bpacc_fun_eds_typedefs.h") |
| 34 | + set(BPACC_FUN_APP_CFGFILE_SRC_bpacc_fun_fcncodes "bpacc_fun_eds_cc.h") |
35 | 35 |
|
36 | 36 | endif(CFE_EDS_ENABLED_BUILD)
|
37 | 37 |
|
38 | 38 | # Create wrappers around the all the config header files
|
39 | 39 | # This makes them individually overridable by the missions, without modifying
|
40 | 40 | # the distribution default copies
|
41 |
| -foreach(SAMPLE_APP_CFGFILE ${SAMPLE_APP_MISSION_CONFIG_FILE_LIST}) |
42 |
| - get_filename_component(CFGKEY "${SAMPLE_APP_CFGFILE}" NAME_WE) |
43 |
| - if (DEFINED SAMPLE_APP_CFGFILE_SRC_${CFGKEY}) |
44 |
| - set(DEFAULT_SOURCE GENERATED_FILE "${SAMPLE_APP_CFGFILE_SRC_${CFGKEY}}") |
| 41 | +foreach(BPACC_FUN_APP_CFGFILE ${BPACC_FUN_APP_MISSION_CONFIG_FILE_LIST}) |
| 42 | + get_filename_component(CFGKEY "${BPACC_FUN_APP_CFGFILE}" NAME_WE) |
| 43 | + if (DEFINED BPACC_FUN_APP_CFGFILE_SRC_${CFGKEY}) |
| 44 | + set(DEFAULT_SOURCE GENERATED_FILE "${BPACC_FUN_APP_CFGFILE_SRC_${CFGKEY}}") |
45 | 45 | else()
|
46 |
| - set(DEFAULT_SOURCE FALLBACK_FILE "${CMAKE_CURRENT_LIST_DIR}/config/default_${SAMPLE_APP_CFGFILE}") |
| 46 | + set(DEFAULT_SOURCE FALLBACK_FILE "${CMAKE_CURRENT_LIST_DIR}/config/default_${BPACC_FUN_APP_CFGFILE}") |
47 | 47 | endif()
|
48 | 48 | generate_config_includefile(
|
49 |
| - FILE_NAME "${SAMPLE_APP_CFGFILE}" |
| 49 | + FILE_NAME "${BPACC_FUN_APP_CFGFILE}" |
50 | 50 | ${DEFAULT_SOURCE}
|
51 | 51 | )
|
52 | 52 | endforeach()
|
0 commit comments