Skip to content

Commit 65fbee1

Browse files
committed
NRF52840_DK: Fix baremetal linker error
Compile in the inclusion of cryptocell310 only if the library is included in the build
1 parent 789a193 commit 65fbee1

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

TESTS/configs/baremetal.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"events",
3333
"kv-global-api",
3434
"sd",
35-
"qspif"
35+
"qspif",
36+
"cryptocell310"
3637
],
3738
"target_overrides": {
3839
"*": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "cryptocell310",
3+
"config": {
4+
"present": 1
5+
}
6+
}

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extern "C" {
5454

5555
#include "nrf_uart.h"
5656

57-
#if defined(FEATURE_CRYPTOCELL310)
57+
#if MBED_CONF_CRYPTOCELL310_PRESENT
5858
#include "objects_cryptocell.h"
5959
#else
6060
struct trng_s {

0 commit comments

Comments
 (0)