Commit Graph

29946 Commits (tools-release-test)

Author SHA1 Message Date
Rob Walton d0f7c21ff4 Reintroduce mts_dot combine_bins. 2020-06-05 13:38:10 +01:00
Rob Walton 01204f1ed4 Reintroduce LPC4088 and Teensy3.1 post build hooks 2020-06-05 09:32:19 +01:00
Rob Walton 8b0956030a Fix indentation level. 2020-06-03 18:26:11 +01:00
Rob Walton fc491fbf3d Toolchain: Remove check for default_lib attribute
Unfortunately the original fix doesn't hold for all targets in the online
compiler. I think this is because when we override target.c_lib with
target.default_lib, the default_lib isn't in the target.supported_c_libs
list. Removing the default_lib patch altogether seems to work in the
sense that compilation works. This may cause issues down the line if the
tools inadevertently swap out the user's selected c_lib with something
else. This is another problem we have to solve in a generic way which
supports all use cases we want for offline and online tools. At the
moment this is just a patch to get things working for mbed 6.
2020-06-02 09:07:00 +01:00
Rob Walton be8588d8ac Revert release_version "fix" for mbed 2.
The online compiler requires mbed os 2 support. Now release_version has
been partially removed from the tools, we just need to return all targets
when any version is given. This doesn't really make sense, as now we just
claim to support all targets in all release_versions. However, it allows the
online compiler to find targets for mbed 2 projects, which we still need
to support online.

We need to come up with a mechanism for maintaining release_version
support in the online tools, this unfortunate patch is just to get
things working for the Mbed 6 release.
2020-06-02 09:07:00 +01:00
Rob Walton 7e8973f876 Enable microbit target for online compiler.
The online compiler mandates we maintain support for NRF51 targets in
the tools.

* Add NRF51 targets back into latest_targets.json.
* Reintroduce NRF51 post build hook.
2020-06-02 09:07:00 +01:00
Jimmy Brisson f68ff23a8a Enable Legacy Builds 2020-06-02 09:07:00 +01:00
Anna Bridge ced3b1cf8e
Merge pull request #13003 from dgreen-arm/add-feature-experimental
Mark PSA as an experimental API
2020-06-01 16:38:30 +01:00
Darryl Green e5f8dd8798 Move import to after TARGET_PSA define check
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green a62b3591d9 Fix astyle issues
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green fcf60ec683 Move frameworks/TARGET_PSA to TARGET_EXPERIMENTAL_API 2020-05-29 13:19:12 +01:00
Darryl Green 0e07dff0a4 Move TARGET_MBED_PSA_SRV to FEATURE_EXPERIMENTAL_API
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green 5fa5176727 Move mbedtls/platform/TARGET_PSA to FEATURE_EXPERIMENTAL_API/TARGET_PSA
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green ccdb76d34f Move components/TARGET_PSA under FEATURE_EXPERIMENTAL_API
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Darryl Green 10e9946b16 Move FEATURE_PSA under FEATURE_EXPERIMENTAL_API
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero aa7a02f0a9 musca: Mark Musca targets as experimental
TF-M and PSA have experimental APIs. Musca targets must initialize the
tfm_ns_lock, via the experimental API tfm_ns_lock_init(), as part of
their ordinary initialization procedure. Therefore, Musca targets must
have experimental APIs present in order to function. Add the
experimental API feature to Musca targets by default to ease usability
of the Musca targets, rather than requiring all users and CI to manually
enable experimental APIs when using these targets.
2020-05-29 13:19:11 +01:00
Darryl Green 7aadee9ab7 Add experimental feature folder
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero b44a263729 psa: Put Mbed PSA implementation into MBED_PSA_SRV
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero 8b5a2ff2d9 psa: Fix style in psa_hrng.c 2020-05-29 13:19:11 +01:00
Jaeden Amero 5d6ec71171 crypto: Move PSA Crypto headers to MBED_PSA_SRV
TF-M provides its own PSA headers for TF-M targets. Single v7-M targets
need to get PSA crypto from Mbed Crypto.

Note that we don't yet move crypto_struct.h to its new location. This is
to avoid breaking v8-M targets for the time being. When TF-M provides
the PSA implementation on v8-M, we will add crypto_struct.h to the
correct place.

Likewise, none of the PSA-implementing source is moved out of
COMPONENT_PSA_SRV_IMPL yet, as still must not be built for PSA NS
targets. When PSA NS targets switch to using TF-M provided
implementations rather than MBED_PSA_SRV, we can take the source out of
COMPONENT_PSA_SRV_IMPL.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero 295ff531a4 psa: Pick up code from MBED_PSA_SRV
Make single Armv7-M PSA targets pick up files under TARGET_MBED_PSA_SRV.
We'll be moving the Mbed implementation of PSA to TARGET_MBED_PSA_SRV
folders soon.

Targets (dual-core and Armv8-M) that expect to use TF-M for their PSA
implementation also have MBED_PSA_SRV labels added to them so that they
continue working with the Mbed PSA implementation for the time being.
2020-05-29 13:19:11 +01:00
Darryl Green cf17d7a178 Change unrecognised features to a warning, rather than error
Give a warning rather than error if an unrecognised feature is used.
This will help compatibility when new features are added.

Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero 4e47c38701 tools: Fix grammar in feature error message
Use "not a supported feature" instead of "not a supported features".
2020-05-27 16:37:59 +01:00
Martin Kojtal c7759fe505
Merge pull request #13008 from Patater/armc5-usage-warning-compat
tools: Warn when ARMC5 is no longer supported
2020-05-27 10:57:36 +02:00
Martin Kojtal a802ab89e8
Merge pull request #13007 from Patater/default-lib-c-compat
tools: Support default_lib and c_lib
2020-05-27 10:57:23 +02:00
Jaeden Amero 5e65cf7f4d tools: Support default_lib and c_lib
For backwards compatibility reasons, since the latest Mbed OS tools must
be able to build any previous online-compiler-supported version of Mbed
OS, allow targets to use `default_lib` or `c_lib`. This should enable
the tools to work with Mbed OS 5 style targets.json.
2020-05-26 10:47:13 +01:00
Jaeden Amero a5a544408d tools: Warn when ARMC5 is no longer supported
Update the warning when ARMC5 is used to specify the conditions under
which ARMC5 is no longer supported.
2020-05-22 15:39:01 +01:00
Jaeden Amero 64f19281d3 Revert "Add the exception in Mbed OS build tool for Arm Compiler 5 toolchain."
For backwards compatibility reasons, as the Mbed tools must be able to
build any online-compiler-supported version of Mbed, revert back to
emitting a warning when ARMC5 is used. This will enable ARMC5 to
continue working in the online compiler for Mbed OS 5 and other previous
versions. ARMC5 remains unsupported in Mbed 6.

This reverts commit 03d57b7ba2.
2020-05-22 15:39:01 +01:00
Jaeden Amero 8be07a4906 tools: Fix typo in comment 2020-05-22 14:51:58 +01:00
Martin Kojtal 9a8c9e2c29
Merge pull request #12995 from 0xc0170/fix_target_toolchain
build tools: fix target toolchain
2020-05-19 17:51:57 +02:00
Martin Kojtal 1088fa0627 build tools: remove version 6 2020-05-19 14:28:26 +01:00
Martin Kojtal bcfa1f97e0 tools build: add 6 to the version check 2020-05-19 13:03:53 +01:00
Martin Kojtal 12cadc2e91 tools build: remove git diff typo 2020-05-19 12:43:24 +01:00
Martin Kojtal 5a9ad74818 targets: add version 6 to the toolchain 2020-05-19 11:14:18 +01:00
Martin Kojtal 3847373660 targets: add baremetal to some known tested targets 2020-05-19 10:45:43 +01:00
Martin Kojtal ada878122c targets: fix indent 2020-05-19 10:37:13 +01:00
Martin Kojtal 6ca3c42942 targets: profiles remove/add not functional, replace it
It might be a bug as it should work.
2020-05-19 10:34:21 +01:00
Martin Kojtal dd6ed6c968 Revert "targets: enable baremetal by default"
This reverts commit 9b4cddd16a.

Not all targets can be enabled, will need more work.
2020-05-19 10:26:48 +01:00
Martin Kojtal b43fc0cf1a build: target toolchain return
Revert back to the toolchain function. Although it should be refactored (return just list of toolchains from a target).
2020-05-19 10:23:20 +01:00
Qinghao Shi f478a21de2
Merge pull request #12982 from 0xc0170/fix_release_version
build api: fix release version
2020-05-18 22:40:44 +01:00
Martin Kojtal 9b4cddd16a targets: enable baremetal by default
For only baremetal targets, just drop in replace. Don't need to add/remove.
2020-05-18 19:47:38 +01:00
Martin Kojtal d6fbda35d7 targets: add rtos profile by default
Every target is assumed to supported Mbed OS. If its not the case, it supports
only baremetal. Thus removing rtos, and adding bare-metal to the app profile.
2020-05-18 19:39:40 +01:00
Martin Kojtal 07084a5212 tools build: add profile
To select supported_application_profiles attribute from targets
2020-05-18 19:31:22 +01:00
Martin Kojtal e345542b70
Merge pull request #12978 from vmedcy/pr-dev/pdl-1.5.2
Update psoc6pdl to v1.5.2
2020-05-18 13:10:21 +02:00
Martin Kojtal 5df3c91e1d RZ_A1XX: public set to false as its base target 2020-05-18 11:17:29 +01:00
Martin Kojtal 59db9f692f tools build: return empty list for mbed2
We cant afford to raise an exception now. As anyone using this out there do not catch it. Rather
an empty list, as it can work after this fix - won't do anything.
2020-05-18 08:57:07 +01:00
Martin Kojtal 810b0262c1 tools build: fix toolchain tuple, should be list 2020-05-18 08:57:07 +01:00
Martin Kojtal 6e59bdd64d build: fix error syntax 2020-05-18 08:57:07 +01:00
Martin Kojtal caf58a7a44 tools/build_api: fix wording
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2020-05-18 08:57:07 +01:00
Martin Kojtal c489c213a7 build api: fix release version
This is non trivial fix as the function is being used outside of this repository.
Tools rely on it to return list of targets for 2 or 5. As we removed release_version from many targets,
this broke the logic. To keep the logic as it was, without updating all tools out there now,
lets just return full set of targets - all are supported.

In case for Mbed 2, returning all targets does not make sense, but rather raise an exception here. Not supported. This avoids suprised. If you look at build api functions there are many checks for 2 or 5 so more
clean up needed to actually get release_version out of the tools.
2020-05-18 08:57:06 +01:00