Commit Graph

31468 Commits (f8a02ce5dede9bd4ef7d7e869e845345766dd9c6)

Author SHA1 Message Date
Martin Kojtal 5a1d64aae5 CMake: Fix blockdevice components source and include paths
This file paths were updated on master and this was broken after
rebasing.
2020-11-06 17:25:19 +00:00
Martin Kojtal 14c6af1558 cmake: fix sd component recent dir structure 2020-11-06 17:25:19 +00:00
Hugues Kamba f12f9adbed CMake: Fix failures due to device_key and storage dirs move 2020-11-06 17:25:19 +00:00
Hugues Kamba b3c614e921 CMake: Fix CORDIO_LL build failure
List missing CORDIO_LL source file in CMake source file.
2020-11-06 17:25:19 +00:00
Hugues Kamba 01ddb7d471 CMake: Fix NRF52840_DK build failure
* Remove duplicated ARM toolchain directory
* Link with archived cryptocell 310 libraries instead
  of adding them as source files
* Provide default MBED_BOOT_STACK_SIZE definition
  in scatter file as is done for GCC_ARM linker file
2020-11-06 17:25:19 +00:00
Martin Kojtal f856d6b0a3 CMake: Fix include path for Cryptocell 2020-11-06 17:25:19 +00:00
Hugues Kamba 67a20580cf CMake: Fix build failure due to lora, cryptocell, and nfc dirs move 2020-11-06 17:25:19 +00:00
Robert Walton 6687a6bc13 CMake: Check CMake builds CMake-capable targets in Travis 2020-11-06 17:25:19 +00:00
Hugues Kamba 7343ad6c02 CMake: Use `mbed_` prefix for CMake functions 2020-11-06 17:25:19 +00:00
Hugues Kamba fbaeae5a8e CMake: Fix failure due to MbedTLS rdir relocation 2020-11-06 17:25:19 +00:00
Hugues Kamba eb4102be48 CMake: Fix failure due to BLE component dir move 2020-11-06 17:25:19 +00:00
Hugues Kamba 933b1db1be CMake: Set language std per target using properties 2020-11-06 17:25:19 +00:00
Hugues Kamba a1259ecf22 CMake: Remove utility function dependency on mbed-os target
The utility function may be called by targets other than mbed-os
when it is broken into multiple libraries.
2020-11-06 17:25:19 +00:00
Hugues Kamba dde395c82f CMake: Do not hard code target in build profile CMake module
Provide a function in each build profile module to set the toolchain
options. All the functions have the same interface therefore the
CMake source file including the module always calls the same
function regardless of which build profile module is actually
included.
When the `mbed-os` target is broken up into multiple libraries,
a library other than `mbed-os` might need to set the toolchain
options. This will be possible by simply including the module
and calling the function with the target and toolchain for which
to set the options.
2020-11-06 17:25:19 +00:00
Hugues Kamba cb9960cb08 CMake: Do not hard code target in toolchain CMake module
Provide a function in each toolchain module to set the toolchain
specific options. All the functions have the same interface
therefore the CMake source file including the module always calls
the same function regardless of which toolchain module is actually
included.
When the `mbed-os` target is broken up into multiple libraries, a
library other than `mbed-os` might need to set the toolchain options.
This will be possible by simply including the module and calling the
function with the target for which to set the options.
2020-11-06 17:25:19 +00:00
Hugues Kamba c8b4822ed7 CMake: Remove toolchain module dependency on cpu core CMake modules
Set `CMAKE_SYSTEM_PROCESSOR` in toolchain.cmake based on
`MBED_CPU_CORE`.
This information is needed by the ARM toolchain (and possibly other
toolchains), it therefore makes sense to set in `toolchain.cmake`.
2020-11-06 17:25:19 +00:00
Hugues Kamba 400211c490 CMake: Do not hard code target in CPU core CMake module
Provide a function in each CPU core module to set toolchain options.
All the functions have the same interface therefore the CMake source
file including the module always calls the same function regardless
of which cpu core module is actually included.
When the `mbed-os` target is broken up into multiple libraries, a
library other than `mbed-os` might need to set the toolchain options.
This will be possible by simply including the module and calling the
function with the target and toolchain for which to set the options.
2020-11-06 17:25:19 +00:00
Hugues Kamba 20e19de028 CMake: Fix breakage due to BLE dir move 2020-11-06 17:25:19 +00:00
Hugues Kamba de3462dabb CMake: Remove default build type selection from top level source file 2020-11-06 17:25:19 +00:00
Hugues Kamba c30d9259e9 CMake: Fix build failure due to nanostack dir move 2020-11-06 17:25:19 +00:00
Hugues Kamba c1fa350204 CMake: Minor formatting of top level CMakeLists.txt source file 2020-11-06 17:25:18 +00:00
Hugues Kamba f1a3d690c7 CMake: Fix WIO_3G scatter file shebang to work with ARM Compiler 6 2020-11-06 17:25:18 +00:00
Hugues Kamba 5f53181f33 CMake: Fix access to usb hal source file 2020-11-06 17:25:18 +00:00
Hugues Kamba 76fd50a547 CMake: Fix access to cellular drivers 2020-11-06 17:25:18 +00:00
Hugues Kamba c876bc1d75 CMake: Fix build issue due to platform changes 2020-11-06 17:25:18 +00:00
Hugues Kamba e744208c07 CMake: Fix build failure due to drivers and lwipstack dirs move 2020-11-06 17:25:18 +00:00
Martin Kojtal 8b3cec2fa4 Update cmake/toolchain.cmake
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2020-11-06 17:25:18 +00:00
Martin Kojtal aac5e8082b CMake: Profile comments update
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2020-11-06 17:25:18 +00:00
Martin Kojtal 57f39aed01 CMake toolchain: fix options comment
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2020-11-06 17:25:18 +00:00
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
Martin Kojtal 90e5d3aa35 CMake toolchain: clear flags to be able to overwrite them
As Mbed uses different optimizations levels, we should be able to overwrite this via toolchain file.
2020-11-06 17:25:18 +00:00
Martin Kojtal 02c01547d1 CMake profile: fix comments 2020-11-06 17:25:18 +00:00
Martin Kojtal 894f8cc42f Travis: use build type for cmake 2020-11-06 17:25:18 +00:00
Martin Kojtal 18a13804c8 CMake profile: fix alignment 2020-11-06 17:25:18 +00:00
Martin Kojtal 2f89e99ee4 CMake build type: set default Develop profile
Adding also comments for multiconfig/property set.
2020-11-06 17:25:18 +00:00
Martin Kojtal 4f8568cd8e CMake: using CMAKE_BUILD_TYPE for choosing a profile
Select a profile using `-DCMAKE_BUILD_TYPE=<profile>`.
We support 3 profiles: Debug, Develop and Release.
2020-11-06 17:25:18 +00:00
Hugues Kamba 42cd929418 CMake: Fix detection of RTX assembly file
Access MBED_TARGET_LABELS as a global variable instead of a property.
At this point the evaluation of the property MBED_TARGET_LABELS
created in the top level CMakeLists.txt results in an empty string.
2020-11-06 17:25:18 +00:00
Hugues Kamba 4af48a3425 CMake: Remove MCU core specific option from ARM ASM options 2020-11-06 17:25:18 +00:00
Hugues Kamba 1b52415336 CMake: Move MBED_STUDIO_ARM_COMPILER to ARM.cmake module
As its name implies, the flag is specific to the ARM toolchain.
2020-11-06 17:25:18 +00:00
Hugues Kamba 100be3d14b CMake: Fix ARM toolchain compilation
Ensure the MCU core CMake module is added before the toolchain
CMake module as the latter requires CMAKE_SYSTEM_PROCESSOR
to be set when configuring the ARM toolchain.
2020-11-06 17:25:18 +00:00
Hugues Kamba 06f4e1bc8b CMake: Break down RTX CMake source file into 2 source files 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 67c364d281 CMake: set release optimizations 2020-11-06 17:25:17 +00:00
Martin Kojtal 5128b02686 CMake: set develop optimizations 2020-11-06 17:25:17 +00:00
Martin Kojtal d3d88e3be9 CMake: set debug optimizations 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 24c79a4b47 CMake: Fix build failure due to nanostack drivers move 2020-11-06 17:25:17 +00:00
Martin Kojtal 3952212dac Travis cmake: add testing all profiles 2020-11-06 17:25:17 +00:00