@@ -23,3 +23,10 function (check_b2bst target bin) | |||
|
23 | 23 | COMMAND ${rtems_dir}/bin/sparc-rtems-objdump -d ${bin}/${target} | ${CMAKE_SOURCE_DIR}/sparc/leon3ft-b2bst-scan.tcl |
|
24 | 24 | ) |
|
25 | 25 | endfunction() |
|
26 | ||
|
27 | function (build_srec target bin rev) | |
|
28 | add_custom_command(TARGET ${target} | |
|
29 | POST_BUILD | |
|
30 | COMMAND ${rtems_dir}/bin/sparc-rtems-objcopy -j .data -F srec ${bin}/${target} RpwLfrApp_XXXX_data_rev-${rev}.srec && ${rtems_dir}/bin/sparc-rtems-objcopy -j .text -F srec ${bin}/${target} RpwLfrApp_XXXX_text_rev-${rev}.srec | |
|
31 | ) | |
|
32 | endfunction() |
@@ -64,7 +64,7 option(FSW_debug_tch "?" OFF) | |||
|
64 | 64 | set(SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE) |
|
65 | 65 | set(SW_VERSION_N2 "2" CACHE STRING "Choose N2 FSW Version." FORCE) |
|
66 | 66 | set(SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE) |
|
67 |
set(SW_VERSION_N4 "1 |
|
|
67 | set(SW_VERSION_N4 "17" CACHE STRING "Choose N4 FSW Version." FORCE) | |
|
68 | 68 | |
|
69 | 69 | if(FSW_verbose) |
|
70 | 70 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) |
@@ -108,5 +108,10 if(fix-b2bst) | |||
|
108 | 108 | check_b2bst(fsw ${CMAKE_CURRENT_BINARY_DIR}) |
|
109 | 109 | endif() |
|
110 | 110 | |
|
111 | if(NOT FSW_lpp_dpu_destid) | |
|
112 | build_srec(fsw ${CMAKE_CURRENT_BINARY_DIR} "${SW_VERSION_N1}-${SW_VERSION_N2}-${SW_VERSION_N3}-${SW_VERSION_N4}") | |
|
113 | endif() | |
|
114 | ||
|
115 | ||
|
111 | 116 | add_test_cppcheck(fsw STYLE UNUSED_FUNCTIONS POSSIBLE_ERROR MISSING_INCLUDE) |
|
112 | 117 |
General Comments 0
You need to be logged in to leave comments.
Login now