Skip to content

Build environment setup

Attila Magyar edited this page Oct 31, 2016 · 10 revisions

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

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

Install the necessary libraries to build 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
$ cd esp-open-sdk
$ make toolchain esptool libhal STANDALONE=n
$ export PATH=$PATH:/esp/esp-open-sdk/xtensa-lx106-elf/bin

Now you can build esp-open-rtos

$ cd ..
$ git clone --recursive https://github.com/Superhouse/esp-open-rtos.git
$ cd esp-open-rtos/examples

Now you can build punyforth

$ git clone https://github.com/zeroflag/punyforth.git
$ cd punyforth/arch/esp8266/rtos/user
$ make