aboutsummaryrefslogtreecommitdiffstats
path: root/util/linux_install.sh
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2019-11-28 15:29:11 +0000
committerGitHub <noreply@github.com>2019-11-28 15:29:11 +0000
commit235da6973d34c3cffc4bd8f8cd0b9c8537d6b811 (patch)
tree5cd17a023dcfe810eff3492609cfcd95180b2e1f /util/linux_install.sh
parent5c41fa606202f4750a20083bc2b7ad04d8ff8ae2 (diff)
downloadfirmware-235da6973d34c3cffc4bd8f8cd0b9c8537d6b811.tar.gz
firmware-235da6973d34c3cffc4bd8f8cd0b9c8537d6b811.tar.bz2
firmware-235da6973d34c3cffc4bd8f8cd0b9c8537d6b811.zip
Install bootloadHid as part of qmk_install (#7463)
* Install bootloadHid on macos * Install bootloadHid on windows * Highlight bootloadHID is now installed in docs * Update udev rules for bootloadHID * Install bootloadHid on some distros * fix caterina udev filename
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
util_dir=$(dirname "$0")
+# For those distros that do not package bootloadHID
+install_bootloadhid() {
+ wget https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.tar.gz -O - | tar -xz -C /tmp
+ cd /tmp/bootloadHID.2012-12-08/commandline/
+ make
+ if [ $? == 0 ]; then
+ sudo cp bootloadHID /usr/local/bin
+ fi
+ cd -
+}
+
if grep ID /etc/os-release | grep -qE "fedora"; then
sudo dnf install \
arm-none-eabi-binutils-cs \
@@ -28,6 +39,7 @@ if grep ID /etc/os-release | grep -qE "fedora"; then
glibc-headers \
kernel-devel \
kernel-headers \
+ libusb-devel \
make \
perl \
python3 \
@@ -54,6 +66,7 @@ elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then
gcc-avr \
git \
libnewlib-arm-none-eabi \
+ libusb-dev \
python3 \
unzip \
wget \
@@ -70,12 +83,14 @@ elif grep ID /etc/os-release | grep -q 'arch\|manjaro'; then
avr-libc \
avr-gcc \
base-devel \
+ bootloadhid \
clang \
dfu-programmer \
dfu-util \
diffutils \
gcc \
git \
+ libusb-compat \
python \
python-pip \
unzip \
@@ -138,6 +153,7 @@ elif grep ID /etc/os-release | grep -qE "opensuse|tumbleweed"; then
dfu-tool \
dfu-programmer \
gcc \
+ libusb-devel \
python3 \
unzip \
wget \
@@ -177,6 +193,7 @@ elif grep ID /etc/os-release | grep -q solus; then
avrdude \
dfu-util \
dfu-programmer \
+ libusb-devel \
python3 \
git \
wget \
@@ -214,4 +231,5 @@ else
fi
# Global install tasks
+install_bootloadhid
pip3 install --user -r ${util_dir}/../requirements.txt