diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/README.md b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/README.md index e22425b32f..dbde256fa0 100644 --- a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/README.md +++ b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/README.md @@ -6,7 +6,8 @@ Build by mbed-cli using GNU Arm Embedded - version 6.3.1 These images were compiled by the following command: ``` -mbed compile -m TARGET_FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile debug/release +mbed compile -m FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile release -N psa_release_1.0 +mbed compile -m FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile debug -N psa_debug_1.0 ``` 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` These images were compiled by the following command: ``` -mbed test --compile -m TARGET_FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile debug -n *spm* +mbed test --compile -m FUTURE_SEQUANA_M0_PSA -t GCC_ARM --profile debug -n *psa-* ``` + +To update the prebuilt binnaries run the previous commands and then run ```python export_binnaries.py``` diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/export_binnaries.py b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/export_binnaries.py new file mode 100644 index 0000000000..ea4a99f337 --- /dev/null +++ b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/export_binnaries.py @@ -0,0 +1,21 @@ +import fnmatch +import shutil +import os + +SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) +ROOT_DIR = os.path.realpath(os.path.join(SCRIPT_DIR, '..', '..', '..', '..', '..')) +DELIVERY_DIR = os.path.join(ROOT_DIR, 'DELIVERY', 'TARGET_FUTURE_SEQUANA_PSA') + +for f in fnmatch.filter(os.listdir(DELIVERY_DIR), '*.hex'): + test_suite_name = os.path.splitext(f)[0] + test_directory = os.path.join(ROOT_DIR, 'TESTS', 'psa', test_suite_name) + + if os.path.exists(test_directory): + target_dir = os.path.join(test_directory, 'TARGET_FUTURE_SEQUANA_PSA', f) + else: + target_dir = os.path.join(SCRIPT_DIR, f) + + shutil.copyfile(os.path.join(DELIVERY_DIR, f), target_dir) + + +