kbhomes / ps2plus

MIT License
3 stars 1 forks source link

[dev] Replace MPLAB X build with different build solution #11

Closed kbhomes closed 2 years ago

kbhomes commented 2 years ago

Doing containerized builds of the firmware/bootloader on Microchip hardware (i.e. the only current platform) requires installing XC8 and MPLAB X, running the prjMakefilesGenerator script, and then running Make. Replacing this with custom Makefiles that invoke XC8 directly would have some benefits:

Downside of this is potentially losing the ability to do on-device debugging.

kbhomes commented 2 years ago

Looking now to make use of SCons, which I first learned about from using PlatformIO to build the initial Arduino prototype of this port. It seems really flexible, but most importantly, it seems actually enjoyable to use as a developer writing a build system.

Goals for this:

kbhomes commented 2 years ago

Closing this since the SCons build seems to be working well. 🥳 I also recently used the MPLAB X project file generated by the build system to successfully debug the PIC18F46K42 firmware in the IDE, so I'm pretty satisfied!