tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

Adding support for new boards without compiling TinyGo from scratch

Open oxplot opened this issue 2 years ago • 3 comments

As I understand it, the only way to add support for new boards is to add certain board specific files and compile TinyGo. Is there plan to remove this requirement? Having to compile the entire thing is not in itself a big deal, but having to maintain a fork of the upstream is the time consuming part.

EDIT: In addition, any user of the board will have to use the fork and many would rather not.

oxplot avatar Jun 29 '23 03:06 oxplot

Never mind — I missed that -target can take JSON spec file.

oxplot avatar Jul 02 '23 03:07 oxplot

Spoke too soon. I can specify the JSON spec file but the extra files (in case of RP2040, the second stage bootloader) is only loaded from Tiny Go root path.

oxplot avatar Jul 04 '23 06:07 oxplot

Yeah this is something we've wanted to add for a long time, but there is no single obvious way this can be implemented.

aykevl avatar Sep 29 '25 13:09 aykevl