diff options
author | dragon788 <dragon788@users.noreply.github.com> | 2016-01-03 22:21:30 -0600 |
---|---|---|
committer | dragon788 <dragon788@users.noreply.github.com> | 2016-01-03 22:21:30 -0600 |
commit | ab7d6dca4106bae6876b46f06fe157478a62ecda (patch) | |
tree | 730d0ac1043d83aa4470af328914ad389dce295d /avr_setup.sh | |
parent | a07d2df99c74623ec3e5299a17bfaa621dfd7e2f (diff) | |
download | qmk_firmware-ab7d6dca4106bae6876b46f06fe157478a62ecda.tar.gz qmk_firmware-ab7d6dca4106bae6876b46f06fe157478a62ecda.zip |
Adding Vagrantfile for easier compile environment setup
Diffstat (limited to 'avr_setup.sh')
-rw-r--r-- | avr_setup.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/avr_setup.sh b/avr_setup.sh new file mode 100644 index 0000000000..ff4153ba37 --- /dev/null +++ b/avr_setup.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# This script will attempt to setup the Linux dependencies for compiling QMK/TMK + +# This could probably go much lower, but since we are including an Arch vagrant, +# making it the first match makes sense + +if [[ -n "$(type -P pacman )" ]]; then + # Arch linux and derivatives like Apricity + pacman -S --needed --noconfirm base-devel avr-gcc avr-binutils avr-libc dfu-utils + +elif [[ -n "$(type -P apt-get)" ]]; then + # Debian and derivatives + apt-get install -y build-essential gcc unzip wget zip gcc-avr binutils-avr avr-libc + +elif [[ -n "$(type -P yum)" ]]; then + # Fedora, CentOS or RHEL and derivatives + yum -y install gcc glibc-headers kernel-devel kernel-headers make perl git wget + +elif [[ -n "$(type -P zypper)" ]]; then + # openSUSE + zypper --non-interactive install git make gcc kernel-devel patch wget + +fi |