Wondering if there is a simple way to create a new variant of a board without necessarily needing to either copy the whole core or building it into the same hardware install.
Two cases, I am playing with:
Uno R4: Wifi using main processor for USB.
Currently I have a version working in the main install, when you install the github version under /hardware/arduino-dev...
This version, has several boards installed, including the R4 as well as the portenta C33.
But the actual install, has a script file (extras\package.sh) which makes multiple copies of the stuff and packages one for UNO R4 and another for the Portenta.
Now for my version: where maybe I want Kurts UNOR4->WIFI USB
I have it doing like above, replicating the whole thing...
Is there a way to do this which simply has it refer to the stuff installed for UNO R4 and only need to install the variant stuff?
Teensy boards:
Suppose I add optional minimal support in Teensy install for variant (variant.h and the like).
I have a version working where it detects this and for example can build with different pin mappings...
It was working with boards.local.txt, which defined the variant and the like.
Is there a clean way again to move the boards.local.txt file to new directory/install
And for example have it in boards like like: Kurts Teensy->NewT4x
And have it build using the currently installed Teensy core?
like: /packages\teensy\avr\cores\teensy4 ?
With some older AVR boards I used to see things like:
Adafruit AVR boards have things like:
flora8.build.core=arduino:arduino
Is there something similar I can do for the Teensy core?
Maybe need to do similar for the tools?
I know there is probably information up in the documetion
Platform specification - Arduino CLI
Which I am still trying to deciper...
Suggestions?