Last active
August 15, 2019 00:21
-
-
Save fredericmorin/7e7a1934cd6805f4b75522caf49066da to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
mkdir -p ~/opensky-dev/ | |
cd ~/opensky-dev/ | |
# setup environment | |
mkdir bin | |
echo "export PATH=\$PATH:`pwd`/bin" >> ~/.bash_profile | |
export PATH=$PATH:`pwd`/bin | |
# intall cc-tools | |
brew install autoconf automake libusb boost pkgconfig libtool | |
git clone https://github.com/dashesy/cc-tool.git | |
cd cc-tool | |
./bootstrap | |
./configure | |
make | |
cp cc-tool ../bin/ | |
# install compile deps | |
brew install sdcc srecord | |
# clone project | |
git clone git@github.com:Smeat/OpenSky.git | |
cd OpenSky/ | |
git checkout dev | |
touch .i_know_what_i_am_doing | |
# build it | |
make git_submodule_init | |
make TARGET=XMP clean board | |
# flash it | |
make TARGET=XMP flash | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment