Skip to content

Commit 58a6c24

Browse files
authored
Merge pull request #9195 from alzix/patch-1
Enable PSA APIs on Pelion boards
2 parents 9e94070 + 763cb4c commit 58a6c24

File tree

6 files changed

+22
-7
lines changed

6 files changed

+22
-7
lines changed

TESTS/psa/entropy_inject/its_reset/COMPONENT_PSA_SRV_IMPL/test_pits_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
4242
}
4343

4444
KVMap &kv_map = KVMap::get_instance();
45-
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
45+
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
4646
if (!kvstore) {
4747
return PSA_ITS_ERROR_STORAGE_FAILURE;
4848
}

TESTS/psa/entropy_inject/its_reset/COMPONENT_SPE/test_pits_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
4242
}
4343

4444
KVMap &kv_map = KVMap::get_instance();
45-
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
45+
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
4646
if (!kvstore) {
4747
return PSA_ITS_ERROR_STORAGE_FAILURE;
4848
}

TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_IMPL/test_pits_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
4242
}
4343

4444
KVMap &kv_map = KVMap::get_instance();
45-
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
45+
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
4646
if (!kvstore) {
4747
return PSA_ITS_ERROR_STORAGE_FAILURE;
4848
}

TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/test_pits_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
4242
}
4343

4444
KVMap &kv_map = KVMap::get_instance();
45-
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
45+
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
4646
if (!kvstore) {
4747
return PSA_ITS_ERROR_STORAGE_FAILURE;
4848
}

features/storage/kvstore/conf/mbed_lib.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
},
1717
"K66F": {
1818
"storage_type": "TDB_INTERNAL"
19+
},
20+
"NUCLEO_F411RE": {
21+
"storage_type": "TDB_INTERNAL"
22+
},
23+
"NUCLEO_F429ZI": {
24+
"storage_type": "TDB_INTERNAL"
25+
},
26+
"UBLOX_EVK_ODIN_W2": {
27+
"storage_type": "TDB_INTERNAL"
1928
}
2029
}
2130
}

targets/targets.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,8 @@
17351735
"MCUXpresso_MCUS",
17361736
"KSDK2_MCUS",
17371737
"FRDM",
1738-
"Freescale_EMAC"
1738+
"Freescale_EMAC",
1739+
"PSA"
17391740
],
17401741
"is_disk_virtual": true,
17411742
"macros": ["CPU_MK66FN2M0VMD18", "FSL_RTOS_MBED"],
@@ -2399,7 +2400,8 @@
23992400
"inherits": ["FAMILY_STM32"],
24002401
"supported_form_factors": ["ARDUINO", "MORPHO"],
24012402
"core": "Cortex-M4F",
2402-
"extra_labels_add": ["STM32F4", "STM32F411xE", "STM32F411RE"],
2403+
"extra_labels_add": ["STM32F4", "STM32F411xE", "STM32F411RE", "PSA"],
2404+
"components_add": ["FLASHIAP"],
24032405
"detect_code": ["0740"],
24042406
"config": {
24052407
"clock_source": {
@@ -2656,8 +2658,10 @@
26562658
"STM32F429ZI",
26572659
"STM32F429xx",
26582660
"STM32F429xI",
2659-
"STM_EMAC"
2661+
"STM_EMAC",
2662+
"PSA"
26602663
],
2664+
"components_add": ["FLASHIAP"],
26612665
"macros_add": [
26622666
"USB_STM_HAL",
26632667
"USBHOST_OTHER"
@@ -4178,6 +4182,8 @@
41784182
"supported_form_factors": ["ARDUINO"],
41794183
"release_versions": ["5"],
41804184
"device_has_remove": [],
4185+
"extra_labels_add": ["PSA"],
4186+
"components_add": ["FLASHIAP"],
41814187
"config": {
41824188
"stdio_uart_tx_help": {
41834189
"help": "Value: D8(default) or D1"

0 commit comments

Comments
 (0)