Fix CI issue:

- Added absolute path as cmake failed to find linker file from relative path
- Added the missing MBED_CONF_CRYPTOCELL310_PRESENT
- Added the dependency library to BLE Cordio stack
pull/13870/head
Rajkumar Kanagaraj 2020-11-12 11:19:24 +00:00
parent 4c05ce874a
commit 438994ded4
4 changed files with 23 additions and 12 deletions

View File

@ -19,3 +19,9 @@ target_sources(mbed-ble-cordio
stack/sources/pal_crypto.c
stack/sources/pal_timer.c
)
target_link_libraries(mbed-ble-cordio
INTERFACE
mbed-ble-cordio_ll
mbed-mbedtls-cryptocell310
)

View File

@ -29,6 +29,11 @@ target_sources(mbed-mbedtls-cryptocell310
source/trng.c
)
target_compile_definitions(mbed-mbedtls-cryptocell310
INTERFACE
MBED_CONF_CRYPTOCELL310_PRESENT=1
)
target_link_libraries(mbed-mbedtls-cryptocell310
INTERFACE
mbed-mbedtls

View File

@ -2,14 +2,14 @@
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LIBCC_310_EXT ./TOOLCHAIN_GCC_ARM/libcc_310_ext.a)
set(LIBCC_310_TRNG ./TOOLCHAIN_GCC_ARM/libcc_310_trng.a)
set(LIBCC_310_EXT TOOLCHAIN_GCC_ARM/libcc_310_ext.a)
set(LIBCC_310_TRNG TOOLCHAIN_GCC_ARM/libcc_310_trng.a)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LIBCC_310_EXT ./TOOLCHAIN_ARM/libcc_310_ext.ar)
set(LIBCC_310_TRNG ./TOOLCHAIN_ARM/libcc_310_trng.ar)
set(LIBCC_310_EXT TOOLCHAIN_ARM/libcc_310_ext.ar)
set(LIBCC_310_TRNG TOOLCHAIN_ARM/libcc_310_trng.ar)
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
set(LIBCC_310_EXT ./TOOLCHAIN_IAR/lib_cc310_ext.a)
set(LIBCC_310_TRNG ./TOOLCHAIN_IAR/lib_cc310_trng.a)
set(LIBCC_310_EXT TOOLCHAIN_IAR/lib_cc310_ext.a)
set(LIBCC_310_TRNG TOOLCHAIN_IAR/lib_cc310_trng.a)
endif()
target_include_directories(mbed-mbedtls-cryptocell310
@ -24,6 +24,6 @@ target_sources(mbed-mbedtls-cryptocell310
target_link_libraries(mbed-mbedtls-cryptocell310
INTERFACE
${LIBCC_310_EXT}
${LIBCC_310_TRNG}
${CMAKE_CURRENT_SOURCE_DIR}/${LIBCC_310_EXT}
${CMAKE_CURRENT_SOURCE_DIR}/${LIBCC_310_TRNG}
)

View File

@ -2,14 +2,14 @@
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LIBCC_310_CORE ./TOOLCHAIN_GCC_ARM/libcc_310_core.a)
set(LIBCC_310_CORE TOOLCHAIN_GCC_ARM/libcc_310_core.a)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LIBCC_310_CORE ./TOOLCHAIN_ARM/libcc_310_core.ar)
set(LIBCC_310_CORE TOOLCHAIN_ARM/libcc_310_core.ar)
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
set(LIBCC_310_CORE ./TOOLCHAIN_IAR/lib_cc310_ext.a)
set(LIBCC_310_CORE TOOLCHAIN_IAR/lib_cc310_ext.a)
endif()
target_link_libraries(mbed-mbedtls-cryptocell310
INTERFACE
${LIBCC_310_CORE}
${CMAKE_CURRENT_SOURCE_DIR}/${LIBCC_310_CORE}
)