Skip to content

Build environment setup

Attila Magyar edited this page Dec 27, 2016 · 10 revisions

To build punyforth you'll need to build the esp-open-sdk first.

For the most up to date build instructions check the project page.

$ mkdir ~/esp
$ cd ~/esp
$ git clone https://github.com/pfalcon/esp-open-sdk.git
$ cd esp-open-sdk

Install the necessary libraries before building the sdk.

$ sudo sudo apt-get install make unrar-free autoconf automake libtool gcc g++ gperf \
    flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial \
    sed git unzip bash help2man wget bzip2
$ sudo apt-get install libtool-bin

Make the SDK and add the toolchain bin directory to the path.

$ make toolchain esptool libhal STANDALONE=n
$ export PATH=$PATH:~/esp/esp-open-sdk/xtensa-lx106-elf/bin

Clone esp-open-rtos then copy punyforth to its example directory.

$ cd ..
$ git clone --recursive https://github.com/Superhouse/esp-open-rtos.git
$ cd esp-open-rtos/examples
$ git clone https://github.com/zeroflag/punyforth.git
$ cd punyforth/arch/esp8266/rtos/user

Now you're ready to build punyforth.

$ make

The punyforth.bin should be under the ./firmware directory after a successful build.