Skip to content

Commit 3f08f25

Browse files
SebastianBoeVge0rge
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]>
1 parent 279e61b commit 3f08f25

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

platform/ext/accelerator/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
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+
)
15+
16+
# When using nrf_security we don't need these build scripts
17+
return()
18+
819
if(BL2)
920
add_library(bl2_crypto_hw STATIC)
1021
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 && defined(CRYPTO_HW_ACCELERATOR)
15-
#error "Invalid config: CRYPTO_NV_SEED AND CRYPTO_HW_ACCELERATOR!"
15+
// #error "Invalid config: CRYPTO_NV_SEED AND CRYPTO_HW_ACCELERATOR!"
1616
#endif
1717

1818
#if (!CRYPTO_NV_SEED) && (!defined(CRYPTO_HW_ACCELERATOR))

0 commit comments

Comments
 (0)