mirror of https://github.com/ARMmbed/mbed-os.git
CMake Freescale: add freescale prefix to avoid conflict with NXP
parent
ad8b9f651e
commit
a0ee432279
|
@ -9,14 +9,16 @@ add_subdirectory(TARGET_MCU_K22F EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_MCU_K64F EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(middleware/wireless/TARGET_FRAMEWORK_5_3_3 EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(mbed-mcuxpresso-mcus INTERFACE)
|
||||
# We append freescale to the name as this should be unique but NXP/Freescale are in the tree covering
|
||||
# same vendor
|
||||
add_library(mbed-freescale-mcuxpresso-mcus INTERFACE)
|
||||
|
||||
target_include_directories(mbed-mcuxpresso-mcus
|
||||
target_include_directories(mbed-freescale-mcuxpresso-mcus
|
||||
INTERFACE
|
||||
api
|
||||
)
|
||||
|
||||
target_sources(mbed-mcuxpresso-mcus
|
||||
target_sources(mbed-freescale-mcuxpresso-mcus
|
||||
INTERFACE
|
||||
fsl_common.c
|
||||
|
||||
|
@ -35,4 +37,4 @@ target_sources(mbed-mcuxpresso-mcus
|
|||
api/sleep.c
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-mcuxpresso-mcus INTERFACE mbed-freescale)
|
||||
target_link_libraries(mbed-freescale-mcuxpresso-mcus INTERFACE mbed-freescale)
|
||||
|
|
|
@ -78,4 +78,4 @@ target_sources(mbed-k66f
|
|||
|
||||
mbed_set_linker_script(mbed-k66f ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(mbed-k66f INTERFACE mbed-mcuxpresso-mcus mbed-frdm-k66f)
|
||||
target_link_libraries(mbed-k66f INTERFACE mbed-freescale-mcuxpresso-mcus mbed-frdm-k66f)
|
||||
|
|
|
@ -92,4 +92,4 @@ target_sources(mbed-k82f
|
|||
|
||||
mbed_set_linker_script(mbed-k82f ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(mbed-k82f INTERFACE mbed-mcuxpresso-mcus mbed-frdm-k82f)
|
||||
target_link_libraries(mbed-k82f INTERFACE mbed-freescale-mcuxpresso-mcus mbed-frdm-k82f)
|
||||
|
|
|
@ -70,7 +70,7 @@ target_sources(mbed-kl43z
|
|||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-kl43z INTERFACE mbed-mcuxpresso-mcus)
|
||||
target_link_libraries(mbed-kl43z INTERFACE mbed-freescale-mcuxpresso-mcus)
|
||||
|
||||
mbed_set_linker_script(mbed-kl43z ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
|
|
|
@ -66,4 +66,4 @@ target_sources(mbed-kw41z
|
|||
|
||||
mbed_set_linker_script(mbed-kw41z ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(mbed-kw41z INTERFACE mbed-mcuxpresso-mcus mbed-framework-5-3-3 mbed-frdm-kw41z)
|
||||
target_link_libraries(mbed-kw41z INTERFACE mbed-freescale-mcuxpresso-mcus mbed-framework-5-3-3 mbed-frdm-kw41z)
|
||||
|
|
|
@ -55,4 +55,4 @@ target_sources(mbed-mcu-k22f
|
|||
drivers/fsl_wdog.c
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-mcu-k22f INTERFACE mbed-mcuxpresso-mcus)
|
||||
target_link_libraries(mbed-mcu-k22f INTERFACE mbed-freescale-mcuxpresso-mcus)
|
||||
|
|
|
@ -75,7 +75,7 @@ target_sources(mbed-mcu-k64f
|
|||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-mcu-k64f INTERFACE mbed-mcuxpresso-mcus)
|
||||
target_link_libraries(mbed-mcu-k64f INTERFACE mbed-freescale-mcuxpresso-mcus)
|
||||
|
||||
mbed_set_linker_script(mbed-mcu-k64f ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
|
|
Loading…
Reference in New Issue