Commit Graph

32493 Commits (f78c24135ce75ab36a28dae4d58c67e68690012c)

Author SHA1 Message Date
Martin Kojtal 5e094fe040
Merge pull request #14245 from jeromecoutant/PR_WL
STM32WL: I2C and ADC full support
2021-02-15 08:46:13 +00:00
Martin Kojtal 98659cfb78
Merge pull request #14282 from hugueskamba/hk_cmake_refactor_nuvoton
CMake: Refactor Nuvoton targets
2021-02-15 08:44:35 +00:00
jeromecoutant 81a44fc9ae STM32WL: use correct include path 2021-02-15 08:54:06 +01:00
Martin Kojtal 51a6754e22
WicedInterface: fix styling 2021-02-14 20:00:25 +00:00
Martin Kojtal 64d4a7a58a CMake Analog devices: fix linking to the main family target 2021-02-14 19:48:16 +00:00
Martin Kojtal 950baa2fe6
CMake fvp mps2: fix linking to arm-fm 2021-02-14 19:44:28 +00:00
Martin Kojtal 26d7b4d9d5
CMake Arm FM: fix linking libraries with arm-fm
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:43:39 +00:00
Martin Kojtal 2f09d7c057
Update WicedInterface.h
Fix the styling error
2021-02-14 19:35:37 +00:00
Martin Kojtal e6bd22d68d
Update targets/TARGET_GigaDevice/TARGET_GD32F4XX/CMakeLists.txt
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:30:02 +00:00
Martin Kojtal b446238441
CMake GigaDevice: fix exclude all for targets
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:28:06 +00:00
Martin Kojtal ff307188b7
Merge pull request #14277 from hugueskamba/hk_fix_apollo3_heap_stack_location
Apollo3: Fix run time error due to memory mapping
2021-02-14 19:24:43 +00:00
Martin Kojtal 3ef03538f2
Merge pull request #14276 from harmut01/refactor_samsung
CMake: refactor Samsung targets
2021-02-14 19:24:25 +00:00
Martin Kojtal ba1e7b53d0
Merge pull request #14272 from ladislas/ladislas/feature/cmake-current-binary-dir
Change CMAKE_BINARY_DIR to CMAKE_CURRENT_BINARY_DIR
2021-02-14 19:23:46 +00:00
Martin Kojtal 8321943ec8
Merge pull request #14235 from hugueskamba/hk_post_build_op
CMake: Add post build operation support
2021-02-14 19:23:19 +00:00
Martin Kojtal 9d6a60c7c5
Merge pull request #14279 from hugueskamba/hk_cmake_refactor_silabs
CMake: Refactor Silicon Laboratories targets
2021-02-14 19:22:05 +00:00
Martin Kojtal cbc6af518f
Apply suggestions from code review
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:21:14 +00:00
Hugues Kamba 2a6a840903 CMake: Refactor Nuvoton targets
Refactor all Nuvoton 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-12 19:09:11 +00:00
Harrison Mutai 33c35f791b CMake: refactor GigaDevice targets
Refactor all GigaDevice 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-12 16:55:42 +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
Hugues Kamba d960d8fb49 CMake: Refactor Silicon Laboratories targets
Refactor all Silicon Laboratories 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-12 15:39:18 +00:00
Harrison Mutai 1282242691 CMake: refactor Samsung targets
Refactor all Samsung 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-12 13:48:49 +00:00
Hugues Kamba cac9d7930c Apollo3: Fix run time error due to memory mapping
The Appollo3 targets require dummy sections in stack and heap regions.
The stack dummy section does not contain any symbols. It is only used
for the linker to calculate the size of the stack sections and assign
values to stack symbols later.
The heap dummy region is used to identify the beginning of available dynamic memory.
2021-02-12 12:09:14 +00:00
Martin Kojtal 3174a4c6a5
Merge pull request #14264 from paul-szczepanek-arm/fix-terminate-sync
BLE: fix termination of periodic advertising sync
2021-02-12 09:16:55 +00:00
Martin Kojtal d041654fa2
Merge pull request #14242 from 0xc0170/cmake-refactor-ambiq-micro
Ambiq Micro: refactor CMake targets
2021-02-12 09:16:30 +00:00
Ladislas de Toldi 5a879c6a4e
Change CMAKE_BINARY_DIR to CMAKE_CURRENT_BINARY_DIR 2021-02-11 22:49:07 +01:00
Rajkumar Kanagaraj c93901a804 CMake: Update readme about new MBED_TEST_LINK_LIBRARIES command line argument 2021-02-11 11:28:51 -08:00
Martin Kojtal 0311d81314 CMake MAX32630: fix linker script
Forgotten to set it for the target
2021-02-11 17:42:53 +00:00
Martin Kojtal 2e320bcfe9 CMake MAX32630: fix target name 2021-02-11 17:40:07 +00:00
Martin Kojtal 9c9d83343c CMake Maxim: fix some errors with renames 2021-02-11 17:34:48 +00:00
Martin Kojtal 351d6749cb CMake Maxim: fix targets naming
Add boot no-boot targets for max32625. This should be cleaned up better once we get
the folder structure enforced by the old tools fixed.
2021-02-11 17:24:19 +00:00
Hugues Kamba deeaa7970f CMake: Add post build operation support
A CMake custom target, mbed-post-build, is added as a dependency of the
application CMake target if a Mbed target adds a CMake custom target
named mbed-post-build-bin. mbed-post-build-bin is added as a dependency
of mbed-post-build. mbed-post-build-bin depends on the application binary.
This is done so a CMake custom command that executes post-build can be added.

The Python scripts that implement the operations have been modified to add
CLI entry points so they can be called from CMake. Dependency on the old
tool has been removed on those scripts by passing them exactly what they
require instead of passing old tool Python objects. A consequence of that
was to slightly amend how the old tool calls some of those Python modules.

Support has only been added for Mbed targets that currently have a requirement
for post build operations. This includes: LPC1114, LPC1768, ARCH_PRO, LPC54114,
LPC546XX, FF_LPC546XX, CY8CKIT064B0S2_4343W, CYTFM_064B0S2_4343W, CYSBSYSKIT_01

The following targets are not supported as TFM support is not yet included:
ARM_MUSCA_B1, ARM_MUSCA_B1_NS, ARM_MUSCA_S1, ARM_MUSCA_S1_NS.
2021-02-11 17:04:41 +00:00
Martin Kojtal 0460a85ddd
Merge pull request #14269 from harmut01/refactor_toshiba
CMake: Refactor Toshiba targets
2021-02-11 15:29:06 +00:00
Martin Kojtal bfb36b68a6 CMake ARM FM: fix targets naming 2021-02-11 14:48:55 +00:00
Martin Kojtal 302c86041f ARM FM: refactor CMake targets 2021-02-11 14:44:35 +00:00
Martin Kojtal de8086b528
Merge pull request #14267 from harmut01/refactor_nordic
CMake: Refactor Nordic targets to be CMake buildsystem targets
2021-02-11 14:33:32 +00:00
Martin Kojtal 1ceb3facd9 CMake Ambiq Micro: fix CMakeLists names 2021-02-11 14:32:01 +00:00
Martin Kojtal 4dd9895817 CMake Ambiq Micro: fix years 2021-02-11 14:20:13 +00:00
Martin Kojtal f203a6796a
Merge pull request #14252 from hugueskamba/hk_cmake_refactor_freescale
CMake: Refactor Freescale targets
2021-02-11 14:10:33 +00:00
Martin Kojtal b4f0be19e6 CMake Ambiq Micro: fix naming 2021-02-11 14:09:19 +00:00
Martin Kojtal efbf0bb571 Ambiq Micro: refactor CMake targets
Follow what we did for ST, to create separate CMake targets for each Mbed target.
2021-02-11 13:57:59 +00:00
Martin Kojtal ab7067df3f CMake Analog Devices: fix names after refactor 2021-02-11 13:54:12 +00:00
Martin Kojtal 8f1840e978 Analog Devices: refactor CMake targets 2021-02-11 13:51:37 +00:00
Martin Kojtal 0f000a0502
Merge pull request #14253 from harmut01/refactor_renesas
CMake: refactor Renesas targets
2021-02-11 13:18:26 +00:00
Martin Kojtal c4bcd432cf
Fix copyright in TARGET_KW41Z/CMakeLists.txt
Co-authored-by: Harrison Mutai <70651665+harmut01@users.noreply.github.com>
2021-02-11 13:17:22 +00:00
Martin Kojtal 2f7728eed5
Merge pull request #14266 from rwalton-arm/dev/rwalton-arm/fix-st-targets
Fix up some ST CMake targets
2021-02-11 13:15:32 +00:00
Harrison Mutai 0ec92a07d5 CMake: clean up code comments after refactor 2021-02-11 12:04:24 +00:00
Harrison Mutai 176e451c20 CMake: Refactor Toshiba targets
Refactor all Toshiba 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-11 11:51:20 +00:00
Martin Kojtal 33c06fb346
Merge pull request #14265 from 0xc0170/cmake-fix-app-target
CMake: remove need for APP_TARGET
2021-02-11 11:49:16 +00:00
Martin Kojtal 64892c95ce
Merge pull request #14268 from hugueskamba/hk_cmake_refactor_nxp
CMake: Refactor NXP targets
2021-02-11 11:48:53 +00:00