Skip to content

Commit 4c0f3f0

Browse files
Vge0rgerlubos
authored andcommitted
nrf_security: Rename oberon_psa_core to psa_core
Since now there is support for both Oberon PSA core and PSA core lite rename the cmake target to a more generic name. Ref: NCSDK-32817 Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent c93def7 commit 4c0f3f0

File tree

7 files changed

+20
-23
lines changed

7 files changed

+20
-23
lines changed

subsys/nrf_security/src/core/lite/CMakeLists.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,19 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
# Note: Reusing the name oberon_psa_core as we don't have a normalized
8-
# name for "any" PSA core in the current design
9-
10-
add_library(oberon_psa_core STATIC
7+
add_library(psa_core STATIC
118
psa_core_lite.c
129
${NRF_SECURITY_ROOT}/src/psa_crypto_driver_wrappers.c
1310
)
1411

15-
target_link_libraries(oberon_psa_core
12+
target_link_libraries(psa_core
1613
PRIVATE
1714
psa_crypto_library_config
1815
)
1916

20-
nrf_security_add_zephyr_options_library(oberon_psa_core)
17+
nrf_security_add_zephyr_options_library(psa_core)
2118

2219
target_link_libraries(${mbedcrypto_target}
2320
PRIVATE
24-
oberon_psa_core
21+
psa_core
2522
)

subsys/nrf_security/src/core/nrf_oberon/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,37 @@ append_with_prefix(src_crypto_core_oberon ${OBERON_PSA_CORE_PATH}/library/
1616
psa_crypto_storage.c
1717
)
1818

19-
add_library(oberon_psa_core STATIC
19+
add_library(psa_core STATIC
2020
${src_crypto_core_oberon}
2121
)
2222

2323
# Add the nordic version of psa_crypto_driver_wrappers with the core (out of tree)
24-
target_sources(oberon_psa_core
24+
target_sources(psa_core
2525
PRIVATE
2626
${NRF_SECURITY_ROOT}/src/psa_crypto_driver_wrappers.c
2727
)
2828

29-
target_link_libraries(oberon_psa_core
29+
target_link_libraries(psa_core
3030
PRIVATE
3131
psa_crypto_library_config
3232
psa_interface
3333
)
3434

35-
target_compile_definitions(oberon_psa_core
35+
target_compile_definitions(psa_core
3636
PRIVATE
3737
BUILDING_MBEDTLS_CRYPTO
3838
)
3939

40-
target_link_libraries(oberon_psa_core
40+
target_link_libraries(psa_core
4141
PRIVATE
4242
psa_crypto_library_config
4343
mbedcrypto_base
4444
nrf_security_utils
4545
)
4646

47-
nrf_security_add_zephyr_options_library(oberon_psa_core)
47+
nrf_security_add_zephyr_options_library(psa_core)
4848

4949
target_link_libraries(${mbedcrypto_target}
5050
PRIVATE
51-
oberon_psa_core
51+
psa_core
5252
)

subsys/nrf_security/src/drivers/cracen/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ else()
5656
add_dependencies(cracen_psa_driver zephyr_generated_headers)
5757
endif()
5858

59-
# Link oberon_psa_core with this PSA crypto driver
60-
target_link_libraries(oberon_psa_core
59+
# Link psa_core with this PSA crypto driver
60+
target_link_libraries(psa_core
6161
PRIVATE
6262
cracen_psa_driver
6363
)

subsys/nrf_security/src/drivers/nrf_cc3xx/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ target_include_directories(psa_crypto_library_config
1414
${NRF_CC3XX_MBEDCRYPTO_INCLUDE_PATH}
1515
)
1616

17-
# Link oberon_psa_core with the imported libraries
18-
target_link_libraries(oberon_psa_core
17+
# Link psa_core with the imported libraries
18+
target_link_libraries(psa_core
1919
INTERFACE
2020
nrf_cc3xx_psa_crypto_imported
2121
nrf_cc3xx_core_imported
2222
c
23-
)
23+
)

subsys/nrf_security/src/drivers/nrf_cc3xx_platform/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ target_include_directories(psa_crypto_library_config
1111
)
1212

1313
# Link the Oberon PSA core with nrf_cc3xx_platform
14-
target_link_libraries(oberon_psa_core
14+
target_link_libraries(psa_core
1515
PRIVATE
1616
nrf_cc3xx_platform
1717
)

subsys/nrf_security/src/drivers/nrf_oberon/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ target_link_libraries(oberon_psa_driver
8282
mbedcrypto_oberon_imported
8383
)
8484

85-
# Link oberon_psa_core with this driver
86-
target_link_libraries(oberon_psa_core
85+
# Link psa_core with this driver
86+
target_link_libraries(psa_core
8787
PRIVATE
8888
oberon_psa_driver
8989
)

subsys/nrf_security/src/drivers/zephyr/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Add the RNG driver to the Oberon PSA core (if needed)
88
if (PSA_NEED_NRF_RNG_ENTROPY_DRIVER)
9-
target_sources(oberon_psa_core
9+
target_sources(psa_core
1010
PRIVATE
1111
nrf_rng_entropy.c
1212
)

0 commit comments

Comments
 (0)