Commit Graph

32493 Commits (f78c24135ce75ab36a28dae4d58c67e68690012c)

Author SHA1 Message Date
Hugues Kamba 0ce36ac5e2 CMake: Fix ARM MUSCA NS targets build
Add the missing CMake targets for NS Mbed boards.
2021-02-22 12:17:41 +00:00
Martin Kojtal 29cfcd6d5f
Merge pull request #14307 from hugueskamba/hk_cmake_fix_nuvoton_targets
CMake: Fix some NUVOTON build
2021-02-22 12:12:18 +00:00
Paul Szczepanek 53cf06278a use the ccb instead of looking up the conn id 2021-02-22 11:31:25 +00:00
Hugues Kamba 261deae561 CMake: Fix Cortex-A9 builds with GCC_ARM
Add the `-march` flag for Cortex-A9 GCC_ARM in order to
generate instructions for the armv7-a machine type.
2021-02-22 11:28:06 +00:00
Hugues Kamba 11a445be95 CMake: Fix STM32F091XC Mbed targets GCC_ARM build
The linker file for the GCC_ARM toolchain was not
correctly listed.
2021-02-19 20:28:25 +00:00
Hugues Kamba c45e6ce13f Remove usage of MBED_TARGET_LABELS in hal/ tests
This removes some dependency on targets.json
2021-02-19 19:15:47 +00:00
Hugues Kamba 7d49d4bce1 Create FLASH CMSIS ALGO target to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 16:56:37 +00:00
Hugues Kamba a3a36ccb92 CMake: Fix some NUVOTON build
Correct source file listings for M251, M261.
Also remove unused input source files.
2021-02-19 16:48:32 +00:00
Hugues Kamba 2c3481297c CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 13:39:32 +00:00
Paul Szczepanek 9a25b7b7cd use dmConnId_t for conn id 2021-02-19 12:52:47 +00:00
Paul Szczepanek b271ee853a fix Cordio attsCsfActClientState index parameter
instead of using a handle this should be conn id
there were two calls using it differently
2021-02-19 12:45:09 +00:00
Hugues Kamba 0eae4f6c3f CMake: Refactor post-build hook to remove APP_TARGET references
There should not be a reference to APP_TARGET in Mbed OS as end-users
may decide to use a different name for the CMake variable to store their
application name.
2021-02-19 11:52:57 +00:00
Harrison Mutai 0000b37124 Fix indentation in RW_IRAM1 load region description 2021-02-19 10:09:25 +00:00
Harrison Mutai 9f5f3ea855 Fix indentation in ER_IROM1 load region description 2021-02-18 14:47:36 +00:00
Harrison Mutai b31ce7a9c7 Refactor ARM MSP2 target scatter files for bare metal support 2021-02-18 14:44:46 +00:00
Harrison Mutai 0f233735af Add bare metal support to ARM_MPS2_Target family of targets 2021-02-18 09:34:16 +00:00
Martin Kojtal 546cdafbd9
CMake: remove debug print 2021-02-17 16:50:13 +00:00
Harrison Mutai b265ae854e uARM: Remove dependencies from Freescale targets 2021-02-17 12:00:23 +00:00
Harrison Mutai 73883b55b4 Add bare metal support to freescale targets 2021-02-17 11:23:20 +00:00
Martin Kojtal 85c2d7a25c CMake: remove IAR references as they are not supported 2021-02-17 09:19:03 +00:00
Martin Kojtal 09dd4d2582 CMake platform: remove IAR related CMakeLists
Not supported
2021-02-17 09:15:50 +00:00
mbedmain 26606218ad Update Mbed version block 2021-02-16 16:01:39 +00:00
Martin Kojtal 8bdc626ba7
Merge pull request #14286 from 0xc0170/cmake-fix-remove-target-workaround
CMake: remove workaround for targets prior refactor
2021-02-16 14:28:26 +00:00
Martin Kojtal 3894d73680
Merge pull request #14289 from hugueskamba/hk_cmake_refactor_cypress
CMake: Refactor Cypress targets
2021-02-16 13:43:35 +00:00
Hugues Kamba 68b6e6ff96 Fix post build mechanism with unique CMake custom targets
The CMake custom target must be unique to avoid more than one
Mbed target adding the same. Only the CMake custom command added for the
Mbed target being built is run as the custom CMake target now includes
the Mbed target name.
2021-02-15 17:39:27 +00:00
Hugues Kamba ea6955bd1c CMake: Refactor Cypress targets
Refactor all Cypress 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-15 17:20:23 +00:00
Martin Kojtal 8ba88427cd
Merge pull request #14284 from 0xc0170/cmake-refactor-arm-ssg
CMake Arm SSG: refactor CMake targets
2021-02-15 15:27:07 +00:00
Martin Kojtal 1dd411268b
Merge pull request #14030 from arduino/i2c_stm32_wrong_clock
STM32H7: Compute I2C timing according current I2C clock source
2021-02-15 14:38:11 +00:00
Martin Kojtal 266e5f8c81
Merge pull request #14275 from rwalton-arm/dev/rwalton-arm/fix-more-st-targets
Fix ST targets naming and linker script issues
2021-02-15 14:34:36 +00:00
Martin Kojtal 9d70cb2a56 CMake: remove workaround for targets prior refactor
As we refactored all targets, we can remove this workaround from the tree.
2021-02-15 14:11:09 +00:00
Robert Walton fd63d33521 CMake: Fix STM32G0 target 2021-02-15 11:16:49 +00:00
Robert Walton 0c7bfe93e3 CMake: Generate response file before adding mbed-targets
We need to generate a "response file" to pass to the C preprocessor
when we preprocess the linker script, because of path length limitations
on Windows. We set the response file and bind the path to a global
property. The MBED_TARGET being built queries this global property when
it sets the linker script.

We must set this global property before the targets subdirectory is
added to the project. This is required because the MBED_TARGET depends
on the response file. If the path to the response file is not defined
when the target requests it the config definitions will not be passed
to CPP.
2021-02-15 11:12:18 +00:00
Robert Walton 91db89143e Fix FF1705_L151CC target 2021-02-15 11:06:43 +00:00
Robert Walton ed4027edf0 Fix STM32F103xB target 2021-02-15 11:06:43 +00:00
Robert Walton c82c897e2b Fix STM32F072xB target 2021-02-15 11:06:43 +00:00
Robert Walton f2f927ebac Fix NUCLEO_H743ZI2 target 2021-02-15 11:05:07 +00:00
Robert Walton f6302dc108 Fix NUCLEO_L496ZG_P target 2021-02-15 11:05:07 +00:00
Robert Walton 956a8790c1 Fix DISCO_L4R9I target 2021-02-15 11:05:07 +00:00
Martin Kojtal 4c581120c5
Merge pull request #14270 from 0xc0170/cmake-refactor-maxim
CMake Maxim: fix targets naming
2021-02-15 11:04:18 +00:00
Martin Kojtal fa62e80958
Merge pull request #14249 from jeromecoutant/PR_STM32WL_LORA
STM32WL : add LoRa support
2021-02-15 11:04:00 +00:00
Martin Kojtal 24c9d2458b
Merge pull request #14246 from 0xc0170/cmake-refactor-arm-fm
ARM FM: refactor CMake targets
2021-02-15 11:02:11 +00:00
Martin Kojtal 7647a2c623
Merge pull request #14244 from 0xc0170/cmake-refactor-analog-devices
Analog Devices: refactor CMake targets
2021-02-15 11:00:09 +00:00
Martin Kojtal 0adb917dab CMake Arm SSG: refactor CMake targets
Create CMake target per each Mbed OS target.
2021-02-15 10:39:30 +00:00
Martin Kojtal da34eecaf6
Merge pull request #14247 from rajkan01/refactor_greentea_cmakelist
CMake: Refactor Greentea test CMakeLists.txt
2021-02-15 10:28:32 +00:00
Martin Kojtal 34627b7d53
Merge pull request #14280 from hugueskamba/hk_cmake_refactor_wiced
CMake: Refactor WIO_EMW3166 support
2021-02-15 10:28:12 +00:00
Martin Kojtal 1516c57bf8 ARM FM CMake: fix CMakeLists names 2021-02-15 09:23:54 +00:00
Martin Kojtal a922ed18a5 Analog Devices: fix CMakeLists names 2021-02-15 09:17:50 +00:00
Martin Kojtal 94f3c7b89b Maxim CMake: fix sources for max32630fthr 2021-02-15 08:58:39 +00:00
Martin Kojtal bc6679ebd6
Wiced: remove empty spaces 2021-02-15 08:49:44 +00:00
Martin Kojtal c153880941
Merge pull request #14281 from harmut01/refactor-gigadevice
CMake: refactor GigaDevice targets
2021-02-15 08:48:12 +00:00