Description
Describe the bug
When compiling an Arduino sketch for a custom variant defined in the sketchbook's /hardware/ folder, the SrcWrapper library is not found because the path to the SrcWrapper library is specified with the {runtime.platform.path} variable which points to the hardware folder in the sketchbook instead of the hardware folder in the ST package.
To Reproduce
Steps to reproduce the behavior:
- Create a variant based on the STM32 Arduino platform and place it in the sketchbook/hardware/org/stm32/ folder.
- Attempt to compile an empty sketch targeting this custom variant.
Expected behavior
Libraries are found and sketch compiles.
Screenshots
None
Desktop (please complete the following information):
- OS: Windows
- Arduino IDE version: 2.3.2
- STM32 core version: 2.8.0
- Tools menu settings if not the default: N/A
- Upload method: N/A
Board (please complete the following information):
- Name: Custom
- Hardware Revision: Custom
- Extra hardware used if any: N/A
Additional context
Line 32 of platform.txt changed the path of several includes to point to a path including the {runtime.platform.path} variable. This variable does not always point to the ST board package and thus breaks the include path for custom variants specified in the sketchbook folder.