This is inspired by Raffeale from FreeBSD forum. The original link is here.
Yet when following the step of Raffeale’s post, I bumped into some trouble. So, with a little trial and error myself. I’v figured out a way to compile code for Esp8266 with gmake.
System and Board
This is tested on FreeBSD 12.2 release amd64. No problem at all.
The board I’m using is NodeMcuv2
.
Other system or board is not tested.
Steps
I’m dealing with Uno boards and Esp at the same time, so I installed the following packages.
# gives u both ability to compile code for arduino uno series and esp series
sudo pkg install arduino-mk arduino-core uarduno arduino-builder
Next step is to clone the Esp8266
official repo. Y