]> git.donarmstrong.com Git - qmk_firmware.git/blob - avr_setup.sh
Adding Vagrantfile for easier compile environment setup
[qmk_firmware.git] / avr_setup.sh
1 #!/usr/bin/env bash
2 # This script will attempt to setup the Linux dependencies for compiling QMK/TMK
3
4 # This could probably go much lower, but since we are including an Arch vagrant,
5 # making it the first match makes sense
6
7 if [[ -n "$(type -P pacman )" ]]; then
8   # Arch linux and derivatives like Apricity
9   pacman -S --needed --noconfirm base-devel avr-gcc avr-binutils avr-libc dfu-utils
10
11 elif [[ -n "$(type -P apt-get)" ]]; then
12   # Debian and derivatives
13   apt-get install -y build-essential gcc unzip wget zip gcc-avr binutils-avr avr-libc
14   
15 elif [[ -n "$(type -P yum)" ]]; then
16   # Fedora, CentOS or RHEL and derivatives
17   yum -y install gcc glibc-headers kernel-devel kernel-headers make perl git wget
18
19 elif [[ -n "$(type -P zypper)" ]]; then
20   # openSUSE
21   zypper --non-interactive install git make gcc kernel-devel patch wget
22
23 fi