-
Notifications
You must be signed in to change notification settings - Fork 119
Description
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.
platform-atmelsam/builder/frameworks/arduino/arduino-samd.py
Lines 180 to 191 in 4415ce4
if "build.variant" in board: | |
variants_dir = os.path.join( | |
"$PROJECT_DIR", board.get("build.variants_dir")) if board.get( | |
"build.variants_dir", "") else os.path.join(FRAMEWORK_DIR, "variants") | |
env.Append( | |
CPPPATH=[os.path.join(variants_dir, board.get("build.variant"))] | |
) | |
libs.append(env.BuildLibrary( | |
os.path.join("$BUILD_DIR", "FrameworkArduinoVariant"), | |
os.path.join(variants_dir, board.get("build.variant")) | |
)) |
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!