Commit Graph

3588 Commits (f8a02ce5dede9bd4ef7d7e869e845345766dd9c6)

Author SHA1 Message Date
Rajkumar Kanagaraj e7c0d93ad4 CMake: add mbed-os and mbed-baremetal targets
mbed-os consists of mbed-core and mbed-rtos
mbed-baremetal consists of mbed-core

The main change is for mbed-core. Changing from object library to be interface. This way it allows us to do the above to have 2 main targets for users to use.

This should be backward compatible change as mbed-os target we used contains the same files/options as previously set.
2020-11-06 17:25:22 +00:00
Martin Kojtal c9cacaf080 CMake: fix application config
These settings like enable_language should be done in the application and just once.
We hit the issue when you expose sources to an app (interface or public), CMake errors as some of the internal settings have not been configured.
2020-11-06 17:25:22 +00:00
Martin Kojtal d283e69c99 CMake: fix for Gcc Arm preprocessing linker file
A linker script needs symbols (stack size, app size, etc). They are basic values or defines. Not any array like or string like macros. We should filter these, as they are not valid anyway.

The other option to fix this would be to fix all the macros but I dont think it is needed as these config values won't be used in the linker script anyway.

Not allowed in ld files macros with spaces, like MACRO={0, 2, 3} or MACRO=(4 * 2000).
2020-11-06 17:25:22 +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 fa98689639 CMake: Componentize Mbed OS into multiple CMake targets (#13732)
Aside from the core mbed-os CMake target, a number of targets have been created so they can optionally be included by application executables that require them using `target_link_libraries()`.

Co-authored-by: Martin Kojtal <martin.kojtal@arm.com>
Co-authored-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@arm.com>
2020-11-06 17:25:21 +00:00
Rajkumar Kanagaraj d84baa8fa1 CMake: Add a function to generate executable artifacts with memap (#13695)
- Add linker option to generate map file for GCC_ARM and ARM toolchain
- Add mbed_generate_map_file function to call memap.py (parse the map
file).
- Add mbed_generate_executable function to generate executable artifacts with a memory map table
2020-11-06 17:25:21 +00:00
Hugues Kamba 22dd57b35b CMake: Add support for NUCLEO_F401RE 2020-11-06 17:25:21 +00:00
Hugues Kamba 4c22554bed CMake: Fix TFM targets build
Add linking time pre-processor macro DOMAIN_NS
for TFM targets and TrustZone non secure targets.
2020-11-06 17:25:21 +00:00
Hugues Kamba 3b8aba1dce CMake: Add support for printf lib selection 2020-11-06 17:25:21 +00:00
Hugues Kamba 18345795cd CMake: Add support for C lib selection
Configure the selected toolchain for the selected C library
2020-11-06 17:25:21 +00:00
Hugues Kamba cac1b25465 CMake: Move modules under tools subdirectory 2020-11-06 17:25:21 +00:00
Martin Kojtal 0bb4ff04c6 cmsis: remove math header file
It was removed in 6.0 (see reference below), and it was reintroduced when we updated
cmsis from the upstream. We missed to remove the commit adding the file in the cmsis
importer. This fixes it and the file should not be introduced again.

Fixes #13823

Already removed in 6.0: https://github.com/ARMmbed/mbed-os/pull/12055
2020-11-02 10:23:45 +00:00
Paul Szczeanek 440aea67c5 fix ble exemple names 2020-10-28 16:32:38 +00:00
Paul Szczeanek 6427b2ab84 remove missing examples 2020-10-23 16:17:56 +01:00
Martin Kojtal c6997bcb9d
Merge pull request #13771 from saheerb/split_examples
Separate cloud example configurations to another file
2020-10-19 15:53:48 +01:00
Martin Kojtal 61d88dd617 scancode: fix SPDX check - only warning
SPDX are not yet done in our codebase. We suggest them to be present but 3rd party
drivers have not yet been updated. The check as it was causes problems when updating
3rd party drivers (red flags in the PR).

Proper fix will be to clean up SPDX id in the codebase.
2020-10-19 11:01:11 +01:00
Martin Kojtal eb382989de
Merge pull request #13745 from hugueskamba/hk_evaluate_code_fix
Scancode: Fix false positive reported by scancode output analyser script
2020-10-16 16:22:29 +01:00
Saheer Babu e3857b2431 update cloud-example config 2020-10-16 11:22:03 +01:00
Saheer Babu ae18f4434a separate cloud examples from examples.json 2020-10-16 11:13:08 +01:00
Martin Kojtal aa0cd631a2
Merge pull request #13655 from jeromecoutant/PR_GENPERIPH_1_17
STM32_gen_PeripheralPins.py v1.17
2020-10-16 09:08:27 +01:00
Hugues Kamba 4ce6c8ac62 Scancode: Fix false positive reported by scancode output analyser script
ScanCode can possibly return many licenses found for a single file scanned.
This commit ensures that the file is not reported as lacking a permissive license
if at least one license found in it is permissive.
Previously the script was reporting an issue if it found at least one license
in a file that was not permissive.

Additionally catch more errors and provide specific details about failures.
Provide unitest.
2020-10-15 17:33:56 +01:00
Harrison Mutai 6fa88f4247 Fix false positive error in script checking license notices
Remove code block from license_check that evalutes whether a files
licenses are permissive and that there is a SPDX notice. Scancode
sometimes incorrectly attributes a single license notice to permissive
and non-permissive licenses. Removed code block results in many false
positives because it labels any file that has a "non-permissive" license
as such even when there is a permissive license.

Add function spdx_check to scancode-evaluate.py to improve analysis of
copyright and license notice tests.
2020-10-15 17:32:56 +01:00
Harrison Mutai e6c31514c6 Add unit test for script that checks copyright and license notice
Add unit test and dependent stubs for testing of scancode-evaluate.py.
license_check takes a JSON as argument and checks for source missing
copyright or license notices.

Each JSON represents a separate test case, and stubs are added for test case
3 and 4 where license_check looks for an spdx notice in the source file.
2020-10-15 17:32:56 +01:00
jeromecoutant 7eb43b104a STM32_gen_PeripheralPins.py move to TARGET_STM 2020-10-15 12:08:25 +02:00
Lingkai Dong a3c3808c5e Use NUCLEO_F429ZI for Azure IoT Hub and Google IoT Core examples 2020-10-08 16:50:13 +01:00
jeromecoutant 2d25882d1f STM32_gen_PeripheralPins.py v1.17
- GPIO xml parsing correction (#13711)
- Octo SPI support
- bug correction
- warning style correction
- new TIM_MST choice algo
- full PinNames.h file creation
- output directory is now
    targets_custom/TARGET_STM/TARGET_STM32XX/TARGET_STM32XXXX
2020-10-05 17:55:58 +02:00
Anna Bridge 2691b4e700
Merge pull request #13592 from rajkan01/update_examples_azure_google_cloud
Add test examples.json config for Azure and Google Cloud
2020-09-11 12:20:43 +01:00
Martin Kojtal 6bfd89e656
Merge pull request #13196 from gbrtth/musca_s1_support_mbed6
Add ARM_MUSCA_S1 as a new target platform
2020-09-10 16:53:14 +01:00
Martin Kojtal fc6fbd9f6a
Merge pull request #13580 from jamesbeyond/cmake_exp
TEST: Update example scripts for cmake feature
2020-09-10 15:05:12 +01:00
Rajkumar Kanagaraj 74536e7fb3 Add test examples.json config for Azure and Google Cloud 2020-09-10 14:31:49 +01:00
Gabor Toth bdf2306f16 Add platform support to Musca S1
Change-Id: Iebdd4bc402446caba6b7bd894eddb0a85ed884d8
Signed-off-by: Mark Horvath <mark.horvath@arm.com>
Signed-off-by: Gabor Toth <gabor.toth@arm.com>
2020-09-10 14:53:41 +02:00
Qinghao Shi d86a97b21c TEST: update example script update function 2020-09-10 13:06:39 +01:00
Martin Kojtal 5d245ad553
Revert "Always build both .hex and .bin files" 2020-09-10 10:19:04 +01:00
Qinghao Shi e9e53e4ba3 TEST: change to overwrite instead of remove 2020-09-09 18:38:05 +01:00
Qinghao Shi f1e885f491 TEST: add a cmake option in example testing script 2020-09-09 18:26:17 +01:00
Martin Kojtal 2fe10ddb21
Merge pull request #13516 from romanjoe/pr/064b0s2_rename
Cypress: Rename CY8CKIT_064B0S2_4343W to CY8CKIT064B0S2_4343W
2020-09-09 09:49:19 +01:00
Roman Okhrimenko 877078003c Rename CY8CKIT_064B0S2_4343W to CY8CKIT064B0S2_4343W, which fits in 20 characters limit 2020-09-07 08:25:31 +03:00
Qinghao Shi a7b2ad89a3 TEST: remove MUSCA_B1 from attestation example test 2020-09-03 14:35:05 +01:00
Martin Kojtal f4536be936
Merge pull request #13524 from norbert-david/patch-1
device_management.py supports application access keys
2020-09-03 13:25:26 +01:00
Rajkumar Kanagaraj abdee9267c Update test examples.json aws config to refer renamed mbed-os-example-for-aws repo 2020-09-02 15:01:02 +01:00
Martin Kojtal 90ca583e79
Merge pull request #13464 from hugueskamba/hk_cmsis_restructure
adr: Recommend CMSIS component source structure
2020-09-02 09:18:07 +01:00
Norbert Dávid bf1ba52083
device_management.py supports application access keys 2020-09-02 08:47:47 +03:00
Hugues Kamba 5535eee91b CMSIS: Update upstream importer to import to new directory structure
See docs/adr/0001_cmsis_component_source_structure_recommendations.md
2020-08-28 22:15:15 +01:00
Martin Kojtal 555c7dbe1a
Merge pull request #13416 from dustin-crossman/pr/cysbsyskit_update_6.2.0
Update CYSBSYSKIT_01
2020-08-26 07:14:46 +01:00
Anna Bridge 4ba1a5433f
Merge pull request #13433 from LDong-Arm/refactor_device_key
Refactor device_key
2020-08-24 12:56:10 +01:00
Martin Kojtal 08ef04d027
Merge pull request #13468 from urutva/add-ccache-to-travis
Add ccache to travis
2020-08-24 08:47:27 +01:00
Martin Kojtal 7829238c61
Merge pull request #13469 from LDong-Arm/spellignore
Support ignore list for spell checks
2020-08-21 14:29:33 +01:00
Devaraj Ranganna fef4454359 ci: Enable `ccache` in Travis
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-08-21 14:17:13 +01:00
Martin Kojtal 76d51a5b80
Merge pull request #13435 from urutva/fix-arm-none-eab-gcc-version
ci: Update `arm-none-eabi-` version
2020-08-21 13:50:44 +01:00
Lingkai Dong 8c610a6544 Spell checker: add an argument to pass file containing ignored patterns 2020-08-20 17:23:17 +01:00