diff --git a/platform.txt b/platform.txt index 878f9ee8e0..1c3e258b23 100644 --- a/platform.txt +++ b/platform.txt @@ -28,9 +28,10 @@ hal_dir={build.system.path}/Drivers/{build.series}_HAL_Driver cmsis_dir={runtime.tools.CMSIS-5.9.0.path}/CMSIS cmsis_dev_dir={build.system.path}/Drivers/CMSIS/Device/ST/{build.series} usbd_core_dir={build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core -SrcWrapper_include_dir={runtime.platform.path}/libraries/SrcWrapper/inc -VirtIO_include_dir={runtime.platform.path}/libraries/VirtIO/inc -USBDevice_include_dir={runtime.platform.path}/libraries/USBDevice/inc +builtin_library_dir={build.core.path}/../../libraries +SrcWrapper_include_dir={builtin_library_dir}/SrcWrapper/inc +VirtIO_include_dir={builtin_library_dir}/VirtIO/inc +USBDevice_include_dir={builtin_library_dir}/USBDevice/inc # STM compile variables