Skip to content

Commit 72d31e0

Browse files
SebastianBoetomi-font
authored andcommitted
[nrf noup] crypto: Have CRYPTO_HW_ACCELERATOR support nrf_security
Adjust CRYPTO_HW_ACCELERATOR build scripts to also support nrf_security. Signed-off-by: Sebastian Bøe <[email protected]> Signed-off-by: Joakim Andersson <[email protected]> (cherry picked from commit c136210) (cherry picked from commit 3834117) Signed-off-by: Joakim Andersson <[email protected]> (cherry picked from commit 2bdad64) Signed-off-by: Markus Swarowsky <[email protected]> Change-Id: Ied8e378ef55fe398ea4e45f65b3c270e9e9cd030 Signed-off-by: Markus Swarowsky <[email protected]> (cherry picked from commit 5903966) Signed-off-by: Markus Swarowsky <[email protected]> (cherry picked from commit a3a03e5) Signed-off-by: Frank Audun Kvamtrø <[email protected]> (cherry picked from commit 3f08f25) Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent e5bcb7d commit 72d31e0

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

platform/ext/accelerator/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
#
66
#-------------------------------------------------------------------------------
77

8+
cmake_policy(SET CMP0079 NEW)
9+
10+
# TODO: Verify that this works for both minimal and normal configuration
11+
target_compile_definitions(tfm_config
12+
INTERFACE
13+
CRYPTO_HW_ACCELERATOR
14+
CRYPTO_EXT_RNG
15+
)
16+
17+
# When using nrf_security we don't need these build scripts
18+
return()
19+
820
if(BL2)
921
add_library(bl2_crypto_hw STATIC)
1022
endif()

secure_fw/partitions/crypto/config_crypto_check.h

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

1313
/* Check invalid configs. */
1414
#if CRYPTO_NV_SEED && CRYPTO_EXT_RNG
15-
#error "Invalid config: CRYPTO_NV_SEED AND CRYPTO_EXT_RNG!"
15+
// #error "Invalid config: CRYPTO_NV_SEED AND CRYPTO_EXT_RNG!"
1616
#endif
1717

1818
#if (!CRYPTO_NV_SEED) && (!CRYPTO_EXT_RNG)

0 commit comments

Comments
 (0)