I've been thinking about a solution for making ChibiOS available simply/cleanly within PlatformIO (or generally without Makefiles). This is aimed at covering a (IMHO) major case when:
- - One uses PlatformIO
- Wants RT+HAL
I did an experiment where I run make -n, parse the output and package up relevant sources. Can be seen here https://github.com/dzarda/ChibiPIO
Example package:
At this point I simply zip up relevant files into src/ and include/ directories. This package is then downloaded automatically by PIO according to the platformio.ini project manifest.
Roadmap:
- 1. Add makefiles for all STM32 families (or employ existing Makefiles)
2. Build and publish packages automatically upon Chibi releases
3. Make it into a "framework", thus handling the linker scripts etc. automatically
Few things I'm not sure about still:
- What about the USE_FPU/USE_FPU_OPT options? Would have to be handled in framework .py code
Any comments and ideas are wanted.
Thank you!