NRF52840_DK: Fix baremetal linker error

Compile in the inclusion of cryptocell310 only if the library is included
in the build
pull/12166/head
Hugues Kamba 2019-12-22 23:22:41 +00:00
parent 789a193696
commit 65fbee1d33
3 changed files with 9 additions and 2 deletions

View File

@ -32,7 +32,8 @@
"events", "events",
"kv-global-api", "kv-global-api",
"sd", "sd",
"qspif" "qspif",
"cryptocell310"
], ],
"target_overrides": { "target_overrides": {
"*": { "*": {

View File

@ -0,0 +1,6 @@
{
"name": "cryptocell310",
"config": {
"present": 1
}
}

View File

@ -54,7 +54,7 @@ extern "C" {
#include "nrf_uart.h" #include "nrf_uart.h"
#if defined(FEATURE_CRYPTOCELL310) #if MBED_CONF_CRYPTOCELL310_PRESENT
#include "objects_cryptocell.h" #include "objects_cryptocell.h"
#else #else
struct trng_s { struct trng_s {