Commit Graph

33614 Commits (d4559b8f3db5df5f26c48cbd0f45011925b0f010)

Author SHA1 Message Date
Rajkumar Kanagaraj d4559b8f3d Update storage CMake to include greentea test dir 2021-07-22 06:58:51 -07:00
Rajkumar Kanagaraj 264f8da32b CMake: Refactor storage greentea test CMake
Initially, every library greentea test has its project() creation in
their CMake. As running greentea using CTest move all greentea test
suite under one global project mbed-os and MBED_CONFIG_PATH set at
the root mbed os CMake under the condition BUILD_GREENTEA_TESTS
check so refactored storage greentea CMake accordingly.
2021-07-22 06:57:44 -07:00
Robert Walton ee85e78c3f CMake: greentea: Use more specific name for baremetal option
Make it obvious the option is used for greentea tests.
2021-07-18 22:07:28 +01:00
Robert Walton 69e306561d CMake: greentea: Port mbed-drivers-ticker to CTest
Call add_test in mbed_greentea_add_test and specify mbedhtrun as the
command to run. A MBED_HTRUN_ARGUMENTS variable has been added, which is
a semicolon separated list of arguments to forward to htrun. The user is
required to pass in any arguments mbedhtrun needs to communicate with
the device under test at CMake configuration time.

Temporary checks have been added to mbed_greentea_add_test to keep the
old flow working until we port all of the greentea tests to CTest.
2021-07-18 22:07:28 +01:00
Robert Walton bfac0b2d02 CMake: greentea: Set variables usually defined by external apps
We rely on external applications to set MBED_CONFIG_PATH and include
app.cmake. Mbed OS can't build for a target without those parameters
set. When building greentea tests there is no external application. So,
we define the appropriate settings in our root CMakeLists.txt for
greentea tests.
2021-07-18 22:01:21 +01:00
Robert Walton 5afc3f8efa CMake: Add option to enable greentea tests
Add an option to enable the greentea tests independently from the unit
tests.
2021-07-18 22:01:12 +01:00
Robert Walton 64c70088b3 CMake: Move post build functions out of root CMakeLists.txt
The 'post build' functions are made visible by adding the mbed-os
subdirectory. This is not ideal as any components in mbed-os wishing to
call the functions must be added after the functions are defined. To
improve modularity move these functions to a separate CMake script.

We include the post build CMake script in app.cmake for now so we don't
break user's projects.
2021-07-12 14:32:43 +01:00
Martin Kojtal 3c2c5be298
Merge pull request #14824 from paul-szczepanek-arm/persistence-fix
BLE: Manual BLE security manager db synchronisation
2021-07-12 13:51:50 +02:00
Martin Kojtal dfd899654b
Merge pull request #14823 from ARMmbed/move_events_stub
Move events stubs to events dir
2021-07-12 13:51:31 +02:00
Jaeden Amero e70d8c66a7
Merge pull request #14904 from rwalton-arm/greentea_client_io
CMake: greentea: Fix io issue with greentea-client
2021-07-09 17:06:40 +01:00
Martin Kojtal 0726db09fb
Merge pull request #14888 from arduino/portenta_ble_support
Portenta: Add BLE support using CYW43XXX generic transport layer
2021-07-09 17:22:55 +02:00
Robert Walton e9747d7bcd CMake: greentea: Fix io issue with greentea-client
The stdio implementation of the standalone greentea-client wasn't
streaming "KiVi protocol" messages through the serial IO. Separate out
the existing implementation for greentea-client that uses
mbed_retarget.h's `read` and `write` functions so greentea tests
continue to work with the standalone client.

The IO fixture is shared between the "legacy" embedded greentea-client
and the newer standalone client.
2021-07-09 14:33:08 +01:00
Martin Kojtal cf54d36bfb
Merge pull request #14899 from jeromecoutant/PR_WLE5
STM32WL: correct CMakeLists.txt for STM32WLE5xC
2021-07-09 12:26:42 +02:00
Rajkumar Kanagaraj 863ef79ed4 CMake: Move events fakes into events double dir
Previously events fakes as part of UNITTESTS/fakes, this PR moves
events fakes to events double directory to make events stubs
to be self-contained.
2021-07-09 02:56:26 -07:00
Rajkumar Kanagaraj 99e16c2ff0 Remove trailing space 2021-07-09 02:56:26 -07:00
Rajkumar Kanagaraj 652b421388 CMake: unit-tests: Make events stub only depend on headers it uses
Previously the events stub library depended on `mbed-headers`, which
is a collection of all available headers in mbed-os. To make it easier
to separate the library, only depend on the headers we're using.
2021-07-09 02:56:26 -07:00
Rajkumar Kanagaraj 447754f6cf CMake: Move events stub headers to the events/tests/UNITTESTS/double dir
Move events stubs headers to the mbed-os/events/tests/UNITTESTS/double
directory and update double CMake to include stub headers
2021-07-09 02:56:26 -07:00
Rajkumar Kanagaraj 65d202b93b CMake: unit-tests: Move mbed-headers-events to the events directory
Move the header-only mbed-headers-events library the unit test stubs
depend on into the events component directory. This makes the events
stubs more self-contained and improves the composition of the library.
2021-07-09 02:56:26 -07:00
Rajkumar Kanagaraj 88410a5f85 CMake: Move events stubs sources to the mbed-os/events directory
Move the events stub into the events component directory.
so we can avoid duplicating the mbed-os source tree in a central
UNITTESTS folder.
2021-07-09 02:56:26 -07:00
Martin Kojtal 8a507e651e
Merge pull request #14870 from ARMmbed/move_rtos_stub_headers
CMake: Remove mbed-stubs-rtos-headers library
2021-07-09 10:33:49 +02:00
Martin Kojtal 705c61b0c2
Merge pull request #14898 from byq77/master
Fix gcc_arm linker script for stm32f407xg targets
2021-07-09 10:32:33 +02:00
jeromecoutant 9a7b1dbd1c STM32WL: correct CMakeLists.txt for STM32WLE5xC 2021-07-09 09:33:12 +02:00
Martin Kojtal 57ae146594
Merge pull request #14897 from jeromecoutant/PR_STWIN
ST BLUENRG BLE: STWIN SensorTile board introduction
2021-07-09 09:29:12 +02:00
pennam 1da67b2da8 Add missing PBL header 2021-07-08 22:04:53 +02:00
Martino Facchin 133864a750 PortentaH7: add BLE support 2021-07-08 17:07:06 +02:00
pennam 1a0ab10e95 Temp portenta add COMPONENT_4343W_FS BLE firmware 2021-07-08 17:04:05 +02:00
Martin Kojtal 9b0f1907f5
Merge pull request #14227 from arduino/cyw43xxx_transport_layer
CYW43XXX: Add generic transport layer
2021-07-08 16:39:57 +02:00
Rajkumar Kanagaraj bb3cd37a5e CMake: Remove mbed-stubs-rtos-headers library
- Previous changes moved all rtos stubs headers into mbed-stubs-rtos-headers
lib, but the decision to keep all stubs headers under the respective
component stubs library so moved all stubs rtos headers under
mbed-stubs-rtos and updated it depend component CMake
- Remove unnecessary add_definition call for UNITTEST as any of the stubs library
added from UNITTEST/CMakeLists.txt is not required this macro
2021-07-08 07:14:56 -07:00
byq77 9b1399283e Fix gcc_arm linker script for stm32f407xg targets 2021-07-08 16:07:52 +02:00
Martin Kojtal 0e52d4946c
Merge pull request #14663 from arduino/whd_patch_portenta
Portenta: Add support to generic COMPONENT_WHD
2021-07-08 15:54:20 +02:00
jeromecoutant b4d80360c0 ST BLUENRG BLE: STWIN SensorTile board introduction
https://www.st.com/en/evaluation-tools/steval-stwinkt1.html
2021-07-08 14:58:00 +02:00
Martin Kojtal 1849bb55ed
Merge pull request #14817 from artokin/add_nanostack_system_time_callbacks_to_master
Add system time read/write callbacks to mbed-mesh-api
2021-07-08 14:38:18 +02:00
Martin Kojtal 1d5d3b054f
Merge pull request #14808 from affrinpinhero-2356/i2cTimingPerformanceSolved
driver/i2c: STM32: I2C performance issue solved.
2021-07-08 14:38:03 +02:00
Martin Kojtal 97b9754141
Merge pull request #14838 from katherrafi/set_mac_address
Eth: STM32:  Updating documentation on mbed_otp_mac_address()
2021-07-08 14:20:09 +02:00
Martin Kojtal 7350b03088
Merge pull request #14872 from hallard/STM32WLEx
Add STM32WLE5 for custom targets LORA_E5 and RAK3172
2021-07-08 13:25:24 +02:00
Martin Kojtal f937383384
Merge pull request #14843 from AnishKumarHCL/interrupt_in_multiple_gpio
InterruptIn : STM32: Implemented error catching for multiple gpio on the same  irq line
2021-07-08 13:25:10 +02:00
Martin Kojtal 3fcc8347a9
Merge pull request #14844 from AnishKumarHCL/analogout_free_implementation
Analogout free implementation for F4/F7/H7 boards
2021-07-08 13:24:50 +02:00
Martin Kojtal 6597cd1ff2
Merge pull request #14887 from MubeenHCLite/CAN_bittimings_update
Updated can bit timing parameters as per the ISO11898-2
2021-07-08 13:19:12 +02:00
Martin Kojtal 4dea34a126
Merge pull request #14803 from Patater/fetchcontent-greentea
Use standalone greentea-client
2021-07-08 11:08:08 +02:00
Martin Kojtal e145ae3acd
Merge pull request #14881 from jeromecoutant/PR_LED1
Standard Pin Name: LED1 issue for targets without LED
2021-07-07 17:53:44 +02:00
Martin Kojtal feb48fca2b
Merge pull request #14873 from ARMmbed/move_connectivity_netsocket_stubs
Move connectivity netsocket stubs
2021-07-07 17:45:47 +02:00
Jaeden Amero 8287c5221b
Merge pull request #14773 from rwalton-arm/move_platform_stub
Move mbed-stubs-platform to the platform directory
2021-07-07 16:33:35 +01:00
Jaeden Amero b490c67241
Merge pull request #14882 from LDong-Arm/storage_tests_cleanup
Unit tests: storage: Only use headers, sources and definitions needed by each test
2021-07-07 16:12:10 +01:00
Jaeden Amero dc6dd17bb0
Merge pull request #14884 from LDong-Arm/rm_UNITTEST_macro
Remove the `UNITTEST` macro from production code
2021-07-07 15:20:31 +01:00
Jaeden Amero ef07746443 cmake: Set MBED_TEST_MODE with INTERFACE
Set MBED_TEST_MODE with INTERFACE. Use INTERFACE because mbed-os is an
interface target, and we can only set INTERFACE properties on interface
targets. This helps avoid the following error when building an
application.

    CMake Error at mbed-os/CMakeLists.txt:96 (target_compile_definitions):
      target_compile_definitions may only set INTERFACE properties on INTERFACE
        targets
2021-07-07 14:29:14 +01:00
Jaeden Amero c3f3ed7661 cmake: Use namespaced greentea client library
When using an exported or installed version of greentea, it's necessary
to use the greentea namespace.
2021-07-07 14:29:14 +01:00
Jaeden Amero 4e2206e482 Use standalone greentea-client
For CMake or Mbed CLI 2, use the standalone greentea-client.
2021-07-07 14:29:14 +01:00
Jaeden Amero 20f6b5270f Add external greentea-client dependency
Use FetchContent to obtain greentea-client at version XXX.
2021-07-07 14:29:14 +01:00
Mohammed Mubeen b5e785efd3 Updated can bit timing parameters (TSEG1, TSEG2) as per the ISO11898-2
standard
2021-07-07 16:55:20 +05:30
Martin Kojtal fea4e928d0
Merge pull request #14835 from ARMmbed/move_stubs_cellular_headers
Move stubs cellular headers
2021-07-07 11:29:37 +02:00