Commit Graph

40 Commits (c4afea26fa6ba3f42c2339940af01e70cc6c234b)

Author SHA1 Message Date
Devaraj Ranganna 76e911c5ef psa: Replace Mbed PSA with TF-M
Add TF-M to Mbed OS, replacing the previous PSA implementation for
TF-M-capable targets. This commit adds files imported from TF-M, without
modification. The version of TF-M imported can be found in
`features/FEATURE_PSA/TARGET_TFM/VERSION.txt`.

These changes switch to TF-M as the sole PSA implementation for v8-M and
dual core targets, with TF-M running on the secure side and Mbed OS
running on the non-secure side. Single core v7-M targets will continue
to have PSA implemented via PSA emulation, implemented by Mbed OS.

Move or remove many PSA-implementing files, as PSA will be provided by
TF-M on non-single-v7-M targets. Delete any files that are not relevant
for PSA emulation mode.
 - Remove imported TF-M SPM
 - Remove Mbed SPM and tests
 - Remove Mbed-implemented PSA services and tests
 - Remove PSA_SRV_IMPL, PSA_SRV_IPC, PSA_SRV_EMUL and NSPE.
 - Replace PSA_SRV_EMUL and PSA_SRV_IMPL with MBED_PSA_SRV
 - Remove any files autogenerated by
   "tools/psa/generate_partition_code.py", which no longer exists.

Add new feature `PSA` to support PSA in Mbed OS.

Move the Mbed OS implementation of PSA services for v7-M targets (which
employ PSA emulation, and don't yet use TF-M) to
features/FEATURE_PSA/TARGET_MBED_PSA_SRV. Update the `requires`
attribute in TESTS/configs/baremetal.json to avoid breaking baremetal
testing builds.

Update .astyleignore to match new directory structure

Update Mbed TLS importer to place files into FEATURE_PSA

Create the following generic PSA targets:

* `PSA_Target` (Root level PSA generic target)
* `PSA_V7_M` (Single v7-M PSA generic target)
* `PSA_DUAL_CORE` (Dual-core PSA generic target)
* `PSA_V8_M` (v8-M PSA generic target)

Flatten MUSCA_NS and private MUSCA targets into public MUSCA targets.

Move mcuboot.bin to flat location (removing prebuilt folder)

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-06-18 12:16:20 +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 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
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
Veijo Pesonen 62e04f71c3 littlefsv2: solve astyle issues
Adds littlefs-directory under littlefsv2 to .astyleignore as it's an
external component brought to Mbed OS. Issues with the adaption layer
fixed.
2020-05-05 14:24:44 +03:00
Arto Kinnunen 14de0f054d Update astyle filtering rules
Enable astyle for:
-components/802.15.4
-features/nanostack/coap-service

Allow astyle formatting for sal-stack-nanostack, except:
-features/nanostack/sal-stack-nanostack/source/Service_Libs/mdns/fnet
2020-04-03 16:29:12 +03:00
Seppo Takalo 333b281000 Add moduletest for SlicingBlockDevice
This uses HeapBlockDevice for providing the underlying storage block.
Check boundaries that slicingblockdevice do not overlow over to unassigned
blocks.
2019-11-04 16:13:32 +02:00
Martin Kojtal e001216b55
Merge pull request #11315 from Patater/psa-crypto-api-1.0b3
Update Mbed OS for PSA Crypto API 1.0b3
2019-09-03 09:20:15 +02:00
Jaeden Amero dda4c47a4b crypto: Match styles of crypto struct headers
Make crypto_struct_ipc.h (for use with PSA Crypto clients) match style
with the file it is based on, crypto_struct.h (from Mbed Crypto). This
helps to keep the file diff minimal so it's easy to see the meaningful
(non-style) changes.
2019-08-23 17:16:10 +01:00
Mika Leppänen e3f247793a Added PPP directory to astyle ignore and added some spellchecker ignore words 2019-08-20 13:37:12 +03:00
George Psimenos d998c007f7 Update .astyleignore 2019-08-12 17:40:49 +01:00
Kevin Bracey de7e72befe astyle: exclude platform/cxxsupport
As something of a cheat, exclude platform/cxxsupport from astyle.

astyle really can't process the sort of template metaprogramming going
on in there; treat it as a "black box" like the toolchains' own
libraries.
2019-07-18 11:50:13 +03:00
David Saada 732dd36c90 Remove FEATURE_STORAGE and all underlying deprecated features 2019-03-28 23:10:05 +02:00
Cruz Monrreal II 287f28fa75 Replaced './' with '^' in .astyleignore file.
'^' matches start of line, which is what fgrep/grep use to properly ignore start of lines
2019-03-25 13:20:47 -05:00
Cruz Monrreal II da208393c4 Added './' prefix to all directories in .astyleignore
This forces directory searching to not over-exclude files.

Also sorted the list, because it's nice.
2019-03-20 12:57:36 -05:00
Martin Kojtal 17f8bc1088
Merge pull request #9893 from VeijoPesonen/wifi_astyle_unignore
ESP8266: astyle fixes
2019-03-14 09:38:49 +01:00
Veijo Pesonen c9eaa07236 ESP8266: astyle, remove from the .astyleignore-file 2019-03-04 09:38:20 +02:00
Nir Sonnenschein 22e429bdd4 add imported PSA compliance tests to astyle ignore list 2019-03-03 16:17:25 +02:00
Moran Peker ec5c3c163d Update astyleignore
correct file path
2019-02-27 14:14:31 +02:00
Moran Peker 2cccfa1748 Update astyleignore
Ignore attesttaion.h that taken from TFM
2019-02-27 14:14:30 +02:00
Moran Peker d40c25d516 Add newline at end of file 2019-02-27 14:14:25 +02:00
Moran Peker 07520c7cf6 Update astyleignore to ignore qcbor lib folder 2019-02-27 14:14:23 +02:00
Moran Peker 5211a92af7 Revert file permissions changes 100644 to 100755 2019-02-27 14:14:19 +02:00
Moran Peker e2ea743646 Attestation: Update astyle.ignore
Ignore TFM imported code from astyle
2019-02-27 14:14:09 +02:00
Michael Schwarcz 13d05db4f2 Add TF-M sources to .astyleignore 2019-02-19 15:18:55 +02:00
Martin Kojtal 9a0651c7fb astyleignore: add nanostack targets folder
Targets will be styled separately
2018-11-15 07:20:10 +00:00
Martin Kojtal bc4101e5f3 astyle ignore: add lwip-sys 2018-11-08 08:54:40 +00:00
Martin Kojtal f264a41373 astyle ignore: add wifi/rf components
Will be reverted once upstream changes come to Mbed OS
2018-11-08 08:54:32 +00:00
Martin Kojtal 326658a2fc astyle ignore: add pithy code 2018-11-08 08:54:26 +00:00
Martin Kojtal 9238bf223f AStyle ignore: add BLE
BLE will be fixed via separate pull request as changes required are bigger.
We ignore BLE coding style for now.
2018-11-08 08:54:20 +00:00
Martin Kojtal 63160d8c5b netsocket: fix astyle coding style 2018-11-08 08:54:17 +00:00
Martin Kojtal f2d30978e0 astyleignore: update nanostack paths 2018-11-07 08:56:35 +00:00
Martin Kojtal 62148b973e astyle ignore: add feature storage
Deprecated feature
2018-10-25 09:58:18 +01:00
Martin Kojtal 8561875284 astyle ignore: remove feature pal 2018-10-25 09:58:18 +01:00
Martin Kojtal a22baf36c1 astyle ignore: fix storage folders
Add storage to the filesystem paths
2018-10-25 09:58:18 +01:00
Martin Kojtal 56eea3f582 astyle ignore: add pithy from tests
External code thus ignored
2018-10-25 09:58:17 +01:00
Martin Kojtal d10e821272 AStyle: ignore hal storage abstraction
Deprecated API thus no changes there
2018-06-29 10:36:36 +01:00
Seppo Takalo 98a787b003 Fix Astyleignore and Mbed 2 travis build rules 2018-06-21 12:56:22 +03:00
Ron Eldor 4fd86888ea ignore cryptocell in astyle check
Add cryptocell to `astyleignore`
2018-05-22 13:58:03 +03:00
Martin Kojtal 1ff77d8dbc Add astyleignore file 2018-04-19 12:55:07 +01:00