From e8227f5be79bc62382bbd4238680b1d2dc50a9ed Mon Sep 17 00:00:00 2001 From: Robert Walton Date: Wed, 10 Feb 2021 11:40:08 +0000 Subject: [PATCH] Fix PORTENTA_H7_xx targets --- .../TARGET_PORTENTA_H7/CMakeLists.txt | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/CMakeLists.txt index d01e33b9d4..c11c3e4657 100644 --- a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/CMakeLists.txt @@ -1,18 +1,35 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(mbed-portenta-h7 INTERFACE) +add_library(mbed-portenta-h7-m4 INTERFACE) -target_sources(mbed-portenta-h7 +target_sources(mbed-portenta-h7-m4 INTERFACE PeripheralPins.c system_clock_override.c portenta_power.cpp ) -target_include_directories(mbed-portenta-h7 +target_include_directories(mbed-portenta-h7-m4 INTERFACE . ) -target_link_libraries(mbed-portenta-h7 INTERFACE mbed-stm32h747xi) +target_link_libraries(mbed-portenta-h7-m4 INTERFACE mbed-stm32h747xi-cm4) + + +add_library(mbed-portenta-h7-m7 INTERFACE) + +target_sources(mbed-portenta-h7-m7 + INTERFACE + PeripheralPins.c + system_clock_override.c + portenta_power.cpp +) + +target_include_directories(mbed-portenta-h7-m7 + INTERFACE + . +) + +target_link_libraries(mbed-portenta-h7-m7 INTERFACE mbed-stm32h747xi-cm7)