Created
July 7, 2013 11:07
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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