CMake STM32: fixing prefixes in the targets

pull/14255/head
Martin Kojtal 2021-02-10 15:23:22 +00:00
parent 6bf459e3ce
commit 2d3bf3fd34
14 changed files with 43 additions and 36 deletions

View File

@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE TOOLCHAIN_ARM/stm32f070xb.sct) set(LINKER_FILE TOOLCHAIN_ARM/stm32f070xb.sct)
endif() endif()
add_library(mbed-stm32f070xB INTERFACE) add_library(mbed-stm32f070xb INTERFACE)
target_sources(mbed-stm32f070xB target_sources(mbed-stm32f070xb
INTERFACE INTERFACE
system_clock.c system_clock.c
${STARTUP_FILE} ${STARTUP_FILE}
) )
target_include_directories(mbed-stm32f070xB target_include_directories(mbed-stm32f070xb
INTERFACE INTERFACE
. .
) )
mbed_set_linker_script(mbed-stm32f070xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}) mbed_set_linker_script(mbed-stm32f070xb ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_link_libraries(mbed-stm32f070xB INTERFACE mbed-stm32f0) target_link_libraries(mbed-stm32f070xb INTERFACE mbed-stm32f0)

View File

@ -13,4 +13,4 @@ target_include_directories(mbed-nucleo-f070rb
. .
) )
target_link_libraries(mbed-nucleo-f070rb INTERFACE mbed-stm32f070xB) target_link_libraries(mbed-nucleo-f070rb INTERFACE mbed-stm32f070xb)

View File

@ -13,4 +13,4 @@ target_include_directories(mbed-nucleo-f072rb
. .
) )
target_link_libraries(mbed-nucleo-f072rb INTERFACE mbed-stm32f072xB) target_link_libraries(mbed-nucleo-f072rb INTERFACE mbed-stm32f072xb)

View File

@ -13,4 +13,4 @@ target_include_directories(mbed-nucleo-f091rc
. .
) )
target_link_libraries(mbed-nucleo-f091rc INTERFACE mbed-stm32f091xC) target_link_libraries(mbed-nucleo-f091rc INTERFACE mbed-stm32f091xc)

View File

@ -1,16 +1,16 @@
# Copyright (c) 2021 ARM Limited. All rights reserved. # Copyright (c) 2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
add_library(mbed-nucleo-f103RB INTERFACE) add_library(mbed-nucleo-f103rb INTERFACE)
target_sources(mbed-nucleo-f103RB target_sources(mbed-nucleo-f103rb
INTERFACE INTERFACE
PeripheralPins.c PeripheralPins.c
) )
target_include_directories(mbed-nucleo-f103RB target_include_directories(mbed-nucleo-f103rb
INTERFACE INTERFACE
. .
) )
target_link_libraries(mbed-nucleo-f103RB INTERFACE mbed-stm32f103xb) target_link_libraries(mbed-nucleo-f103rb INTERFACE mbed-stm32f103xb)

View File

@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE TOOLCHAIN_ARM/stm32f207xg.sct) set(LINKER_FILE TOOLCHAIN_ARM/stm32f207xg.sct)
endif() endif()
add_library(mbed-stm32f207xG INTERFACE) add_library(mbed-stm32f207xg INTERFACE)
target_sources(mbed-stm32f207xG target_sources(mbed-stm32f207xg
INTERFACE INTERFACE
system_clock.c system_clock.c
${STARTUP_FILE} ${STARTUP_FILE}
) )
target_include_directories(mbed-stm32f207xG target_include_directories(mbed-stm32f207xg
INTERFACE INTERFACE
. .
) )
mbed_set_linker_script(mbed-stm32f207xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}) mbed_set_linker_script(mbed-stm32f207xg ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_link_libraries(mbed-stm32f207xG INTERFACE mbed-stm32f2) target_link_libraries(mbed-stm32f207xg INTERFACE mbed-stm32f2)

View File

@ -26,4 +26,4 @@ target_sources(mbed-stm32f3
spi_api.c spi_api.c
) )
target_link_libraries(mbed-stm32f3 INTERFACE mbed-stm mbed-stm32cube-fw) target_link_libraries(mbed-stm32f3 INTERFACE mbed-stm mbed-stm32f3cube-fw)

View File

@ -13,4 +13,4 @@ target_sources(mbed-nucleo-f303k8
PeripheralPins.c PeripheralPins.c
) )
target_link_libraries(mbed-nucleo-f303k8 INTERFACE STM32F303x8) target_link_libraries(mbed-nucleo-f303k8 INTERFACE mbed-stm32f303x8)

View File

@ -85,4 +85,4 @@ target_include_directories(mbed-stm32l1
device device
) )
target_link_libraries(mbed-stm32l1 INTERFACE STM) target_link_libraries(mbed-stm32l1 INTERFACE mbed-stm)

View File

@ -29,3 +29,10 @@ target_include_directories(mbed-xdot-l151cc
mbed_set_linker_script(mbed-xdot-l151cc ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}) mbed_set_linker_script(mbed-xdot-l151cc ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_link_libraries(mbed-xdot-l151cc INTERFACE mbed-stm32l1) target_link_libraries(mbed-xdot-l151cc INTERFACE mbed-stm32l1)
# Same target as XDOT_L151CC
add_library(mbed-ff-1705-l151cc INTERFACE)
target_link_libraries(mbed-xdot-l151cc INTERFACE mbed-xdot-l151cc)

View File

@ -1,9 +1,9 @@
# Copyright (c) 2020 ARM Limited. All rights reserved. # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
add_library(mbed-mts-dragonfly-L471qg INTERFACE) add_library(mbed-mts-dragonfly-l471qg INTERFACE)
target_sources(mbed-mts-dragonfly-L471qg target_sources(mbed-mts-dragonfly-l471qg
INTERFACE INTERFACE
mtqn_low_power.c mtqn_low_power.c
ONBOARD_SARA4_PPP.cpp ONBOARD_SARA4_PPP.cpp
@ -11,9 +11,9 @@ target_sources(mbed-mts-dragonfly-L471qg
PeripheralPins.c PeripheralPins.c
) )
target_include_directories(mbed-mts-dragonfly-L471qg target_include_directories(mbed-mts-dragonfly-l471qg
INTERFACE INTERFACE
. .
) )
target_link_libraries(mbed-mts-dragonfly-L471qg INTERFACE mbed-stm32l471xg) target_link_libraries(mbed-mts-dragonfly-l471qg INTERFACE mbed-stm32l471xg)

View File

@ -1,16 +1,16 @@
# Copyright (c) 2020 ARM Limited. All rights reserved. # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
add_library(mbed-disco-l475vg_iot01a INTERFACE) add_library(mbed-disco-l475vg-iot01a INTERFACE)
target_sources(mbed-disco-l475vg_iot01a target_sources(mbed-disco-l475vg-iot01a
INTERFACE INTERFACE
PeripheralPins.c PeripheralPins.c
) )
target_include_directories(mbed-disco-l475vg_iot01a target_include_directories(mbed-disco-l475vg-iot01a
INTERFACE INTERFACE
. .
) )
target_link_libraries(mbed-disco-l475vg_iot01a INTERFACE mbed-stm32l475xg) target_link_libraries(mbed-disco-l475vg-iot01a INTERFACE mbed-stm32l475xg)

View File

@ -1,18 +1,18 @@
# Copyright (c) 2020 ARM Limited. All rights reserved. # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
add_library(adv-wise-1570 INTERFACE) add_library(mbed-adv-wise-1570 INTERFACE)
target_sources(adv-wise-1570 target_sources(mbed-adv-wise-1570
INTERFACE INTERFACE
ONBOARD_QUECTEL_BC95.cpp ONBOARD_QUECTEL_BC95.cpp
PeripheralPins.c PeripheralPins.c
system_clock.c system_clock.c
) )
target_include_directories(adv-wise-1570 target_include_directories(mbed-adv-wise-1570
INTERFACE INTERFACE
. .
) )
target_link_libraries(adv-wise-1570 INTERFACE mbed-stm32l486xg) target_link_libraries(mbed-adv-wise-1570 INTERFACE mbed-stm32l486xg)

View File

@ -1,16 +1,16 @@
# Copyright (c) 2020 ARM Limited. All rights reserved. # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
add_library(mbed-discol562qe INTERFACE) add_library(mbed-disco-l562qe INTERFACE)
target_sources(mbed-discol562qe target_sources(mbed-disco-l562qe
INTERFACE INTERFACE
PeripheralPins.c PeripheralPins.c
) )
target_include_directories(mbed-discol562qe target_include_directories(mbed-disco-l562qe
INTERFACE INTERFACE
. .
) )
target_link_libraries(mbed-discol562qe INTERFACE mbed-stm32l562xe) target_link_libraries(mbed-disco-l562qe INTERFACE mbed-stm32l562xe)