Commit Graph

31 Commits (10beeab6c27615e0d3945c337cb4aa21f9fcb3f3)

Author SHA1 Message Date
Rajkumar Kanagaraj 6d4caad83d CMake: Move CMAKE_CROSSCOMPILING check inside library CMake 2021-05-20 06:26:10 -07:00
Martin Kojtal 65e246fe4d CMake: add mbed_ prefix to our CMake files
To avoid conflicts as we expose our CMake list files via CMAKE_MODULE_PATH. Some files already include it, this
aligns the rest of files.

I leave app.cmake as it is - it's user facing and it would be breaking change. We can clean this one for the next major version.
2021-04-14 13:09:27 +01:00
Martin Kojtal ad8b9f651e CMake targets: remove labels usage, not required anymore 2021-03-15 11:46:15 +00:00
Hugues Kamba 01875ebb09 WICED: Move directory to WiFi driver
WICED is something is build to Cypress WiFi on multiple devices, it's a binary form. It is owned
by Seeed studio
2021-02-12 16:40:22 +00:00
Hugues Kamba d7a7d44b4b CMake: Refactor WIO_EMW3166 support
Ensure WICED is included for Mbed targets that require it.

This also removes the need for checking MBED_TARGET_LABELS repeatedly and
allows us to be more flexible in the way we include MBED_TARGET
source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-12 16:11:31 +00:00
Robert Walton d9e184b6c6 cmake: Refactor ST targets
Refactor all ST targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-04 15:26:36 +00:00
Hugues Kamba 470cc1a1a6 CMake: Add support for Arm's CM3DS_MPS2 target 2021-01-15 16:32:43 +00:00
Harrison Mutai f8805df55b CMake: add cmake support for Toshiba targets 2021-01-05 09:20:41 +00:00
Hugues Kamba fc4e43557d CMake: Add support Ambiq targets 2020-12-17 11:13:42 +00:00
Martin Kojtal 94cc37b380
Merge pull request #14027 from hugueskamba/hk_cmake_fix_analog_devices_support
CMake: Fix Analog Devices targets support
2020-12-17 10:28:42 +00:00
Harrison Mutai e8614b341b CMake: Port Renesas targets to CMake
Add targets subdirectory to high level CMake configuration file and
create new configurations for MCUs and individual targets. Change the
interpreter in the ARM scatter file to armclang, which is required for
CMake. Remove private and public interfaces in emac target
configuration. Ensure that all targets build on the arm gcc compiler and
arm compiler.
2020-12-11 16:52:18 +00:00
Hugues Kamba 99c92b5005 CMake: Fix Analog Devices targets support
* Fix CMake syntax errors
* Fix indentation
* List directories and source files in alpahabetical order with spaces between files located in different directories
* Create STARTUP_FILE variable as done for all other targets
2020-12-11 11:06:46 +00:00
Martin Kojtal 6a83bc096f CMake: fix targets missing ) 2020-12-10 15:56:45 +00:00
Martin Kojtal 7c70a0c494 Merge branch 'port_analog_devices' of https://github.com/harmut01/mbed-os into dev_cmake_targets 2020-12-10 13:40:38 +00:00
Martin Kojtal a1ec4ed198 Merge branch 'hk_cmake_add_samsung' of https://github.com/hugueskamba/mbed-os into dev_cmake_targets 2020-12-10 13:36:18 +00:00
Martin Kojtal ae74aa6acd Merge branch 'hk_cmake_wiced_suppport' of https://github.com/hugueskamba/mbed-os into hugueskamba-hk_cmake_wiced_suppport 2020-12-10 13:32:20 +00:00
Harrison Mutai 6b0fceb2ff Add CMake support for all Renesas targets
Add configuration files for targets and individual MCUs. Add include
paths and sources to mbed-core link library and specify linker and
startup scripts.
2020-12-10 12:33:03 +00:00
Hugues Kamba 4acc57c2f4 CMake: Add support for LPC11XX_11CXX targets
All LPC11XX_11CXX targets supported by Mbed OS
can now be built with CMake.
2020-12-10 11:27:27 +00:00
Hugues Kamba af5782b290 CMake: Add support for Samsung SIDK_S1SBP6A target 2020-12-10 09:39:37 +00:00
Hugues Kamba 3865b0cb4e CMake: Add support for SiLabs EFM32GG targets 2020-12-09 15:29:58 +00:00
Hugues Kamba f13e4959c9 CMake: Add support for GigaDevice targets
Add CMakeLists.txt files to list all the target sources and include directories
2020-12-07 11:25:12 +00:00
Martin Kojtal 660b964bb2
Merge pull request #13970 from hugueskamba/hk_cmake_add_maxim_support
CMake: Add support for all Maxim Mbed targets
2020-12-07 11:01:13 +00:00
Hugues Kamba b66439f39b CMake: Add support for CY8CKIT064B0S2_4343W 2020-12-01 15:16:35 +00:00
Hugues Kamba 348b4e9770 CMake: Add support for Maxim MAX32620C targets
Add CMakeLists.txt file to for the target family source files.
2020-12-01 15:08:32 +00:00
Hugues Kamba b4bc521f13 CMake: Add support for WICED target
* Add CMakeLists.txt file
* Update the list of supported target
2020-12-01 15:05:28 +00:00
Martin Kojtal 28eeee2b4c
Merge pull request #13922 from 0xc0170/cmake-nuvoton
CMake: add nuvoton targets
2020-11-27 11:02:53 +00:00
Hugues Kamba ec9c6cbc02 CMake: Add support for all ARM's FM Mbed targets
Add CMakeLists.txt files so all ARM's FM Mbed targets can be built with CMake
2020-11-25 14:55:17 +00:00
Martin Kojtal 02c35fdd48 CMake: add nuvoton targets 2020-11-18 15:18:18 +00:00
Rajkumar Kanagaraj 8016a53400 CMake: replace usage of the mbed_add_cmake_directory_if_labels() function (#13754)
Directories that start with special prefixes (TARGET_, FEATURE_, COMPONENT_)  are added to the build based on Mbed target configuration from targets.json instead of calling utility function mbed_add_cmake_directory_if_labels().
2020-11-06 17:25:21 +00:00
Hugues Kamba 8b21238e08 CMake: Fix failure due to events and netsocket dirs changes 2020-11-06 17:25:17 +00:00
Hugues Kamba 70d92298b8 CMake: Add support for K64F target 2020-11-06 17:25:15 +00:00