Skip to content

Commit b599f40

Browse files
Add initial Portenta support
1 parent 06a07b5 commit b599f40

File tree

32 files changed

+8973
-61
lines changed

32 files changed

+8973
-61
lines changed

Diff for: .github/workflows/build-cores.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- RASPBERRY_PI_PICO
1515
- ARDUINO_NICLA_SENSE_ME
1616
- ARDUINO_GIGA_CM7
17+
- ARDUINO_PORTENTA_H7_M7
1718
cmake_build_type:
1819
- Debug
1920
- Release

Diff for: .idea/.name

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/inspectionProfiles/Project_Default.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/misc.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: CMakeLists.txt

+13-6
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ cmake_policy(VERSION 3.20)
77
# Note: This block must be before the include of app.cmake
88
set(MBED_APP_JSON_PATH mbed_app.json5)
99

10-
include(mbed-os/tools/cmake/app.cmake)
11-
add_subdirectory(mbed-os)
10+
include(mbed-os/tools/cmake/mbed_toolchain_setup.cmake)
11+
12+
project(ArduinoCore-mbed-ce
13+
LANGUAGES C CXX ASM
14+
VERSION 1.1.0) # This is the version of the Mbed CE Arduino core, not of Mbed CE
1215

13-
project(ArduinoCore-mbed-ce VERSION 1.1.0) # This is the version of the Mbed CE Arduino core, not of Mbed CE
16+
include(mbed_project_setup)
17+
18+
add_subdirectory(mbed-os)
1419

1520
# Figure out variant name. This is generally the same as the mbed target, but we need
1621
# to handle a few variations (e.g. the _SWD variants of the mbed targets)
@@ -22,6 +27,8 @@ elseif("ARDUINO_NICLA_SENSE_ME" IN_LIST MBED_TARGET_LABELS)
2227
set(ARDUINO_VARIANT_NAME "ARDUINO_NICLA_SENSE_ME")
2328
elseif("ARDUINO_GIGA" IN_LIST MBED_TARGET_LABELS)
2429
set(ARDUINO_VARIANT_NAME "ARDUINO_GIGA")
30+
elseif("ARDUINO_PORTENTA_H7_M7" IN_LIST MBED_TARGET_LABELS)
31+
set(ARDUINO_VARIANT_NAME "ARDUINO_PORTENTA_H7_M7")
2532
else()
2633
message(FATAL_ERROR "This MBED_TARGET is currently not supported by the arduino core!")
2734
endif()
@@ -106,7 +113,9 @@ endif()
106113

107114
if("COMPONENT_QSPIF=1" IN_LIST MBED_TARGET_DEFINITIONS)
108115
list(APPEND MBED_LIBS_TO_INSTALL
109-
mbed-storage-qspif)
116+
mbed-storage-qspif
117+
# We need to put storage-blockdevice on the link line again because storage-qspif uses its symbols
118+
mbed-storage-blockdevice)
110119
endif()
111120

112121
# We also need to know about any precompiled .a files
@@ -190,5 +199,3 @@ set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION})
190199
set(CPACK_GENERATOR ZIP)
191200

192201
include(CPack)
193-
194-
mbed_finalize_build()

Diff for: bootloaders/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ endif()
55
if("ARDUINO_NICLA_SENSE_ME" IN_LIST MBED_TARGET_LABELS)
66
install(DIRECTORY NICLA_SENSE_ME DESTINATION bootloaders/)
77
endif()
8+
9+
if("ARDUINO_PORTENTA_H7" IN_LIST MBED_TARGET_LABELS)
10+
install(DIRECTORY PORTENTA_H7 DESTINATION bootloaders/)
11+
endif()
6.17 MB
Binary file not shown.

0 commit comments

Comments
 (0)