mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Fix detection of RTX assembly file
Access MBED_TARGET_LABELS as a global variable instead of a property. At this point the evaluation of the property MBED_TARGET_LABELS created in the top level CMakeLists.txt results in an empty string.pull/13566/head
parent
4af48a3425
commit
42cd929418
|
@ -2,8 +2,7 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
function(_mbed_get_rtx_assembly toolchain_dir)
|
function(_mbed_get_rtx_assembly toolchain_dir)
|
||||||
get_property(target_labels GLOBAL PROPERTY MBED_TARGET_LABELS)
|
foreach(key ${MBED_TARGET_LABELS})
|
||||||
foreach(key ${target_labels})
|
|
||||||
if(${key} STREQUAL CORTEX_A)
|
if(${key} STREQUAL CORTEX_A)
|
||||||
set(STARTUP_RTX_FILE TARGET_CORTEX_A/irq_ca.S)
|
set(STARTUP_RTX_FILE TARGET_CORTEX_A/irq_ca.S)
|
||||||
elseif(${key} STREQUAL M0)
|
elseif(${key} STREQUAL M0)
|
||||||
|
@ -28,8 +27,7 @@ function(_mbed_get_rtx_assembly toolchain_dir)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(_mbed_add_cortexa_handler_if)
|
function(_mbed_add_cortexa_handler_if)
|
||||||
get_property(target_labels GLOBAL PROPERTY MBED_TARGET_LABELS)
|
foreach(key ${MBED_TARGET_LABELS})
|
||||||
foreach(key ${target_labels})
|
|
||||||
if(${key} STREQUAL CORTEX_A)
|
if(${key} STREQUAL CORTEX_A)
|
||||||
target_sources(mbed-os PRIVATE Config/TARGET_CORTEX_A/handlers.c)
|
target_sources(mbed-os PRIVATE Config/TARGET_CORTEX_A/handlers.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue