I’m currently working on adding support for the ftDuino Board to platformio (it’s based on a ATmega32u4, AFAIK). When I install the board in the Arduino IDE, I need to add a custom URL to “Additional Board Manager URLs”.
It’s a package_xxx_index.json file. The format of this is specified by Arduino (here).
At packages/platforms there are multiple versions of the package and packages/platforms/[latest version]/url points to an ZIP file that has the following structure:
ftduino-0.0.xx.zip ├── avrdude.conf ├── boards.txt ├── bootloaders │ └── caterina │ └── Caterina.hex ├── libraries │ └── Ftduino [Arduino library structure] │ [more libraries] ├── platform.txt └── variants └── ftduino └── pins_arduino.h
How would I add support for this board? I know I could just put a custom “variant” in HOME_DIR/packages/framework-arduinoavr, but I want to package everything properly so I can redistribute the package properly.
Does Platformio support adding such a package_xxx_index.json file directly?
If not, what do I need to do to create a custom “platform” so that anyone could install the board easily?
Is there even a chance to get a pull request accepted at platformio-pkg-framework-arduinoavr to add the board? It’ll be the easiest solution I guess.
Thanks in advance