Skip to content

Commit 2f7728e

Browse files
authored
Merge pull request #14266 from rwalton-arm/dev/rwalton-arm/fix-st-targets
Fix up some ST CMake targets
2 parents 33c06fb + ab7a530 commit 2f7728e

File tree

6 files changed

+57
-10
lines changed

6 files changed

+57
-10
lines changed

targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/TARGET_NUCLEO_G431KB/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ target_include_directories(mbed-nucleo-g431kb
1212
INTERFACE
1313
.
1414
)
15+
16+
target_link_libraries(mbed-nucleo-g431kb INTERFACE mbed-stm32g431xb)

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
add_subdirectory(TARGET_STM32H747xI_CM4 EXCLUDE_FROM_ALL)
5+
add_subdirectory(TARGET_STM32H747xI_CM7 EXCLUDE_FROM_ALL)
46
add_subdirectory(TARGET_DISCO_H747I EXCLUDE_FROM_ALL)
57
add_subdirectory(TARGET_PORTENTA_H7 EXCLUDE_FROM_ALL)
6-
add_subdirectory(TARGET_STM32H747xI_CM7 EXCLUDE_FROM_ALL)
7-
add_subdirectory(TARGET_STM32H747xI_CM4 EXCLUDE_FROM_ALL)
88

99
add_library(mbed-stm32h747xi INTERFACE)
1010

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_DISCO_H747I/CMakeLists.txt

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,34 @@ target_include_directories(mbed-disco-h747i
1313
.
1414
)
1515

16-
target_link_libraries(mbed-disco-h747i INTERFACE mbed-stm32h747xi mbed-stm32h747xi-cm7)
16+
target_link_libraries(mbed-disco-h747i INTERFACE mbed-stm32h747xi-cm7)
17+
1718

1819
add_library(mbed-disco-h747i-cm7 INTERFACE)
19-
target_link_libraries(mbed-disco-h747i-cm7 INTERFACE mbed-stm32h747xi mbed-stm32h747xi-cm7)
20+
21+
target_sources(mbed-disco-h747i-cm7
22+
INTERFACE
23+
PeripheralPins.c
24+
)
25+
26+
target_include_directories(mbed-disco-h747i-cm7
27+
INTERFACE
28+
.
29+
)
30+
31+
target_link_libraries(mbed-disco-h747i-cm7 INTERFACE mbed-stm32h747xi-cm7)
32+
2033

2134
add_library(mbed-disco-h747i-cm4 INTERFACE)
22-
target_link_libraries(mbed-disco-h747i-cm4 INTERFACE mbed-stm32h747xi mbed-stm32h747xi-cm4)
35+
36+
target_sources(mbed-disco-h747i-cm4
37+
INTERFACE
38+
PeripheralPins.c
39+
)
40+
41+
target_include_directories(mbed-disco-h747i-cm4
42+
INTERFACE
43+
.
44+
)
45+
46+
target_link_libraries(mbed-disco-h747i-cm4 INTERFACE mbed-stm32h747xi-cm4)
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
add_library(mbed-portenta-h7 INTERFACE)
4+
add_library(mbed-portenta-h7-m4 INTERFACE)
55

6-
target_sources(mbed-portenta-h7
6+
target_sources(mbed-portenta-h7-m4
77
INTERFACE
88
PeripheralPins.c
99
system_clock_override.c
1010
portenta_power.cpp
1111
)
1212

13-
target_include_directories(mbed-portenta-h7
13+
target_include_directories(mbed-portenta-h7-m4
1414
INTERFACE
1515
.
1616
)
1717

18-
target_link_libraries(mbed-portenta-h7 INTERFACE mbed-stm32h747xi)
18+
target_link_libraries(mbed-portenta-h7-m4 INTERFACE mbed-stm32h747xi-cm4)
19+
20+
21+
add_library(mbed-portenta-h7-m7 INTERFACE)
22+
23+
target_sources(mbed-portenta-h7-m7
24+
INTERFACE
25+
PeripheralPins.c
26+
system_clock_override.c
27+
portenta_power.cpp
28+
)
29+
30+
target_include_directories(mbed-portenta-h7-m7
31+
INTERFACE
32+
.
33+
)
34+
35+
target_link_libraries(mbed-portenta-h7-m7 INTERFACE mbed-stm32h747xi-cm7)

targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L073xZ/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ add_subdirectory(TARGET_NUCLEO_L073RZ EXCLUDE_FROM_ALL)
55

66
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
77
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32l073xx.S)
8-
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32l073xz.ld)
8+
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32L073XZ.ld)
99
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1010
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32l073xx.S)
1111
set(LINKER_FILE TOOLCHAIN_ARM/stm32l073xz.sct)

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4R5xI/TARGET_NUCLEO_L4R5ZI/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ target_include_directories(mbed-nucleo-l4r5zi
1414
)
1515

1616
target_link_libraries(mbed-nucleo-l4r5zi INTERFACE mbed-stm32l4r5xi)
17+
18+
19+
add_library(mbed-nucleo-l4r5zi-p INTERFACE)
20+
target_link_libraries(mbed-nucleo-l4r5zi-p INTERFACE mbed-nucleo-l4r5zi)

0 commit comments

Comments
 (0)