Commit Graph

7 Commits (57f39aed01a34ef6620d0547b51c0480e573b8e9)

Author SHA1 Message Date
Martin Kojtal 1ebedf2709 CMake GCC ARM: use nosys specs for linker
Use retarged version (nosys.specs) for Mbed OS. To resolve an issue with debug/develop profiles.
Otherwise we get kill or getpid errors from linker, as we use nosys lib but no specs defined.
2020-11-06 17:25:18 +00:00
Hugues Kamba ef11e06cfb CMake: Remove add_executable
Instead provide functions to set the pre and post link commands.
2020-11-06 17:25:17 +00:00
Hugues Kamba c05170fbc8 CMake: Remove app.cmake module
This module was doing things that mbed-os and the application were supposed to do.
Moved the statements form the module to `mbed-os/CMakeLists.txt` and to
`<APPLICATION_ROOT>/CMakeLists.txt` .
Mbed OS also ensures the executable produced uses whatever name the application has set.
2020-11-06 17:25:17 +00:00
Martin Kojtal fa8d9fd21a CMake GCC ARM: add -g3 to the common
Remove -g as g3 already provided
2020-11-06 17:25:17 +00:00
Martin Kojtal 2efe469645 CMake toolchain: set optimization in profiles 2020-11-06 17:25:17 +00:00
Hugues Kamba e172eb33c9 CMake: Use modern CMake techniques to set toolchain options
Use target_compile_options(), target_compile_definitions(),
and target_link_options() to set toolchain options.
2020-11-06 17:25:17 +00:00
Hugues Kamba 6dc5f5a582 CMake: Add CMake scripts 2020-11-06 17:25:14 +00:00