Skip to content

Instantly share code, notes, and snippets.

@carsonmcdonald
Created July 7, 2013 11:07
Show Gist options
  • Save carsonmcdonald/5943132 to your computer and use it in GitHub Desktop.
Save carsonmcdonald/5943132 to your computer and use it in GitHub Desktop.
Set up the pebble build environment on an EC2 node using Amazon's Linux distro.
sudo yum groupinstall development
sudo yum install libmpc dpkg-devel python-devel python-pip git curl flex bison texinfo autoconf gmp-devel mpfr-devel elfutils-libelf-devel ncurses-devel libmpc-devel python27 python27-devel python-virtualenv freetype-devel zlib-devel libjpeg-devel libtiff-devel httpd
sudo chkconfig httpd on
sudo service httpd start
sudo chown $USER.$USER /var/www/html/
git clone https://github.com/pebble/arm-eabi-toolchain.git
PREFIX=$HOME/arm-cs-tools PROCS=16 make install-cross
echo "export PATH=$HOME/arm-cs-tools/bin:\$PATH" >> ~/.bash_profile
export PATH=$HOME/arm-cs-tools/bin:$PATH
arm-none-eabi-gcc --version | grep "ARM EABI Toolchain JBS"
if [ $? -ne 0 ]
then
arm-none-eabi-gcc --version
echo ""
echo "Does not match the exptected toolchain"
exit
fi
echo "int main(void) {return 0;}" | arm-none-eabi-gcc -x c - -o /tmp/test.out
tar xvzf PebbleSDK-1.12.tar.gz
cd PebbleSDK-1.12/Pebble/sdk
virtualenv --python=/usr/bin/python27 $HOME/pyenv
. $HOME/pyenv/bin/activate
pip install -r requirements.txt
./waf configure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment