##// END OF EJS Templates
Increased libgcov gcda buffer to avoid file splitting
Increased libgcov gcda buffer to avoid file splitting

File last commit:

r388:01d5c5b53213 No PWD scrub with...
r388:01d5c5b53213 No PWD scrub with...
Show More
sparc-rtems.cmake
44 lines | 1.7 KiB | text/x-cmake | CMakeLexer
/ sparc / sparc-rtems.cmake
paul
3.2.0.15...
r368 set(rtems_dir /opt/rtems-4.10/)
Switched to cmake, more portable and better conf options!
r299 set(CMAKE_SYSTEM_NAME rtems)
paul
3.2.0.15...
r368 set(CMAKE_C_COMPILER ${rtems_dir}/bin/sparc-rtems-gcc)
set(CMAKE_CXX_COMPILER ${rtems_dir}/bin/sparc-rtems-g++)
set(CMAKE_LINKER ${rtems_dir}/bin/sparc-rtems-g++)
SET(CMAKE_EXE_LINKER_FLAGS "-static")
option(fix-b2bst "Activate -mfix-b2bst switch to mitigate \"LEON3FT Stale Cache Entry After Store with Data Tag Parity Error\" errata, GRLIB-TN-0009" ON)
Switched to cmake, more portable and better conf options!
r299
Added gcov support...
r387 option(Coverage "Enables code coverage" OFF)
set(CMAKE_C_FLAGS_RELEASE "-O3")
set(CMAKE_C_FLAGS_DEBUG "-O0")
paul
3.2.0.15...
r368 if(fix-b2bst)
Added gcov support...
r387 set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfix-b2bst")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -mfix-b2bst")
paul
3.2.0.15...
r368 endif()
Increased libgcov gcda buffer to avoid file splitting
r388 #if(Coverage)
# set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fprofile-arcs -ftest-coverage")
# set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage")
#endif()
Added gcov support...
r387
Added automatic map file production on build.
r371 set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_LINKER> <FLAGS> -Xlinker -Map=<TARGET>.map <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
paul
3.2.0.15...
r368
include_directories("${rtems_dir}/sparc-rtems/leon3/lib/include")
function (check_b2bst target bin)
add_custom_command(TARGET ${target}
POST_BUILD
COMMAND ${rtems_dir}/bin/sparc-rtems-objdump -d ${bin}/${target} | ${CMAKE_SOURCE_DIR}/sparc/leon3ft-b2bst-scan.tcl
)
endfunction()
Added srec production and bumped FSW to 3.2.0.17 since .16 has been delivered...
r377
function (build_srec target bin rev)
add_custom_command(TARGET ${target}
POST_BUILD
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
)
endfunction()