Skip to content

Commit 62f110c

Browse files
committed
CMake: Add mbed-psa-tal (Test Abstraction Layers)
Move /val and /pal directories into /test_abstraction_layers directory and combine into one CMake target, mbed-psa-tal. Moved into seperate directory in order to have own CMakeLists.txt, rather than adding to /TARGET_MBED_PSA_SRV CMake file.
1 parent 26290ad commit 62f110c

32 files changed

+35
-8
lines changed

platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ target_include_directories(mbed-psa
66
inc
77
inc/psa
88
mbedtls
9-
pal
109
services/platform
1110
services/attestation
1211
services/attestation/qcbor
@@ -28,13 +27,6 @@ target_sources(mbed-psa
2827
mbedtls/psa_crypto_storage.c
2928
mbedtls/psa_its_file.c
3029

31-
pal/pal_attestation_eat.c
32-
pal/pal_attestation_intf.c
33-
pal/pal_client_api_empty_intf.c
34-
pal/pal_client_api_intf.c
35-
pal/pal_internal_trusted_storage_intf.c
36-
pal/pal_protected_storage_intf.c
37-
3830
services/attestation/attest_boot_status_loader.c
3931
services/attestation/attest_crypto.c
4032
services/attestation/attest_crypto_keys.c
@@ -78,3 +70,6 @@ target_link_libraries(mbed-psa
7870
mbed-storage-kv-global-api
7971
mbed-device_key
8072
)
73+
74+
add_subdirectory(test_abstraction_layers)
75+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright (c) 2021 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
add_library(mbed-psa-tal INTERFACE)
5+
6+
target_include_directories(mbed-psa-tal
7+
INTERFACE
8+
pal
9+
val
10+
)
11+
12+
target_sources(mbed-psa-tal
13+
INTERFACE
14+
pal/pal_attestation_eat.c
15+
pal/pal_attestation_intf.c
16+
pal/pal_client_api_empty_intf.c
17+
pal/pal_client_api_intf.c
18+
pal/pal_internal_trusted_storage_intf.c
19+
pal/pal_protected_storage_intf.c
20+
pal/pal_mbed_os_intf.cpp
21+
22+
val/val_attestation.c
23+
val/val_interfaces.c
24+
val/val_internal_trusted_storage.c
25+
val/val_protected_storage.c
26+
val/val_greentea.cpp
27+
)
28+
29+
target_link_libraries(mbed-psa-tal
30+
INTERFACE
31+
mbed-psa
32+
)

0 commit comments

Comments
 (0)