Skip to content

Commit 89ecc81

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 89ecc81

File tree

2 files changed

+7
-1
lines changed
  • features/cryptocell/FEATURE_CRYPTOCELL310
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52

2 files changed

+7
-1
lines changed
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)