##// END OF EJS Templates
Cmake:...
jeandet -
r303:4516b415f0c6 R3_plus draft
parent child
Show More
@@ -1,82 +1,105
1 cmake_minimum_required (VERSION 2.6)
1 cmake_minimum_required (VERSION 2.6)
2 project (FSW)
2 project (FSW)
3
3
4 include(sparc-rtems)
4 include(sparc-rtems)
5
5
6 include_directories("../header"
6 include_directories("../header"
7 "../header/lfr_common_headers"
7 "../header/lfr_common_headers"
8 "../header/processing"
8 "../header/processing"
9 "../LFR_basic-parameters"
9 "../LFR_basic-parameters"
10 "../src")
10 "../src")
11
11
12 set(SOURCES wf_handler.c
12 set(SOURCES wf_handler.c
13 tc_handler.c
13 tc_handler.c
14 fsw_misc.c
14 fsw_misc.c
15 fsw_init.c
15 fsw_init.c
16 fsw_globals.c
16 fsw_globals.c
17 fsw_spacewire.c
17 fsw_spacewire.c
18 tc_load_dump_parameters.c
18 tc_load_dump_parameters.c
19 tm_lfr_tc_exe.c
19 tm_lfr_tc_exe.c
20 tc_acceptance.c
20 tc_acceptance.c
21 processing/fsw_processing.c
21 processing/fsw_processing.c
22 processing/avf0_prc0.c
22 processing/avf0_prc0.c
23 processing/avf1_prc1.c
23 processing/avf1_prc1.c
24 processing/avf2_prc2.c
24 processing/avf2_prc2.c
25 lfr_cpu_usage_report.c
25 lfr_cpu_usage_report.c
26 ${LFR_BP_SRC}
26 ${LFR_BP_SRC}
27 ../header/wf_handler.h
28 ../header/tc_handler.h
29 ../header/grlib_regs.h
30 ../header/fsw_misc.h
31 ../header/fsw_init.h
32 ../header/fsw_spacewire.h
33 ../header/tc_load_dump_parameters.h
34 ../header/tm_lfr_tc_exe.h
35 ../header/tc_acceptance.h
36 ../header/processing/fsw_processing.h
37 ../header/processing/avf0_prc0.h
38 ../header/processing/avf1_prc1.h
39 ../header/processing/avf2_prc2.h
40 ../header/fsw_params_wf_handler.h
41 ../header/lfr_cpu_usage_report.h
42 ../header/lfr_common_headers/ccsds_types.h
43 ../header/lfr_common_headers/fsw_params.h
44 ../header/lfr_common_headers/fsw_params_nb_bytes.h
45 ../header/lfr_common_headers/fsw_params_processing.h
46 ../header/lfr_common_headers/tm_byte_positions.h
47 ../LFR_basic-parameters/basic_parameters.h
48 ../LFR_basic-parameters/basic_parameters_params.h
49 ../header/GscMemoryLPP.hpp
27 )
50 )
28
51
29
52
30 option(FSW_verbose "Enable verbose LFR" ON)
53 option(FSW_verbose "Enable verbose LFR" ON)
31 option(FSW_boot_messages "Enable LFR boot messages" ON)
54 option(FSW_boot_messages "Enable LFR boot messages" ON)
32 option(FSW_debug_messages "Enable LFR debug messages" ON)
55 option(FSW_debug_messages "Enable LFR debug messages" ON)
33 option(FSW_cpu_usage_report "Enable LFR cpu usage report" OFF)
56 option(FSW_cpu_usage_report "Enable LFR cpu usage report" OFF)
34 option(FSW_stack_report "Enable LFR stack report" OFF)
57 option(FSW_stack_report "Enable LFR stack report" OFF)
35 option(FSW_vhdl_dev "?" OFF)
58 option(FSW_vhdl_dev "?" OFF)
36 option(FSW_lpp_dpu_destid "Set to debug at LPP" ON)
59 option(FSW_lpp_dpu_destid "Set to debug at LPP" ON)
37 option(FSW_debug_watchdog "Enable debug watchdog" OFF)
60 option(FSW_debug_watchdog "Enable debug watchdog" OFF)
38 option(FSW_debug_tch "?" OFF)
61 option(FSW_debug_tch "?" OFF)
39
62
40 set(SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE)
63 set(SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE)
41 set(SW_VERSION_N2 "1" CACHE STRING "Choose N2 FSW Version." FORCE)
64 set(SW_VERSION_N2 "1" CACHE STRING "Choose N2 FSW Version." FORCE)
42 set(SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE)
65 set(SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE)
43 set(SW_VERSION_N4 "4" CACHE STRING "Choose N4 FSW Version." FORCE)
66 set(SW_VERSION_N4 "4" CACHE STRING "Choose N4 FSW Version." FORCE)
44
67
45
68
46 if(FSW_verbose)
69 if(FSW_verbose)
47 add_definitions(-DPRINT_MESSAGES_ON_CONSOLE)
70 add_definitions(-DPRINT_MESSAGES_ON_CONSOLE)
48 endif()
71 endif()
49 if(FSW_boot_messages)
72 if(FSW_boot_messages)
50 add_definitions(-DBOOT_MESSAGES)
73 add_definitions(-DBOOT_MESSAGES)
51 endif()
74 endif()
52 if(FSW_debug_messages)
75 if(FSW_debug_messages)
53 add_definitions(-DDEBUG_MESSAGES)
76 add_definitions(-DDEBUG_MESSAGES)
54 endif()
77 endif()
55 if(FSW_cpu_usage_report)
78 if(FSW_cpu_usage_report)
56 add_definitions(-DPRINT_TASK_STATISTICS)
79 add_definitions(-DPRINT_TASK_STATISTICS)
57 endif()
80 endif()
58 if(FSW_stack_report)
81 if(FSW_stack_report)
59 add_definitions(-DPRINT_STACK_REPORT)
82 add_definitions(-DPRINT_STACK_REPORT)
60 endif()
83 endif()
61 if(FSW_vhdl_dev)
84 if(FSW_vhdl_dev)
62 add_definitions(-DVHDL_DEV)
85 add_definitions(-DVHDL_DEV)
63 endif()
86 endif()
64 if(FSW_lpp_dpu_destid)
87 if(FSW_lpp_dpu_destid)
65 add_definitions(-DLPP_DPU_DESTID)
88 add_definitions(-DLPP_DPU_DESTID)
66 endif()
89 endif()
67 if(FSW_debug_watchdog)
90 if(FSW_debug_watchdog)
68 add_definitions(-DDEBUG_WATCHDOG)
91 add_definitions(-DDEBUG_WATCHDOG)
69 endif()
92 endif()
70 if(FSW_debug_tch)
93 if(FSW_debug_tch)
71 add_definitions(-DDEBUG_TCH)
94 add_definitions(-DDEBUG_TCH)
72 endif()
95 endif()
73
96
74 add_definitions(-DMSB_FIRST_TCH)
97 add_definitions(-DMSB_FIRST_TCH)
75
98
76 add_definitions(-DSWVERSION=-1-0)
99 add_definitions(-DSWVERSION=-1-0)
77 add_definitions(-DSW_VERSION_N1=${SW_VERSION_N1})
100 add_definitions(-DSW_VERSION_N1=${SW_VERSION_N1})
78 add_definitions(-DSW_VERSION_N2=${SW_VERSION_N2})
101 add_definitions(-DSW_VERSION_N2=${SW_VERSION_N2})
79 add_definitions(-DSW_VERSION_N3=${SW_VERSION_N3})
102 add_definitions(-DSW_VERSION_N3=${SW_VERSION_N3})
80 add_definitions(-DSW_VERSION_N4=${SW_VERSION_N4})
103 add_definitions(-DSW_VERSION_N4=${SW_VERSION_N4})
81
104
82 add_executable(FSW ${SOURCES})
105 add_executable(FSW ${SOURCES})
@@ -1,72 +1,88
1 cmake_minimum_required (VERSION 2.6)
1 cmake_minimum_required (VERSION 2.6)
2 project (timegen)
2 project (timegen)
3
3
4 include(sparc-rtems)
4 include(sparc-rtems)
5
5
6 include_directories("./src"
6 include_directories("./src"
7 "./header"
7 "./header"
8 "./header/processing"
8 "./header/processing"
9 "./src/LFR_basic-parameters")
9 "./src/LFR_basic-parameters")
10
10
11 set(SOURCES src/tc_handler.c
11 set(SOURCES src/tc_handler.c
12 src/fsw_misc.c
12 src/fsw_misc.c
13 src/fsw_init.c
13 src/fsw_init.c
14 src/fsw_globals.c
14 src/fsw_globals.c
15 src/fsw_spacewire.c
15 src/fsw_spacewire.c
16 src/tc_acceptance.c
16 src/tc_acceptance.c
17 ../LFR_basic-parameters/basic_parameters.c)
17 ../LFR_basic-parameters/basic_parameters.c
18 header/tc_handler.h
19 header/grlib_regs.h
20 header/fsw_params.h
21 header/fsw_misc.h
22 header/fsw_init.h
23 header/ccsds_types.h
24 header/fsw_spacewire.h
25 header/tc_acceptance.h
26 header/fsw_params_nb_bytes.h
27 header/fsw_params_processing.h
28 header/fsw_params_wf_handler.h
29 header/lfr_cpu_usage_report.h
30 ../LFR_basic-parameters/basic_parameters.h
31 ../LFR_basic-parameters/basic_parameters_params.h
32 header/TC_types.h
33 )
18
34
19
35
20 option(timegen_verbose "Enable verbose Timegen" ON)
36 option(timegen_verbose "Enable verbose Timegen" ON)
21 option(timegen_boot_messages "Enable Timegen boot messages" ON)
37 option(timegen_boot_messages "Enable Timegen boot messages" ON)
22 option(timegen_debug_messages "Enable Timegen debug messages" ON)
38 option(timegen_debug_messages "Enable Timegen debug messages" ON)
23 option(timegen_cpu_usage_report "Enable Timegen cpu usage report" OFF)
39 option(timegen_cpu_usage_report "Enable Timegen cpu usage report" OFF)
24 option(timegen_stack_report "Enable Timegen stack report" OFF)
40 option(timegen_stack_report "Enable Timegen stack report" OFF)
25 option(timegen_vhdl_dev "?" OFF)
41 option(timegen_vhdl_dev "?" OFF)
26 option(timegen_lpp_dpu_destid "Set to debug at LPP" ON)
42 option(timegen_lpp_dpu_destid "Set to debug at LPP" ON)
27 option(timegen_debug_watchdog "Enable debug watchdog" OFF)
43 option(timegen_debug_watchdog "Enable debug watchdog" OFF)
28 option(timegen_debug_tch "?" OFF)
44 option(timegen_debug_tch "?" OFF)
29
45
30 set(TIMEGEN_SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE)
46 set(TIMEGEN_SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE)
31 set(TIMEGEN_SW_VERSION_N2 "1" CACHE STRING "Choose N2 FSW Version." FORCE)
47 set(TIMEGEN_SW_VERSION_N2 "1" CACHE STRING "Choose N2 FSW Version." FORCE)
32 set(TIMEGEN_SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE)
48 set(TIMEGEN_SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE)
33 set(TIMEGEN_SW_VERSION_N4 "4" CACHE STRING "Choose N4 FSW Version." FORCE)
49 set(TIMEGEN_SW_VERSION_N4 "4" CACHE STRING "Choose N4 FSW Version." FORCE)
34
50
35
51
36 if (timegen_verbose)
52 if (timegen_verbose)
37 add_definitions(-DPRINT_MESSAGES_ON_CONSOLE)
53 add_definitions(-DPRINT_MESSAGES_ON_CONSOLE)
38 endif()
54 endif()
39 if (timegen_boot_messages)
55 if (timegen_boot_messages)
40 add_definitions(-DBOOT_MESSAGES)
56 add_definitions(-DBOOT_MESSAGES)
41 endif()
57 endif()
42 if (timegen_debug_messages)
58 if (timegen_debug_messages)
43 add_definitions(-DDEBUG_MESSAGES)
59 add_definitions(-DDEBUG_MESSAGES)
44 endif()
60 endif()
45 if (timegen_cpu_usage_report)
61 if (timegen_cpu_usage_report)
46 add_definitions(-DPRINT_TASK_STATISTICS)
62 add_definitions(-DPRINT_TASK_STATISTICS)
47 endif()
63 endif()
48 if (timegen_stack_report)
64 if (timegen_stack_report)
49 add_definitions(-DPRINT_STACK_REPORT)
65 add_definitions(-DPRINT_STACK_REPORT)
50 endif()
66 endif()
51 if (timegen_vhdl_dev)
67 if (timegen_vhdl_dev)
52 add_definitions(-DVHDL_DEV)
68 add_definitions(-DVHDL_DEV)
53 endif()
69 endif()
54 if (timegen_lpp_dpu_destid)
70 if (timegen_lpp_dpu_destid)
55 add_definitions(-DLPP_DPU_DESTID)
71 add_definitions(-DLPP_DPU_DESTID)
56 endif()
72 endif()
57 if (timegen_debug_watchdog)
73 if (timegen_debug_watchdog)
58 add_definitions(-DDEBUG_WATCHDOG)
74 add_definitions(-DDEBUG_WATCHDOG)
59 endif()
75 endif()
60 if (timegen_debug_tch)
76 if (timegen_debug_tch)
61 add_definitions(-DDEBUG_TCH)
77 add_definitions(-DDEBUG_TCH)
62 endif()
78 endif()
63
79
64 add_definitions(-DMSB_FIRST_TCH)
80 add_definitions(-DMSB_FIRST_TCH)
65
81
66 add_definitions(-DSWVERSION=-1-0)
82 add_definitions(-DSWVERSION=-1-0)
67 add_definitions(-DSW_VERSION_N1=${TIMEGEN_SW_VERSION_N1})
83 add_definitions(-DSW_VERSION_N1=${TIMEGEN_SW_VERSION_N1})
68 add_definitions(-DSW_VERSION_N2=${TIMEGEN_SW_VERSION_N2})
84 add_definitions(-DSW_VERSION_N2=${TIMEGEN_SW_VERSION_N2})
69 add_definitions(-DSW_VERSION_N3=${TIMEGEN_SW_VERSION_N3})
85 add_definitions(-DSW_VERSION_N3=${TIMEGEN_SW_VERSION_N3})
70 add_definitions(-DSW_VERSION_N4=${TIMEGEN_SW_VERSION_N4})
86 add_definitions(-DSW_VERSION_N4=${TIMEGEN_SW_VERSION_N4})
71
87
72 add_executable(timegen ${SOURCES})
88 add_executable(timegen ${SOURCES})
General Comments 7
Under Review
author

Auto status change to "Under Review"

Changed commits:
  * 1 added
  * 0 removed

Changed files:
  * M src/CMakeLists.txt
  * M timegen/CMakeLists.txt
Approved

Status change > Approved

Approved

Closing with Status change > Approved

You need to be logged in to leave comments. Login now