-
Notifications
You must be signed in to change notification settings - Fork 3k
CMake: Address review comment from PR#13566 #13870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
991b02c
a4d8559
766a9a8
a044bfa
cc7ae38
4c05ce8
438994d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
# Copyright (c) 2020 ARM Limited. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if("MCU_NRF52840" IN_LIST MBED_TARGET_LABELS) | ||
add_subdirectory(TARGET_MCU_NRF52840) | ||
elseif("NRF5x" IN_LIST MBED_TARGET_LABELS) | ||
if("NRF5x" IN_LIST MBED_TARGET_LABELS) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. was there an intention here? The build failed to built this target with cordio sources. please review logs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, this makes sense. So why it fails now then? |
||
add_subdirectory(TARGET_NRF5x) | ||
endif() |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
# Copyright (c) 2020 ARM Limited. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
function(_mbed_get_libcc_310_core) | ||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM") | ||
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) | ||
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR") | ||
set(LIBCC_310_CORE TOOLCHAIN_IAR/lib_cc310_ext.a) | ||
endif() | ||
target_link_libraries(mbed-mbedtls-cryptocell310 | ||
INTERFACE | ||
./${LIBCC_310_CORE} | ||
) | ||
endfunction() | ||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM") | ||
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) | ||
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR") | ||
set(LIBCC_310_CORE TOOLCHAIN_IAR/lib_cc310_ext.a) | ||
rajkan01 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
endif() | ||
|
||
_mbed_get_libcc_310_core() | ||
target_link_libraries(mbed-mbedtls-cryptocell310 | ||
INTERFACE | ||
${CMAKE_CURRENT_SOURCE_DIR}/${LIBCC_310_CORE} | ||
hugueskamba marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be in our toolchain file (related to toolchain set up, although for an app)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted the changes and keep the
mbed_set_language_standard
funcion and movedtarget_compile_feature
inside of it, please re-review