sudo apt-get install make unrar autoconf automake libtool libtool-bin gcc g++ gperf flex bison texinfo gawk ncurses-dev libexpat-dev python sed python-serial srecord bc
(Or get precompiled esp-open-sdk)
git clone https://github.com/pfalcon/esp-open-sdk.git
cd esp-open-sdk
make STANDALONE=y # It will take a while...
export ESP_HOME="/opt/esp-open-sdk";
./setup.sh
You might want to configure your project before building. Edit Makefile-user.mk
make
make flash
Add OTA (from rboot sample)
Add MQTT (from MQTT sample)