aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordragon788 <dragon788@users.noreply.github.com>2016-01-12 21:41:43 -0600
committerdragon788 <dragon788@users.noreply.github.com>2016-01-12 21:41:43 -0600
commit71ee3eb2e7fdddbfac4443c5f8522a2f620f86e2 (patch)
tree0c7b8046171ce66cf1b475bcd6c4a63e66dffeaa
parentee424f86081c538fc74c3e9b50c7b1eb595b6e58 (diff)
downloadqmk_firmware-71ee3eb2e7fdddbfac4443c5f8522a2f620f86e2.tar.gz
qmk_firmware-71ee3eb2e7fdddbfac4443c5f8522a2f620f86e2.zip
All dfu dependencies in place, multi-line syntax to make it easy to add/read
-rw-r--r--avr_setup.sh41
1 files changed, 37 insertions, 4 deletions
diff --git a/avr_setup.sh b/avr_setup.sh
index cd7412d74..15f3118c0 100644
--- a/avr_setup.sh
+++ b/avr_setup.sh
@@ -11,21 +11,54 @@ if [[ -n "$(type -P pacman )" ]]; then
11 # Always run the pacman mirror update script if possible when vagrant comes up 11 # Always run the pacman mirror update script if possible when vagrant comes up
12 # This will ensure that users never get stalled on a horribly slow mirror 12 # This will ensure that users never get stalled on a horribly slow mirror
13 pacman -Syyu --needed --noconfirm 13 pacman -Syyu --needed --noconfirm
14 pacman -S --needed --noconfirm base-devel avr-gcc avr-binutils avr-libc dfu-util 14 pacman -S --needed --noconfirm \
15 base-devel \
16 avr-gcc \
17 avr-binutils \
18 avr-libc \
19 dfu-util
15 20
16elif [[ -n "$(type -P apt-get)" ]]; then 21elif [[ -n "$(type -P apt-get)" ]]; then
17 # Debian and derivatives 22 # Debian and derivatives
18 apt-get update -y && apt-get upgrade -y 23 apt-get update -y && apt-get upgrade -y
19 apt-get install -y build-essential gcc unzip wget zip gcc-avr binutils-avr avr-libc 24 apt-get install -y \
25 build-essential \
26 gcc \
27 unzip \
28 wget \
29 zip \
30 gcc-avr \
31 binutils-avr \
32 avr-libc \
33 dfu-util
20 34
21elif [[ -n "$(type -P yum)" ]]; then 35elif [[ -n "$(type -P yum)" ]]; then
22 # Fedora, CentOS or RHEL and derivatives 36 # Fedora, CentOS or RHEL and derivatives
23 yum -y makecache && yum -y update 37 yum -y makecache && yum -y update
24 yum -y install gcc glibc-headers kernel-devel kernel-headers make perl git wget 38 yum -y install \
39 gcc \
40 glibc-headers \
41 kernel-devel \
42 kernel-headers \
43 make \
44 perl \
45 git \
46 wget \
47 avr-binutils \
48 avr-gcc \
49 avr-libc \
50 dfu-util
25 51
26elif [[ -n "$(type -P zypper)" ]]; then 52elif [[ -n "$(type -P zypper)" ]]; then
27 # openSUSE 53 # openSUSE
28 zypper refresh --non-interactive && zypper update --non-interactive 54 zypper refresh --non-interactive && zypper update --non-interactive
29 zypper --non-interactive install git make gcc kernel-devel patch wget 55 zypper --non-interactive install \
56 git \
57 make \
58 gcc \
59 kernel-devel \
60 patch \
61 wget \
62 dfu-util
30 63
31fi 64fi