Skip to content

Commit 2d3bf3f

Browse files
committed
CMake STM32: fixing prefixes in the targets
1 parent 6bf459e commit 2d3bf3f

File tree

14 files changed

+43
-36
lines changed

14 files changed

+43
-36
lines changed

targets/TARGET_STM/TARGET_STM32F0/TARGET_STM32F070xB/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1111
set(LINKER_FILE TOOLCHAIN_ARM/stm32f070xb.sct)
1212
endif()
1313

14-
add_library(mbed-stm32f070xB INTERFACE)
14+
add_library(mbed-stm32f070xb INTERFACE)
1515

16-
target_sources(mbed-stm32f070xB
16+
target_sources(mbed-stm32f070xb
1717
INTERFACE
1818
system_clock.c
1919
${STARTUP_FILE}
2020
)
2121

22-
target_include_directories(mbed-stm32f070xB
22+
target_include_directories(mbed-stm32f070xb
2323
INTERFACE
2424
.
2525
)
2626

27-
mbed_set_linker_script(mbed-stm32f070xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
27+
mbed_set_linker_script(mbed-stm32f070xb ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
2828

29-
target_link_libraries(mbed-stm32f070xB INTERFACE mbed-stm32f0)
29+
target_link_libraries(mbed-stm32f070xb INTERFACE mbed-stm32f0)

targets/TARGET_STM/TARGET_STM32F0/TARGET_STM32F070xB/TARGET_NUCLEO_F070RB/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ target_include_directories(mbed-nucleo-f070rb
1313
.
1414
)
1515

16-
target_link_libraries(mbed-nucleo-f070rb INTERFACE mbed-stm32f070xB)
16+
target_link_libraries(mbed-nucleo-f070rb INTERFACE mbed-stm32f070xb)

targets/TARGET_STM/TARGET_STM32F0/TARGET_STM32F072xB/TARGET_NUCLEO_F072RB/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ target_include_directories(mbed-nucleo-f072rb
1313
.
1414
)
1515

16-
target_link_libraries(mbed-nucleo-f072rb INTERFACE mbed-stm32f072xB)
16+
target_link_libraries(mbed-nucleo-f072rb INTERFACE mbed-stm32f072xb)

targets/TARGET_STM/TARGET_STM32F0/TARGET_STM32F091xC/TARGET_NUCLEO_F091RC/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ target_include_directories(mbed-nucleo-f091rc
1313
.
1414
)
1515

16-
target_link_libraries(mbed-nucleo-f091rc INTERFACE mbed-stm32f091xC)
16+
target_link_libraries(mbed-nucleo-f091rc INTERFACE mbed-stm32f091xc)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Copyright (c) 2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
add_library(mbed-nucleo-f103RB INTERFACE)
4+
add_library(mbed-nucleo-f103rb INTERFACE)
55

6-
target_sources(mbed-nucleo-f103RB
6+
target_sources(mbed-nucleo-f103rb
77
INTERFACE
88
PeripheralPins.c
99
)
1010

11-
target_include_directories(mbed-nucleo-f103RB
11+
target_include_directories(mbed-nucleo-f103rb
1212
INTERFACE
1313
.
1414
)
1515

16-
target_link_libraries(mbed-nucleo-f103RB INTERFACE mbed-stm32f103xb)
16+
target_link_libraries(mbed-nucleo-f103rb INTERFACE mbed-stm32f103xb)

targets/TARGET_STM/TARGET_STM32F2/TARGET_STM32F207xG/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1111
set(LINKER_FILE TOOLCHAIN_ARM/stm32f207xg.sct)
1212
endif()
1313

14-
add_library(mbed-stm32f207xG INTERFACE)
14+
add_library(mbed-stm32f207xg INTERFACE)
1515

16-
target_sources(mbed-stm32f207xG
16+
target_sources(mbed-stm32f207xg
1717
INTERFACE
1818
system_clock.c
1919
${STARTUP_FILE}
2020
)
2121

22-
target_include_directories(mbed-stm32f207xG
22+
target_include_directories(mbed-stm32f207xg
2323
INTERFACE
2424
.
2525
)
2626

27-
mbed_set_linker_script(mbed-stm32f207xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
27+
mbed_set_linker_script(mbed-stm32f207xg ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
2828

29-
target_link_libraries(mbed-stm32f207xG INTERFACE mbed-stm32f2)
29+
target_link_libraries(mbed-stm32f207xg INTERFACE mbed-stm32f2)

targets/TARGET_STM/TARGET_STM32F3/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ target_sources(mbed-stm32f3
2626
spi_api.c
2727
)
2828

29-
target_link_libraries(mbed-stm32f3 INTERFACE mbed-stm mbed-stm32cube-fw)
29+
target_link_libraries(mbed-stm32f3 INTERFACE mbed-stm mbed-stm32f3cube-fw)

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/TARGET_NUCLEO_F303K8/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ target_sources(mbed-nucleo-f303k8
1313
PeripheralPins.c
1414
)
1515

16-
target_link_libraries(mbed-nucleo-f303k8 INTERFACE STM32F303x8)
16+
target_link_libraries(mbed-nucleo-f303k8 INTERFACE mbed-stm32f303x8)

targets/TARGET_STM/TARGET_STM32L1/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ target_include_directories(mbed-stm32l1
8585
device
8686
)
8787

88-
target_link_libraries(mbed-stm32l1 INTERFACE STM)
88+
target_link_libraries(mbed-stm32l1 INTERFACE mbed-stm)

targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,10 @@ target_include_directories(mbed-xdot-l151cc
2929
mbed_set_linker_script(mbed-xdot-l151cc ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
3030

3131
target_link_libraries(mbed-xdot-l151cc INTERFACE mbed-stm32l1)
32+
33+
34+
# Same target as XDOT_L151CC
35+
add_library(mbed-ff-1705-l151cc INTERFACE)
36+
37+
target_link_libraries(mbed-xdot-l151cc INTERFACE mbed-xdot-l151cc)
38+

0 commit comments

Comments
 (0)