From 00e83ce6e295d78d061bae84f4de51d8cac85915 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Wed, 10 Feb 2021 10:56:04 +0000 Subject: [PATCH] CMake STM32: fix missing mbed for some nucleo targets --- .../TARGET_NUCLEO_F207ZG/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F303ZE/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F401RE/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F411RE/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F412ZG/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F413ZH/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F429ZI/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F439ZI/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F446RE/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F446ZE/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F746ZG/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F756ZG/CMakeLists.txt | 8 ++++---- .../TARGET_NUCLEO_F767ZI/CMakeLists.txt | 8 ++++---- 13 files changed, 52 insertions(+), 52 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32F2/TARGET_STM32F207xG/TARGET_NUCLEO_F207ZG/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F2/TARGET_STM32F207xG/TARGET_NUCLEO_F207ZG/CMakeLists.txt index b8917b2d5e..4ed53f40b5 100644 --- a/targets/TARGET_STM/TARGET_STM32F2/TARGET_STM32F207xG/TARGET_NUCLEO_F207ZG/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F2/TARGET_STM32F207xG/TARGET_NUCLEO_F207ZG/CMakeLists.txt @@ -1,16 +1,16 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f207zg INTERFACE) +add_library(mbed-nucleo-f207zg INTERFACE) -target_sources(nucleo-f207zg +target_sources(mbed-nucleo-f207zg INTERFACE PeripheralPins.c ) -target_include_directories(nucleo-f207zg +target_include_directories(mbed-nucleo-f207zg INTERFACE . ) -target_link_libraries(nucleo-f207zg INTERFACE mbed-stm32f207xg) +target_link_libraries(mbed-nucleo-f207zg INTERFACE mbed-stm32f207xg) diff --git a/targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303ZE/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303ZE/CMakeLists.txt index c5e317ab0b..a407969540 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303ZE/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303ZE/CMakeLists.txt @@ -1,16 +1,16 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f303ze INTERFACE) +add_library(mbed-nucleo-f303ze INTERFACE) -target_sources(nucleo-f303ze +target_sources(mbed-nucleo-f303ze INTERFACE PeripheralPins.c ) -target_include_directories(nucleo-f303ze +target_include_directories(mbed-nucleo-f303ze INTERFACE . ) -target_link_libraries(nucleo-f303ze INTERFACE mbed-stm32f303xe) +target_link_libraries(mbed-nucleo-f303ze INTERFACE mbed-stm32f303xe) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_NUCLEO_F401RE/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_NUCLEO_F401RE/CMakeLists.txt index 6051ee2584..dded105a0e 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_NUCLEO_F401RE/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_NUCLEO_F401RE/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f401re INTERFACE) +add_library(mbed-nucleo-f401re INTERFACE) -target_include_directories(nucleo-f401re +target_include_directories(mbed-nucleo-f401re INTERFACE . ) -target_sources(nucleo-f401re +target_sources(mbed-nucleo-f401re INTERFACE PeripheralPins.c system_clock.c ) -target_link_libraries(nucleo-f401re INTERFACE mbed-stm32f401xe) +target_link_libraries(mbed-nucleo-f401re INTERFACE mbed-stm32f401xe) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_NUCLEO_F411RE/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_NUCLEO_F411RE/CMakeLists.txt index bf6bc79a5c..ff3e1b860f 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_NUCLEO_F411RE/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_NUCLEO_F411RE/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f411re INTERFACE) +add_library(mbed-nucleo-f411re INTERFACE) -target_sources(nucleo-f411re +target_sources(mbed-nucleo-f411re INTERFACE PeripheralPins.c system_clock.c ) -target_include_directories(nucleo-f411re +target_include_directories(mbed-nucleo-f411re INTERFACE . ) -target_link_libraries(nucleo-f411re INTERFACE mbed-stm32f411xe) +target_link_libraries(mbed-nucleo-f411re INTERFACE mbed-stm32f411xe) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_NUCLEO_F412ZG/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_NUCLEO_F412ZG/CMakeLists.txt index 51b9c9c90b..cdec79c52a 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_NUCLEO_F412ZG/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_NUCLEO_F412ZG/CMakeLists.txt @@ -1,16 +1,16 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f412zg INTERFACE) +add_library(mbed-nucleo-f412zg INTERFACE) -target_sources(nucleo-f412zg +target_sources(mbed-nucleo-f412zg INTERFACE PeripheralPins.c ) -target_include_directories(nucleo-f412zg +target_include_directories(mbed-nucleo-f412zg INTERFACE . ) -target_link_libraries(nucleo-f412zg INTERFACE mbed-stm32f412xg) +target_link_libraries(mbed-nucleo-f412zg INTERFACE mbed-stm32f412xg) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_NUCLEO_F413ZH/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_NUCLEO_F413ZH/CMakeLists.txt index f1a8dc5f87..beb76842a4 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_NUCLEO_F413ZH/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_NUCLEO_F413ZH/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2021 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f413zh INTERFACE) +add_library(mbed-nucleo-f413zh INTERFACE) -target_sources(nucleo-f413zh +target_sources(mbed-nucleo-f413zh INTERFACE PeripheralPins.c system_clock.c ) -target_include_directories(nucleo-f413zh +target_include_directories(mbed-nucleo-f413zh INTERFACE . ) -target_link_libraries(nucleo-f413zh INTERFACE mbed-stm32f413xh) +target_link_libraries(mbed-nucleo-f413zh INTERFACE mbed-stm32f413xh) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/TARGET_NUCLEO_F429ZI/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/TARGET_NUCLEO_F429ZI/CMakeLists.txt index 6a866f0fec..bd25033af6 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/TARGET_NUCLEO_F429ZI/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/TARGET_NUCLEO_F429ZI/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f429zi INTERFACE) +add_library(mbed-nucleo-f429zi INTERFACE) -target_sources(nucleo-f429zi +target_sources(mbed-nucleo-f429zi INTERFACE PeripheralPins.c system_clock.c ) -target_include_directories(nucleo-f429zi +target_include_directories(mbed-nucleo-f429zi INTERFACE . ) -target_link_libraries(nucleo-f429zi INTERFACE mbed-stm32f429xi) +target_link_libraries(mbed-nucleo-f429zi INTERFACE mbed-stm32f429xi) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_NUCLEO_F439ZI/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_NUCLEO_F439ZI/CMakeLists.txt index 79603207cb..c00d7ec98c 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_NUCLEO_F439ZI/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_NUCLEO_F439ZI/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2021 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f439zi INTERFACE) +add_library(mbed-nucleo-f439zi INTERFACE) -target_sources(nucleo-f439zi +target_sources(mbed-nucleo-f439zi INTERFACE PeripheralPins.c system_clock.c ) -target_include_directories(nucleo-f439zi +target_include_directories(mbed-nucleo-f439zi INTERFACE . ) -target_link_libraries(nucleo-f439zi INTERFACE mbed-stm32f439xi) +target_link_libraries(mbed-nucleo-f439zi INTERFACE mbed-stm32f439xi) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446RE/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446RE/CMakeLists.txt index 35825f972a..ce9329a46f 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446RE/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446RE/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f446re INTERFACE) +add_library(mbed-nucleo-f446re INTERFACE) -target_sources(nucleo-f446re +target_sources(mbed-nucleo-f446re INTERFACE PeripheralPins.c system_clock.c ) -target_include_directories(nucleo-f446re +target_include_directories(mbed-nucleo-f446re INTERFACE . ) -target_link_libraries(nucleo-f446re INTERFACE mbed-stm32f446xe) +target_link_libraries(mbed-nucleo-f446re INTERFACE mbed-stm32f446xe) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446ZE/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446ZE/CMakeLists.txt index 3ed4179020..07f6f5fd0c 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446ZE/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446ZE/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f446ze INTERFACE) +add_library(mbed-nucleo-f446ze INTERFACE) -target_sources(nucleo-f446ze +target_sources(mbed-nucleo-f446ze INTERFACE PeripheralPins.c system_clock.c ) -target_include_directories(nucleo-f446ze +target_include_directories(mbed-nucleo-f446ze INTERFACE . ) -target_link_libraries(nucleo-f446ze INTERFACE mbed-stm32f446xe) +target_link_libraries(mbed-nucleo-f446ze INTERFACE mbed-stm32f446xe) diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/CMakeLists.txt index 002b3ca697..4c5c6b4e64 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f746zg INTERFACE) +add_library(mbed-nucleo-f746zg INTERFACE) -target_sources(nucleo-f746zg +target_sources(mbed-nucleo-f746zg INTERFACE PeripheralPins.c system_clock.c ) -target_include_directories(nucleo-f746zg +target_include_directories(mbed-nucleo-f746zg INTERFACE . ) -target_link_libraries(nucleo-f746zg INTERFACE mbed-stm32f746xg) +target_link_libraries(mbed-nucleo-f746zg INTERFACE mbed-stm32f746xg) diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/CMakeLists.txt index cc90df22a9..ee5aa0bc69 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f756zg INTERFACE) +add_library(mbed-nucleo-f756zg INTERFACE) -target_sources(nucleo-f756zg +target_sources(mbed-nucleo-f756zg INTERFACE PeripheralPins.c system_clock.c ) -target_include_directories(nucleo-f756zg +target_include_directories(mbed-nucleo-f756zg INTERFACE . ) -target_link_libraries(nucleo-f756zg INTERFACE mbed-stm32f756xg) +target_link_libraries(mbed-nucleo-f756zg INTERFACE mbed-stm32f756xg) diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/CMakeLists.txt index 201e3f0587..891118f05b 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/CMakeLists.txt @@ -1,17 +1,17 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(nucleo-f767zi INTERFACE) +add_library(mbed-nucleo-f767zi INTERFACE) -target_sources(nucleo-f767zi +target_sources(mbed-nucleo-f767zi INTERFACE PeripheralPins.c system_clock.c ) -target_include_directories(nucleo-f767zi +target_include_directories(mbed-nucleo-f767zi INTERFACE . ) -target_link_libraries(nucleo-f767zi INTERFACE mbed-stm32f767xi) +target_link_libraries(mbed-nucleo-f767zi INTERFACE mbed-stm32f767xi)