esp-open-sdk can be installed almost as described in Linux Compiler Setups.
Some problems have been reported if you build the toolchain in a case-insensitive filesystem. To avoid these issues create a case-sensitive volume:
hdiutil create ~/Desktop/eos.dmg -volname "esp-open-sdk" -size 10g -fs "Case-sensitive HFS+" hdiutil mount ~/Desktop/eos.dmg cd /Volumes/esp-open-sdk
brew install gnu-sed --with-default-names brew tap homebrew/dupes brew install gperf brew install grep brew install autoconf brew install binutils (for gobjcopy) brew install gawk (required overwriting the non-gnu awk in my case) brew install autoconf brew install wget
If you get the error “configure: error: could not find GNU awk”, run
brew link --overwrite gawk
sudo port install gsed gawk binutils gperf grep gettext py-serial wget
git clone https://github.com/pfalcon/esp-open-sdk.git --recursive
Note the –recursive option. This will force git to initialize modules.
These needs to be applied before build.
sed -i.bak '1s/^/gettext=\'$'\n/' crosstool-NG/kconfig/Makefile sed -i.bak -e 's/[[:<:]]sed[[:>:]]/gsed/' Makefile sed -i.bak -e 's/[[:<:]]awk[[:>:]]/\$(AWK)/' lx106-hal/src/Makefile.am sed -i.bak 's/AM_PROG_AS/AM_PROG_AS\'$'\nAM_PROG_AR/' lx106-hal/configure.ac