Skip to content

Instantly share code, notes, and snippets.

@fredericmorin
Last active August 15, 2019 00:21
Show Gist options
  • Save fredericmorin/7e7a1934cd6805f4b75522caf49066da to your computer and use it in GitHub Desktop.
Save fredericmorin/7e7a1934cd6805f4b75522caf49066da to your computer and use it in GitHub Desktop.
#!/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