Skip to content

Commit 7ea6419

Browse files
authored
Merge pull request #11640 from devran01/feature-twincpu-pr
TF-M: directory structure update proposal to import twincpu branch to mbed-os
2 parents 8f28e3e + 0423668 commit 7ea6419

File tree

369 files changed

+378
-26987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+378
-26987
lines changed

.astyleignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
^BUILD
22
^cmsis
33
^components/802.15.4_RF
4-
^components/TARGET_PSA/services/attestation/attestation.h
5-
^components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl
6-
^components/TARGET_PSA/services/attestation/qcbor
7-
^components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/crypto_struct_ipc.h
8-
^components/TARGET_PSA/TARGET_TFM
9-
^components/TARGET_PSA/TESTS
4+
^features/FEATURE_PSA/TARGET_MBED_PSA_SRV/services/attestation/attestation.h
5+
^features/FEATURE_PSA/TARGET_MBED_PSA_SRV/services/attestation/implementation/tfm_impl
6+
^features/FEATURE_PSA/TARGET_MBED_PSA_SRV/services/attestation/qcbor
7+
^features/FEATURE_PSA/TARGET_TFM
8+
^features/FEATURE_PSA/TARGET_MBED_PSA_SRV/TESTS
109
^features/cryptocell
1110
^features/FEATURE_BLE
1211
^features/frameworks

.travis.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ matrix:
195195
### Extended Tests ###
196196
- &extended-vm
197197
stage: "Extended"
198-
name: "psa autogen"
199-
env: NAME=psa-autogen
198+
name: "events"
199+
env: NAME=events EVENTS=events
200200
language: python
201201
python: 3.7
202202
install:
@@ -208,13 +208,6 @@ matrix:
208208
- python -m pip install --upgrade setuptools==40.4.3
209209
- pip install -r requirements.txt
210210
- pip list --verbose
211-
script:
212-
- python tools/psa/generate_partition_code.py
213-
- git diff --exit-code
214-
215-
- <<: *extended-vm
216-
name: "events"
217-
env: NAME=events EVENTS=events
218211
script:
219212
# Check that example compiles
220213
- sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' ${EVENTS}/README.md > main.cpp

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Folders containing files under different permissive license than Apache 2.0 are
55

66
- [cmsis](./cmsis) - MIT, BSD-3-Clause
77
- [components/802.15.4_RF/mcr20a-rf-driver](./components/802.15.4_RF/mcr20a-rf-driver) - BSD-3-Clause
8-
- [components/TARGET_PSA/TARGET_TFM](./components/TARGET_PSA/TARGET_TFM) - BSD-3-Clause
9-
- [components/TARGET_PSA/TARGET_PSA/services/attestation](./components/TARGET_PSA/services/attestation) - BSD-3-Clause
108
- [features/cryptocell/FEATURE_CRYPTOCELL310](./features/cryptocell/FEATURE_CRYPTOCELL310) - ARM Object Code and Header Files License
119
- [features/FEATURE_BOOTLOADER](./features/FEATURE_BOOTLOADER) - PBL
1210
- [features/FEATURE_BLE/targets](./features/FEATURE_BLE/targets) - BSD-style, PBL, MIT-style
11+
- [features/FEATURE_PSA/FEATURE_TFM](./features/FEATURE_PSA/FEATURE_TFM) - BSD-3-Clause
12+
- [features/FEATURE_PSA/FEATURE_MBED_PSA_SRV/services/attestation](./features/FEATURE_PSA/FEATURE_MBED_PSA_SRV/services/attestation) - BSD-3-Clause
1313
- [features/lorawan](./features/lorawan) - Revised BSD
1414
- [features/lwipstack](./features/lwipstack) - BSD-style, MIT-style
1515
- [features/nanostack/sal-stack-nanostack](./features/nanostack/sal-stack-nanostack) - BSD-3-Clause

TESTS/mbed-crypto/sanity/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "psa/crypto.h"
19-
20-
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
18+
#if ((!defined(FEATURE_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
2119
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
2220
#else
2321

22+
#include "psa/crypto.h"
2423
#include <stdio.h>
2524
#include "mbed.h"
2625
#include "greentea-client/test_env.h"

TESTS/mbed_hal/trng/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
using namespace utest::v1;
7070

71-
#if (defined(TARGET_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
71+
#if (defined(FEATURE_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
7272
#include "entropy.h"
7373
#include "entropy_poll.h"
7474
#include "crypto.h"
@@ -93,7 +93,7 @@ void inject_entropy_for_psa()
9393
mbedtls_psa_inject_entropy(seed, MBEDTLS_PSA_INJECT_ENTROPY_MIN_SIZE);
9494
}
9595
}
96-
#endif // (defined(TARGET_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
96+
#endif // (defined(FEATURE_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
9797

9898
static int fill_buffer_trng(uint8_t *buffer, trng_t *trng_obj, size_t trng_len)
9999
{
@@ -274,7 +274,7 @@ int main()
274274
#if defined(MBEDTLS_PLATFORM_C)
275275
ret = mbedtls_platform_setup(NULL);
276276
#endif /* MBEDTLS_PLATFORM_C */
277-
#if (defined(TARGET_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
277+
#if (defined(FEATURE_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
278278
inject_entropy_for_psa();
279279
#endif
280280
ret = !Harness::run(specification);

TESTS/mbedtls/selftest/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Case cases[] = {
8484
#endif /* MBEDTLS_SELF_TEST */
8585
};
8686

87-
#if (defined(MBEDTLS_ENTROPY_C) && defined(TARGET_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
87+
#if (defined(MBEDTLS_ENTROPY_C) && defined(FEATURE_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
8888
#include "crypto.h"
8989
#if !defined(MAX)
9090
#define MAX(a,b) (((a)>(b))?(a):(b))
@@ -107,7 +107,7 @@ void inject_entropy_for_psa()
107107
mbedtls_psa_inject_entropy(seed, MBEDTLS_PSA_INJECT_ENTROPY_MIN_SIZE);
108108
}
109109
}
110-
#endif // (defined(MBEDTLS_ENTROPY_C) && defined(TARGET_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
110+
#endif // (defined(MBEDTLS_ENTROPY_C) && defined(FEATURE_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
111111

112112

113113
utest::v1::status_t test_setup(const size_t num_cases)
@@ -128,7 +128,7 @@ int main()
128128
}
129129
#endif
130130

131-
#if (defined(MBEDTLS_ENTROPY_C) && defined(TARGET_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
131+
#if (defined(MBEDTLS_ENTROPY_C) && defined(FEATURE_PSA) && defined(COMPONENT_PSA_SRV_IPC) && defined(MBEDTLS_PSA_CRYPTO_C))
132132
inject_entropy_for_psa();
133133
#endif
134134

TESTS/psa/attestation/main.cpp

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)