atanisoft / ESP32CommandStation

An ESP32 based DCC Command Station with integrated OpenLCB (LCC) --- NOTE: this project is not under active development.
https://atanisoft.github.io/ESP32CommandStation/
GNU General Public License v3.0
90 stars 34 forks source link

Added a Docker-based buildchain. #104

Closed sarusso closed 2 years ago

sarusso commented 2 years ago

This is a PR for a Docker-based buildchain.

If invoked with no argument using the build.sh script in the buildchain folder, it will build the firmware with the default configuration values (and place it in the artifacts folder. If instead called with the menuconfig argument (build.sh menuconfig) it will then pop up the configuration menu before building.

It could be used to provide a simplified building procedure for beginners, or to include it in a CI tool (e.g. GitHub Actions) in order to automatically build a default version of the firmware for each push.

A flash. sh script is also provided, which requires esptool to be installed on the user computer.

Windows scripts could be added as well in future to make it cross-platform.

atanisoft commented 2 years ago

@sarusso I've merged this to master and will be checking what ESP-IDF v5 broke for the TWAI driver.