Skip to content

Instantly share code, notes, and snippets.

@cpq
Last active February 15, 2018 19:49
Show Gist options
  • Save cpq/6cd91f285b56a7877b5f09d5dbd5a8f2 to your computer and use it in GitHub Desktop.
Save cpq/6cd91f285b56a7877b5f09d5dbd5a8f2 to your computer and use it in GitHub Desktop.
#!/bin/sh
DESTDIR=~/esp
IDF_PATH=$DESTDIR/esp-idf
sudo easy_install pip
sudo pip install pyserial
mkdir -p $DESTDIR
if ! test -d $DESTDIR/xtensa-esp32-elf ; then
curl -s https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz | \
tar -xzf - -C $DESTDIR
echo "export PATH=\$PATH:$DESTDIR/xtensa-esp32-elf/bin" >> ~/.profile
fi
if ! test -d $IDF_PATH; then
git clone --recursive https://github.com/espressif/esp-idf.git $IDF_PATH
echo "export IDF_PATH=$IDF_PATH" >> ~/.profile
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment