Skip to content

Commit 607e4f2

Browse files
osaetherVge0rge
authored andcommitted
samples: crypto: Added snippet for crypto_service for target nrf54h20
Added snippet for crypto_service for targets nrf54h20dk_nrf54h20_cpuapp and nrf54h20dk_nrf54h20_cpurad and enabled the snippet for supported samples. Ref: NCSDK-NONE Signed-off-by: Ole Sæther <[email protected]>
1 parent 8c6c1da commit 607e4f2

34 files changed

+177
-3
lines changed

samples/crypto/aes_cbc/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
cmake_minimum_required(VERSION 3.20.0)
88

9+
if(NOT crypto_service IN_LIST SNIPPET)
10+
set(SNIPPET crypto_service ${SNIPPET} CACHE STRING "" FORCE)
11+
endif()
12+
913
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1014

1115
project(aes_cbc)

samples/crypto/aes_cbc/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ tests:
3232
platform_allow: >
3333
nrf54l15pdk/nrf54l15/cpuapp nrf54l15pdk/nrf54l15/cpuapp/ns
3434
harness: console
35+
required_snippets:
36+
- crypto_service
3537
harness_config:
3638
type: multi_line
3739
regex:

samples/crypto/aes_ccm/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
cmake_minimum_required(VERSION 3.20.0)
88

9+
if(NOT crypto_service IN_LIST SNIPPET)
10+
set(SNIPPET crypto_service ${SNIPPET} CACHE STRING "" FORCE)
11+
endif()
12+
913
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1014

1115
project(aes_ccm)

samples/crypto/aes_ccm/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ tests:
3232
platform_allow: >
3333
nrf54l15pdk/nrf54l15/cpuapp nrf54l15pdk/nrf54l15/cpuapp/ns
3434
harness: console
35+
required_snippets:
36+
- crypto_service
3537
harness_config:
3638
type: multi_line
3739
regex:

samples/crypto/aes_ctr/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
cmake_minimum_required(VERSION 3.20.0)
88

9+
if(NOT crypto_service IN_LIST SNIPPET)
10+
set(SNIPPET crypto_service ${SNIPPET} CACHE STRING "" FORCE)
11+
endif()
12+
913
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1014

1115
project(aes_ctr)

samples/crypto/aes_ctr/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ tests:
3232
platform_allow: >
3333
nrf54l15pdk/nrf54l15/cpuapp nrf54l15pdk/nrf54l15/cpuapp/ns
3434
harness: console
35+
required_snippets:
36+
- crypto_service
3537
harness_config:
3638
type: multi_line
3739
regex:

samples/crypto/aes_gcm/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
cmake_minimum_required(VERSION 3.20.0)
88

9+
if(NOT crypto_service IN_LIST SNIPPET)
10+
set(SNIPPET crypto_service ${SNIPPET} CACHE STRING "" FORCE)
11+
endif()
12+
913
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1014

1115
project(aes_gcm)

samples/crypto/aes_gcm/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ tests:
4343
nrf54l15pdk/nrf54l15/cpuapp
4444
nrf54l15pdk/nrf54l15/cpuapp/ns
4545
harness: console
46+
required_snippets:
47+
- crypto_service
4648
harness_config:
4749
type: multi_line
4850
regex:

samples/crypto/chachapoly/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
cmake_minimum_required(VERSION 3.20.0)
88

9+
if(NOT crypto_service IN_LIST SNIPPET)
10+
set(SNIPPET crypto_service ${SNIPPET} CACHE STRING "" FORCE)
11+
endif()
12+
913
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1014

1115
project(chacha_poly)

samples/crypto/chachapoly/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ tests:
3333
nrf54l15pdk/nrf54l15/cpuapp
3434
nrf54l15pdk/nrf54l15/cpuapp/ns
3535
harness: console
36+
required_snippets:
37+
- crypto_service
3638
harness_config:
3739
type: multi_line
3840
regex:

0 commit comments

Comments
 (0)