Skip to content

Commit

Permalink
[Portenta] Add Cmake rules
Browse files Browse the repository at this point in the history
Completes ARMmbed#13915
  • Loading branch information
facchinm committed Dec 3, 2020
1 parent 6363d42 commit 9c8405a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock_override.c
portenta_power.cpp
)

target_include_directories(mbed-core
INTERFACE
.
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32h747xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32H747xI.ld)

set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})

target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)

target_include_directories(mbed-core
INTERFACE
.
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32h747xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32H747xI.ld)

set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})

target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)

target_include_directories(mbed-core
INTERFACE
.
)

0 comments on commit 9c8405a

Please sign in to comment.