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