Skip to content

Commit f4a3409

Browse files
committed
fix(platform): core reference broken
due to {runtime.platform.path} usage when other platform reference the core. - {runtime.platform.path}: The absolute path of the board platform folder (i.e. the folder containing boards.txt) - {build.core.path}: The path to the selected board's core folder (inside the core platform, for example hardware/STMicroelectronics/stm32/core/arduino) Ref: https://arduino.github.io/arduino-cli/1.0/platform-specification/#referencing-another-core-variant-or-tool Fixes #2445 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent bd7f61a commit f4a3409

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

platform.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ hal_dir={build.system.path}/Drivers/{build.series}_HAL_Driver
2828
cmsis_dir={runtime.tools.CMSIS-5.9.0.path}/CMSIS
2929
cmsis_dev_dir={build.system.path}/Drivers/CMSIS/Device/ST/{build.series}
3030
usbd_core_dir={build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core
31-
SrcWrapper_include_dir={runtime.platform.path}/libraries/SrcWrapper/inc
32-
VirtIO_include_dir={runtime.platform.path}/libraries/VirtIO/inc
33-
USBDevice_include_dir={runtime.platform.path}/libraries/USBDevice/inc
31+
builtin_library_dir={build.core.path}/../../libraries
32+
SrcWrapper_include_dir={builtin_library_dir}/SrcWrapper/inc
33+
VirtIO_include_dir={builtin_library_dir}/VirtIO/inc
34+
USBDevice_include_dir={builtin_library_dir}/USBDevice/inc
3435

3536

3637
# STM compile variables

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy