Skip to content

Commit 6e31385

Browse files
Oren Cohenadbridge
authored andcommitted
Update PSA binaries importer for FUTURE_SEQUANA_PSA
1 parent 207aa6c commit 6e31385

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Build by mbed-cli using GNU Arm Embedded - version 6.3.1
66
These images were compiled by the following command:
77

88
```
9-
mbed compile -m TARGET_FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile debug/release
9+
mbed compile -m FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile release -N psa_release_1.0
10+
mbed compile -m FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile debug -N psa_debug_1.0
1011
```
1112

1213
There are also prebuilt images for PSA tests.
@@ -16,5 +17,7 @@ Those images can be found in the test folder under a `TARGET_FUTURE_SEQUANA_PSA`
1617
These images were compiled by the following command:
1718

1819
```
19-
mbed test --compile -m TARGET_FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile debug -n *spm*
20+
mbed test --compile -m FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile debug -n *psa-*
2021
```
22+
23+
To update the prebuilt binnaries run the previous commands and then run ```python export_binnaries.py```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import fnmatch
2+
import shutil
3+
import os
4+
5+
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
6+
ROOT_DIR = os.path.realpath(os.path.join(SCRIPT_DIR, '..', '..', '..', '..', '..'))
7+
DELIVERY_DIR = os.path.join(ROOT_DIR, 'DELIVERY', 'TARGET_FUTURE_SEQUANA_PSA')
8+
9+
for f in fnmatch.filter(os.listdir(DELIVERY_DIR), '*.hex'):
10+
test_suite_name = os.path.splitext(f)[0]
11+
test_directory = os.path.join(ROOT_DIR, 'TESTS', 'psa', test_suite_name)
12+
13+
if os.path.exists(test_directory):
14+
target_dir = os.path.join(test_directory, 'TARGET_FUTURE_SEQUANA_PSA', f)
15+
else:
16+
target_dir = os.path.join(SCRIPT_DIR, f)
17+
18+
shutil.copyfile(os.path.join(DELIVERY_DIR, f), target_dir)
19+
20+
21+

0 commit comments

Comments
 (0)