Commit Graph

31468 Commits (f8a02ce5dede9bd4ef7d7e869e845345766dd9c6)

Author SHA1 Message Date
Hugues Kamba 8b21238e08 CMake: Fix failure due to events and netsocket dirs changes 2020-11-06 17:25:17 +00:00
Martin Kojtal ecfee28517 CMake: move env to toolchain file (#13369)
Toolchain sets target toolchain related settings that were in env. We do not need env cmake.
See https://cmake.org/cmake/help/v3.8/manual/cmake-toolchains.7.html for details
2020-11-06 17:25:17 +00:00
Robert Walton 335dfddec1 Add tools generated definitions and properties 2020-11-06 17:25:17 +00:00
Robert Walton 0e1770daf5 Remove gen_config interface library target 2020-11-06 17:25:17 +00:00
Hugues Kamba 396ddc7a4d CMake: Fix build due to system_storage and netsocket dir move in master 2020-11-06 17:25:17 +00:00
Hugues Kamba 4b13332d59 CMake: Issue a fatal error if a lower version of CMake is used 2020-11-06 17:25:17 +00:00
Hugues Kamba 2d1508d9d0 CMake: Ensure targets creation before usage in `target_` functions
Move target creation statements before include statements. The targets
must be created before they can be used in `target_` functions.
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
Devaraj Ranganna debffb6dd1 cmake: Armclang - Fix assembler and linker flags
For Armclang, change compiler flag to `-mcpu` and assembler and linker
flag to `--cpu`.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-11-06 17:25:16 +00:00
Hugues Kamba 7dd73372d4 CMake: Remove unsupported ARM toolchain support 2020-11-06 17:25:16 +00:00
Martin Kojtal 1bb6be340c CMake util: fix copyright 2020-11-06 17:25:16 +00:00
Martin Kojtal 08eb1e3f94 CMake: fix missing copyright 2020-11-06 17:25:16 +00:00
Martin Kojtal e2f38abe6f CMake env: remove components, needs design first 2020-11-06 17:25:16 +00:00
Martin Kojtal b03e94f98b CMake env: fix copyright 2020-11-06 17:25:16 +00:00
Hugues Kamba bd45acba8c CMake: Fix failure due to kvstore and cellular dirs changes 2020-11-06 17:25:16 +00:00
Jaeden Amero 8dabb28cb6 cmake: Remove IAR support
IAR isn't supported anymore. Remove references to IAR from the CMake
build system generator scripts.
2020-11-06 17:25:16 +00:00
Martin Kojtal f0072e7e56 CMake design doc: update to the latest mbed-tools updates
Refactor Mbed OS CMake scripts section - details about mbed-os/cmake scripts
Add mbed-tools - how mbed-tools built an application with CMake
2020-11-06 17:25:16 +00:00
Devaraj Ranganna 10f421258d cmake: Using Arm compiler from Mbed Studio
Added a command line option `-DMBEDIDE=ON` which allows using Arm
compiler shipped with Mbed Studio on local machines.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-11-06 17:25:16 +00:00
Devaraj Ranganna f18622e8d7 cmake: Fix arm compiler build failures
Update arm compiler flags which were causing build failures.

Remove `-MMD` flag as it is not recognised by the Arm compiler.

There are no common flags between compiler, assembler and linker. The
compiler expects `-mcpu` whereas assembler and linker expects `--cpu`.

The `COMMON_FLAGS` in `cmake/toolchains/ARM.cmake` are not recognised by
assembler and linker.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-11-06 17:25:16 +00:00
Devaraj Ranganna 915d552cde cmake: Re-order cmake script inclusions
The script `cmake/env.cmake` enables languages and in the case of Arm
compiler, `CMAKE_SYSTEM_PROCESSOR` is expected to be set before a
language is enabled. `CMAKE_SYSTEM_PROCESSOR` is set in
`cmake/core.cmake`. Therefore, `cmake/core.cmake` is included before
`cmake/env.cmake`.

Similarly, `cmake/profile.cmake` sets compiler options, hence it is
included before enabling languages in `cmake/env.cmake`.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-11-06 17:25:16 +00:00
Devaraj Ranganna 6b5ef8a9a7 cmake: Stringify develop.cmake
Cleanup develop.cmake to remove ARMC5 and uArm compiler flags and
stringify cmake variables.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-11-06 17:25:16 +00:00
Hugues Kamba 71c48e0e8a CMake: remove version number from ARM toolchain
The version number was required previously when ARM Compiler 5
and ARM Compiler 6 were both supported. There was a significant
underlying change between the two that justified having distinct
build options settinfgs. It is very unlikely that such a major change will happen
between ARM Compiler 6 and future versions. It is therefore also very unlikely
that distinct option settings for future versions will be needed.
We should therefore avoid appending version number the same way we do not
append it to GCC toolchain configuration settings.
2020-11-06 17:25:16 +00:00
Hugues Kamba b78ef7ac08 CMake: Fix CI error due to dir restruct of rtos and storage dirs 2020-11-06 17:25:16 +00:00
Hugues Kamba 554a5d3597 CMake: Fix failure due to restructure of rtos and ppp directories 2020-11-06 17:25:16 +00:00
Hugues Kamba 5709dd2752 CMake: Add Travis script to run a basic CI check for PRs 2020-11-06 17:25:15 +00:00
Hugues Kamba 53d712849a CMake: Add support for WIO_3G target 2020-11-06 17:25:15 +00:00
Hugues Kamba 30e88863f4 CMake: Add support for DISCO_L475VG_IOT01A target 2020-11-06 17:25:15 +00:00
Hugues Kamba 8a74bf1d04 CMake: Add support for NRF52840_DK target 2020-11-06 17:25:15 +00:00
Hugues Kamba 70d92298b8 CMake: Add support for K64F target 2020-11-06 17:25:15 +00:00
Hugues Kamba a08be8c8a0 CMake: Add support for storage dir 2020-11-06 17:25:15 +00:00
Hugues Kamba 5c453e5d46 CMake: Add support for rtos dir 2020-11-06 17:25:15 +00:00
Hugues Kamba 929adbe936 CMake: Add support for platform dir 2020-11-06 17:25:15 +00:00
Hugues Kamba 8f9bf40323 CMake: Add support for hal dir 2020-11-06 17:25:15 +00:00
Hugues Kamba 1d6f86f553 CMake: Add support for features dir 2020-11-06 17:25:15 +00:00
Hugues Kamba a63fa605e4 CMake: Add support for events dir 2020-11-06 17:25:15 +00:00
Hugues Kamba 840828947d CMake: Add support for drivers dir 2020-11-06 17:25:15 +00:00
Hugues Kamba 59a7d77abf CMake: Add support for connectivity dir 2020-11-06 17:25:15 +00:00
Hugues Kamba 311b2ca0c5 CMake: Add support for components dir 2020-11-06 17:25:15 +00:00
Hugues Kamba d83648937f CMake: Add support for cmsis dir 2020-11-06 17:25:15 +00:00
Hugues Kamba 6dc5f5a582 CMake: Add CMake scripts 2020-11-06 17:25:14 +00:00
Hugues Kamba f4e4012f81 CMake: Intentionally untrack CMake generated files 2020-11-06 17:25:14 +00:00
Hugues Kamba 52dd933491 CMake: Add design document 2020-11-06 17:25:14 +00:00
Martin Kojtal c29a2e2338
Merge pull request #13811 from pan-/ble-conditional-compilation
Ble conditional compilation
2020-11-06 16:11:10 +00:00
Martin Kojtal 77638f9b72
Merge pull request #13698 from boraozgen/bugfix/spif-read-dummy-bytes
Fix SPIF read dummy cycles not being reset
2020-11-05 15:44:00 +00:00
Martin Kojtal c87736574f
Merge pull request #13862 from jeromecoutant/PR_RTS_FREE
STM32 SERIAL: free RTS/CTS pins
2020-11-05 15:43:29 +00:00
Martin Kojtal 61bed01ee8
Merge pull request #13846 from 0xc0170/fix-stm32-usb-header
STM32 usb: fixing missing header file
2020-11-05 14:48:07 +00:00
Martin Kojtal 50fc0c5906
Merge pull request #13853 from heuisam/master
Samsung: fix baremetal #13851
2020-11-05 14:21:32 +00:00
jeromecoutant 73d1c63741 STM32 SERIAL: free RTS/CTS pins 2020-11-04 15:47:14 +01:00
Heuisam Kwag f661c2389c fix compile error
Including unused header file, "cmsis-os.h",  causes compile errors.
This commit fixes it.

Signed-off-by: Heuisam Kwag <heuisam@samsung.com>
2020-11-04 18:20:01 +09:00
Martin Kojtal 097adb57a2 STM32 usb: fixing missing header file
Fixes #13838
2020-11-04 08:49:04 +00:00