aboutsummaryrefslogtreecommitdiff
path: root/util/linux_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/linux_install.sh')
-rwxr-xr-xutil/linux_install.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/util/linux_install.sh b/util/linux_install.sh
index c54a80623..100a14a51 100755
--- a/util/linux_install.sh
+++ b/util/linux_install.sh
@@ -10,6 +10,17 @@ SOLUS_INFO="Your tools are now installed. To start using them, open new terminal
10 10
11util_dir=$(dirname "$0") 11util_dir=$(dirname "$0")
12 12
13# For those distros that do not package bootloadHID
14install_bootloadhid() {
15 wget https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.tar.gz -O - | tar -xz -C /tmp
16 cd /tmp/bootloadHID.2012-12-08/commandline/
17 make
18 if [ $? == 0 ]; then
19 sudo cp bootloadHID /usr/local/bin
20 fi
21 cd -
22}
23
13if grep ID /etc/os-release | grep -qE "fedora"; then 24if grep ID /etc/os-release | grep -qE "fedora"; then
14 sudo dnf install \ 25 sudo dnf install \
15 arm-none-eabi-binutils-cs \ 26 arm-none-eabi-binutils-cs \
@@ -28,6 +39,7 @@ if grep ID /etc/os-release | grep -qE "fedora"; then
28 glibc-headers \ 39 glibc-headers \
29 kernel-devel \ 40 kernel-devel \
30 kernel-headers \ 41 kernel-headers \
42 libusb-devel \
31 make \ 43 make \
32 perl \ 44 perl \
33 python3 \ 45 python3 \
@@ -54,6 +66,7 @@ elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then
54 gcc-avr \ 66 gcc-avr \
55 git \ 67 git \
56 libnewlib-arm-none-eabi \ 68 libnewlib-arm-none-eabi \
69 libusb-dev \
57 python3 \ 70 python3 \
58 unzip \ 71 unzip \
59 wget \ 72 wget \
@@ -70,12 +83,14 @@ elif grep ID /etc/os-release | grep -q 'arch\|manjaro'; then
70 avr-libc \ 83 avr-libc \
71 avr-gcc \ 84 avr-gcc \
72 base-devel \ 85 base-devel \
86 bootloadhid \
73 clang \ 87 clang \
74 dfu-programmer \ 88 dfu-programmer \
75 dfu-util \ 89 dfu-util \
76 diffutils \ 90 diffutils \
77 gcc \ 91 gcc \
78 git \ 92 git \
93 libusb-compat \
79 python \ 94 python \
80 python-pip \ 95 python-pip \
81 unzip \ 96 unzip \
@@ -138,6 +153,7 @@ elif grep ID /etc/os-release | grep -qE "opensuse|tumbleweed"; then
138 dfu-tool \ 153 dfu-tool \
139 dfu-programmer \ 154 dfu-programmer \
140 gcc \ 155 gcc \
156 libusb-devel \
141 python3 \ 157 python3 \
142 unzip \ 158 unzip \
143 wget \ 159 wget \
@@ -177,6 +193,7 @@ elif grep ID /etc/os-release | grep -q solus; then
177 avrdude \ 193 avrdude \
178 dfu-util \ 194 dfu-util \
179 dfu-programmer \ 195 dfu-programmer \
196 libusb-devel \
180 python3 \ 197 python3 \
181 git \ 198 git \
182 wget \ 199 wget \
@@ -214,4 +231,5 @@ else
214fi 231fi
215 232
216# Global install tasks 233# Global install tasks
234install_bootloadhid
217pip3 install --user -r ${util_dir}/../requirements.txt 235pip3 install --user -r ${util_dir}/../requirements.txt