platformio / platform-atmelsam

Atmel SAM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelsam
Apache License 2.0
82 stars 109 forks source link

Add support for variants without custom cores (ie, EnviroDIY Stonefly using Adafruit core) #232

Open SRGDamia1 opened 3 months ago

SRGDamia1 commented 3 months ago

I have the JSON and variant files working correctly on my local computer, but I want to make them available in the registry for all users. This board does not need a separate core; it uses the Adafruit core. It does need a variants file, though. I can submit a PR for the board .json file, but the build system only accepts variant files stored locally in the project directory or as part of a complete core hosted elsewhere.

https://github.com/platformio/platform-atmelsam/blob/4415ce442d20067c749324d3953c460d881cb3f7/builder/frameworks/arduino/arduino-samd.py#L180-L191

I want PlatformIO to automatically find and download the variants file for the user without me maintaining a copy of the Adafruit core.

If I'm not understanding and there's already a way to do this, please let me know!

valeros commented 1 month ago

Hi @SRGDamia1

Unfortunately, this repository is not the right place for custom boards that depend on third-party variant files outside of the supported Arduino cores. Although, it's possible to achieve what you described. I see here two options: