mirror of https://github.com/ARMmbed/mbed-os.git
Create FLASH CMSIS ALGO target to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify the requirements of Mbed targets.pull/14308/head
parent
26606218ad
commit
7d49d4bce1
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("FLASH_CMSIS_ALGO" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_FLASH_CMSIS_ALGO)
|
||||
endif()
|
||||
add_subdirectory(TARGET_FLASH_CMSIS_ALGO EXCLUDE_FROM_ALL)
|
||||
|
||||
add_subdirectory(usb)
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-core
|
||||
add_library(mbed-flash-cmsis-algo INTERFACE)
|
||||
|
||||
target_include_directories(mbed-flash-cmsis-algo
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(mbed-flash-cmsis-algo
|
||||
INTERFACE
|
||||
flash_common_algo.c
|
||||
)
|
||||
|
|
|
@ -15,4 +15,4 @@ target_sources(mbed-ev-cog-ad3029lz
|
|||
device/startup_ADuCM3029.c
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-ev-cog-ad3029lz INTERFACE mbed-aducm3029)
|
||||
target_link_libraries(mbed-ev-cog-ad3029lz INTERFACE mbed-aducm3029 mbed-flash-cmsis-algo)
|
||||
|
|
|
@ -15,4 +15,4 @@ target_sources(mbed-ev-cog-ad4050lz
|
|||
device/startup_ADuCM4050.c
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-ev-cog-ad4050lz INTERFACE mbed-aducm4050)
|
||||
target_link_libraries(mbed-ev-cog-ad4050lz INTERFACE mbed-aducm4050 mbed-flash-cmsis-algo)
|
||||
|
|
|
@ -32,4 +32,4 @@ target_sources(mbed-kl46z
|
|||
|
||||
mbed_set_linker_script(mbed-kl46z ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(mbed-kl46z INTERFACE mbed-klxx)
|
||||
target_link_libraries(mbed-kl46z INTERFACE mbed-klxx mbed-flash-cmsis-algo)
|
||||
|
|
|
@ -70,7 +70,7 @@ target_include_directories(mbed-m251
|
|||
device/StdDriver/inc
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-m251 INTERFACE mbed-nuvoton)
|
||||
target_link_libraries(mbed-m251 INTERFACE mbed-nuvoton mbed-flash-cmsis-algo)
|
||||
|
||||
mbed_set_linker_script(mbed-m251 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ target_include_directories(mbed-m261
|
|||
device/StdDriver/inc
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-m261 INTERFACE mbed-nuvoton)
|
||||
target_link_libraries(mbed-m261 INTERFACE mbed-nuvoton mbed-flash-cmsis-algo)
|
||||
|
||||
mbed_set_linker_script(mbed-m261 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
|
|
|
@ -75,4 +75,4 @@ mbed_set_linker_script(mbed-m451 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
|||
|
||||
add_library(mbed-numaker-pfm-m453 INTERFACE)
|
||||
|
||||
target_link_libraries(mbed-numaker-pfm-m453 INTERFACE mbed-m451)
|
||||
target_link_libraries(mbed-numaker-pfm-m453 INTERFACE mbed-m451 mbed-flash-cmsis-algo)
|
||||
|
|
|
@ -86,7 +86,7 @@ target_include_directories(mbed-m480
|
|||
device/StdDriver/inc
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-m480 INTERFACE mbed-nuvoton)
|
||||
target_link_libraries(mbed-m480 INTERFACE mbed-nuvoton mbed-flash-cmsis-algo)
|
||||
|
||||
mbed_set_linker_script(mbed-m480 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
|
|
|
@ -94,4 +94,4 @@ target_link_libraries(mbed-nuc472 INTERFACE mbed-nuvoton)
|
|||
|
||||
add_library(mbed-numaker-pfm-nuc472 INTERFACE)
|
||||
|
||||
target_link_libraries(mbed-numaker-pfm-nuc472 INTERFACE mbed-nuc472 mbed-nu-xram-supported)
|
||||
target_link_libraries(mbed-numaker-pfm-nuc472 INTERFACE mbed-nuc472 mbed-nu-xram-supported mbed-flash-cmsis-algo)
|
||||
|
|
Loading…
Reference in New Issue