Commit Graph

535 Commits (mbed-os-5.12)

Author SHA1 Message Date
Kevin Bracey 815a00d097 Permit non-TrustZone ARMv8 build
Change the heuristic for selection of CMSE in the tools python, so that
a non-TrustZone ARMv8 build can happen.

Ideally we would have more direct flagging in the targets, but this
refines the heuristic so the necessary behaviour can be easily
achieved.

* DOMAIN_NS=1 is based purely on the `-NS` suffix on the core name.

* Enabling CMSE in the compiler and outputting a secure import library
  is now enabled when the core doesn't have an `-NS` suffix by either
  the target label `TFM` being present or the flag `trustzone` being set.

This covers the existing ARMv8-M behaviour - TF-M builds have the TFM
label, as per its documentation; M2351 secure builds have no explicit
flagging, so we ensure that the M2351_NS target has the trustzone flag
set, and the out-of-tree secure target inherits that.
2019-05-17 15:38:41 +01:00
Lin Gao ef21cf108b Fix handoff issue from the bootloader to the application on MTS_DRAGONFLY_F411RE 2019-05-17 15:35:27 +01:00
Ben Cooke 75b113e956 Correct the default pins for the spi flash for the mts dragonfly - on behalf of Ben C. 2019-05-17 15:35:27 +01:00
Alexander Zilberkant 019751cdd3 Update PSA includes to autogenerated files 2019-05-03 12:37:49 +01:00
Alexander Zilberkant 4d0f429e7e Update PSA code generator
Unify TF-M and Mbed-SPM code generators:
 - Unify SPM initialization logic:
   - All partitions are registered at once
   - Test partitions are guarded by #ifndef
   - Introduce single template list
 - Beatify template files and add "Autogen-do not modify" notice
Prepare for integration with mbed-os build system:
 - Generate all the files in a single place
Simplify tools/psa/release.py script
2019-05-03 12:37:24 +01:00
Alexander Zilberkant 18cabc90a6 Delete autogenerated files 2019-05-03 12:36:55 +01:00
Ryan Morse 697b46ca4a Added support for QSPI to Cypress Boards 2019-05-03 12:24:48 +01:00
Oren Cohen 6c2e6f5182 TF-M patch: Add necessary include in tfm_ns_lock.h 2019-05-03 12:24:48 +01:00
Michael Schwarcz 251b4c1d6b TF-M patch: Fix wrong check in tfm_spm_check_client_version (TF-M issue #236)
- Link to bug tracking: https://developer.trustedfirmware.org/T236

(cherry picked from commit 008bf1b2d1)
2019-05-03 12:24:48 +01:00
Michael Schwarcz 958898268f TF-M patch: Fix tfm_psa_call_venner wrong argument type (TF-M issue #241)
- Link to bug tracking: https://developer.trustedfirmware.org/T241

(cherry picked from commit da01e3411f)
2019-05-03 12:24:48 +01:00
Michael Schwarcz 4dec7f7253 TF-M patch: Fix fixed-size partitions stack size (TF-M issue #240)
- Link to bug tracking: https://developer.trustedfirmware.org/T240

(cherry picked from commit fc78640559)
2019-05-03 12:24:48 +01:00
Michael Schwarcz 60b0626740 TF-M patch: Fix service handles not cleared issue (TF-M issue #230)
- Link to bug tracking: https://developer.trustedfirmware.org/T230

(cherry picked from commit 0c23e86989)
2019-05-03 12:24:48 +01:00
Michael Schwarcz f6d58821ff TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239)
- Link to bug tracking: https://developer.trustedfirmware.org/T239

(cherry picked from commit 5f2e4b3911)
2019-05-03 12:24:48 +01:00
Michael Schwarcz 1f5fbef8ea TF-M patch: General modifications
- Remove un-needed files
- Disable printf and uart
- Modify include paths
- Guard macros from mbed_lib with ifndef

(cherry picked from commit 1f30b52488)
(cherry picked from commit 71cd34df32)
(cherry picked from commit 185d2865da)
2019-05-03 12:24:48 +01:00
Oren Cohen 1417a631c7 Updated to f2dea5b 2019-05-03 12:24:48 +01:00
Michael Schwarcz e3cd9dbb0d TF-M patch: Fix tfm_memory_check issue (TF-M issue #224)
- Add Secure/non-secure code and secure heap to memory check
- Link to bug tracking: https://developer.trustedfirmware.org/T224
2019-04-24 17:25:47 +03:00
Michael Schwarcz fd50f967d3 TF-M patch: Fix wrong check in tfm_spm_check_client_version (TF-M issue #236)
- Link to bug tracking: https://developer.trustedfirmware.org/T236

(cherry picked from commit 008bf1b2d1)
2019-04-24 17:25:43 +03:00
Michael Schwarcz e4fbe203f1 TF-M patch: Fix tfm_psa_call_venner wrong argument type (TF-M issue #241)
- Link to bug tracking: https://developer.trustedfirmware.org/T241

(cherry picked from commit da01e3411f)
2019-04-24 17:25:40 +03:00
Michael Schwarcz 3915c544c2 TF-M patch: Fix fixed-size partitions stack size (TF-M issue #240)
- Link to bug tracking: https://developer.trustedfirmware.org/T240

(cherry picked from commit fc78640559)
2019-04-24 17:25:36 +03:00
Michael Schwarcz 82a8dc338a TF-M patch: Fix service handles not cleared issue (TF-M issue #230)
- Link to bug tracking: https://developer.trustedfirmware.org/T230

(cherry picked from commit 0c23e86989)
2019-04-24 17:25:32 +03:00
Michael Schwarcz fb2f96ca56 TF-M patch: General modifications
- Remove un-needed files
- Disable printf and uart
- Modify include paths
- Guard macros from mbed_lib with ifndef

(cherry picked from commit 1f30b52488)
(cherry picked from commit 71cd34df32)
2019-04-24 17:25:19 +03:00
Oren Cohen abd60fc341 [trusted-firmware-m]: Updated to 0101fd37
# Conflicts:
#	components/TARGET_PSA/TARGET_TFM/COMPONENT_NSPE/interface/src/tfm_ns_lock_rtx.c
2019-04-24 17:25:14 +03:00
Oren Cohen 06f1a98326 Revert TF-M update PR 2019-04-24 17:20:10 +03:00
Oren Cohen c84329a1c5 [trusted-firmware-m]: Updated to 0101fd37 2019-04-24 13:49:17 +01:00
Michael Schwarcz 2fbbf5c326 TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239)
- Link to bug tracking: https://developer.trustedfirmware.org/T239

(cherry picked from commit 5f2e4b3911)
2019-04-24 13:46:36 +01:00
Michael Schwarcz ce722f1253 TF-M patch: General modifications
- Remove un-needed files
- Disable printf and uart
- Modify include paths
- Guard macros from mbed_lib with ifndef

(cherry picked from commit 1f30b52488)
(cherry picked from commit 71cd34df32)
2019-04-24 13:44:46 +01:00
Kevin Bracey c5bfb6afc2 Networking: Fix some ARMC6 warnings
Some int-versus-long and signed-versus-unsigned format string
mismatches, and missing `class` keyword.
2019-04-24 13:37:42 +01:00
Michal Paszta 6d3c973040 ESP8266: Timeout if chip keeps returning errors
The ESP chip returns timeout, but keeps trying to connect, so we want to
keep track of time ourselves, instead of relying on the chip's timeout.
This fixes failing WIFI-CONNECT-SECURE-FAIL test.
2019-04-24 13:37:42 +01:00
Michal Paszta b3ef3db637 Perform disconnection regardless of the IP address 2019-04-24 13:37:42 +01:00
Oren Cohen 4d6dc137cf Fix warnings on PSA secure builds 2019-04-24 13:37:42 +01:00
itayzafrir 62905b1dc3 Add message context cleanup helper function 2019-04-24 13:37:42 +01:00
itayzafrir 34aa2288f0 Rename internal function destroy_hash_clone to clear_hash_clone 2019-04-24 13:37:42 +01:00
itayzafrir 60c9f54810 Do not allocate zero sized buffers - generators 2019-04-24 13:37:42 +01:00
itayzafrir 10c36c781c Do not allocate zero sized buffers - rng 2019-04-24 13:37:42 +01:00
itayzafrir 12cd1b1ff6 Do not allocate zero sized buffers - entropy 2019-04-24 13:37:42 +01:00
itayzafrir b2731f100a Do not allocate zero sized buffers - keys 2019-04-24 13:37:42 +01:00
itayzafrir e3f9a7b93c Do not allocate zero sized buffers - cipher 2019-04-24 13:37:42 +01:00
itayzafrir 3d8ea169ca Do not allocate zero sized buffers - aead 2019-04-24 13:37:42 +01:00
itayzafrir bbf7e77b2c Do not allocate zero sized buffers - asymmetric 2019-04-24 13:37:42 +01:00
itayzafrir 0807687966 Do not allocate zero sized buffers - hash 2019-04-24 13:37:42 +01:00
itayzafrir 36265a5d47 Do not allocate zero sized buffers - mac 2019-04-24 13:37:42 +01:00
itayzafrir 5f997c2dc2 Fix crypto service abort functionality - generators 2019-04-24 13:37:42 +01:00
itayzafrir 28775e1c7a Fix crypto service abort functionality - mac 2019-04-24 13:37:42 +01:00
itayzafrir 3085e7188c Fix crypto service abort functionality - hash 2019-04-24 13:37:42 +01:00
itayzafrir 3233820b83 Fix crypto service abort functionality - cipher
Also refactor cipher setup function to one common function.
2019-04-24 13:37:42 +01:00
Michal Paszta 51bc848c62 Add INTERRUPTIN compilation guard for ESP8266 2019-04-05 15:55:56 +01:00
Ashok Rao 76cde7702a Incorporating review comments Removing USBDEVICE since USB pins are NOT brought out on the MTB/MCB. 2019-04-05 13:59:48 +01:00
Oren Cohen 3acedd3c2d Run autogen 2019-04-05 13:59:26 +01:00
junichi.katsu@uhuru.jp 6b2a219740 Add definition of RAVEN 2019-04-05 12:27:01 +01:00
Offir Kochalsky 1a48962a53 Update QSPIFBlockDevice.cpp 2019-04-05 12:26:58 +01:00