aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-08-14 08:26:14 +1000
committerGitHub <noreply@github.com>2020-08-13 23:26:14 +0100
commit517f6d2c22adb0132e74396c08e21f35ae64118b (patch)
tree7f30908723acdb61afcb550a0542298eb3c44ad3 /util
parent156ed69b46b36fa8baaa72721085d632d34ea5be (diff)
downloadqmk_firmware-517f6d2c22adb0132e74396c08e21f35ae64118b.tar.gz
qmk_firmware-517f6d2c22adb0132e74396c08e21f35ae64118b.zip
MSYS2: install packages for dfu-programmer, dfu-util, teensy-loader-cli (#10007)
Diffstat (limited to 'util')
-rwxr-xr-xutil/activate_msys2.sh2
-rwxr-xr-xutil/activate_wsl.sh4
-rwxr-xr-xutil/msys2_install.sh4
-rwxr-xr-xutil/win_shared_install.sh13
4 files changed, 3 insertions, 20 deletions
diff --git a/util/activate_msys2.sh b/util/activate_msys2.sh
index f6e19f99d..b003c1a78 100755
--- a/util/activate_msys2.sh
+++ b/util/activate_msys2.sh
@@ -3,8 +3,6 @@
3function export_variables { 3function export_variables {
4 local util_dir=~/qmk_utils 4 local util_dir=~/qmk_utils
5 export PATH=$PATH:$util_dir 5 export PATH=$PATH:$util_dir
6 export PATH=$PATH:$util_dir/dfu-programmer
7 export PATH=$PATH:$util_dir/dfu-util-0.9-win64
8 export PATH=$PATH:$util_dir/avr8-gnu-toolchain/bin 6 export PATH=$PATH:$util_dir/avr8-gnu-toolchain/bin
9 export PATH=$PATH:$util_dir/gcc-arm-none-eabi/bin 7 export PATH=$PATH:$util_dir/gcc-arm-none-eabi/bin
10} 8}
diff --git a/util/activate_wsl.sh b/util/activate_wsl.sh
index 7f6f54731..45cd945ef 100755
--- a/util/activate_wsl.sh
+++ b/util/activate_wsl.sh
@@ -3,10 +3,6 @@
3function export_variables { 3function export_variables {
4 local util_dir=~/qmk_utils 4 local util_dir=~/qmk_utils
5 local download_dir=$util_dir/wsl_downloaded 5 local download_dir=$util_dir/wsl_downloaded
6
7 export DFU_PROGRAMMER=$download_dir/dfu-programmer/dfu-programmer.exe
8 export DFU_UTIL=$download_dir/dfu-util-0.9-win64/dfu-util.exe
9 export TEENSY_LOADER_CLI=$download_dir/teensy_loader_cli.exe
10} 6}
11 7
12export_variables 8export_variables
diff --git a/util/msys2_install.sh b/util/msys2_install.sh
index 1b50bba70..1351aa5d7 100755
--- a/util/msys2_install.sh
+++ b/util/msys2_install.sh
@@ -20,7 +20,7 @@ function install_avr {
20 rm avr8-gnu-toolchain/bin/make.exe 20 rm avr8-gnu-toolchain/bin/make.exe
21 rm avr-gcc-8.3.0-x86-mingw.zip 21 rm avr-gcc-8.3.0-x86-mingw.zip
22 22
23 pacman --needed --disable-download-timeout -S mingw-w64-x86_64-avrdude mingw-w64-x86_64-bootloadhid 23 pacman --needed --noconfirm --disable-download-timeout -S mingw-w64-x86_64-avrdude mingw-w64-x86_64-bootloadhid mingw-w64-x86_64-dfu-programmer mingw-w64-x86_64-teensy-loader-cli
24} 24}
25 25
26function install_arm { 26function install_arm {
@@ -29,6 +29,8 @@ function install_arm {
29 echo "Extracting ARM toolchain..." 29 echo "Extracting ARM toolchain..."
30 unzip -q -d gcc-arm-none-eabi gcc-arm-none-eabi-8-2019-q3-update-win32.zip 30 unzip -q -d gcc-arm-none-eabi gcc-arm-none-eabi-8-2019-q3-update-win32.zip
31 rm gcc-arm-none-eabi-8-2019-q3-update-win32.zip 31 rm gcc-arm-none-eabi-8-2019-q3-update-win32.zip
32
33 pacman --needed --noconfirm --disable-download-timeout -S mingw-w64-x86_64-dfu-util
32} 34}
33 35
34pushd "$download_dir" 36pushd "$download_dir"
diff --git a/util/win_shared_install.sh b/util/win_shared_install.sh
index 17282bc94..f45ca3517 100755
--- a/util/win_shared_install.sh
+++ b/util/win_shared_install.sh
@@ -6,18 +6,6 @@ function install_utils {
6 6
7 pushd "$download_dir" 7 pushd "$download_dir"
8 8
9 echo "Installing dfu-programmer"
10 wget 'http://downloads.sourceforge.net/project/dfu-programmer/dfu-programmer/0.7.2/dfu-programmer-win-0.7.2.zip'
11 unzip -d dfu-programmer dfu-programmer-win-0.7.2.zip
12
13 echo "Installing dfu-util"
14 wget 'http://dfu-util.sourceforge.net/releases/dfu-util-0.9-win64.zip'
15 unzip dfu-util-0.9-win64.zip
16
17 echo "Installing teensy_loader_cli"
18 wget 'https://www.pjrc.com/teensy/teensy_loader_cli_windows.zip'
19 unzip teensy_loader_cli_windows.zip
20
21 echo "Downloading the QMK driver installer" 9 echo "Downloading the QMK driver installer"
22 wget -qO- https://api.github.com/repos/qmk/qmk_driver_installer/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4 | wget -i - 10 wget -qO- https://api.github.com/repos/qmk/qmk_driver_installer/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4 | wget -i -
23 11
@@ -73,4 +61,3 @@ done
73 61
74 62
75popd > /dev/null 63popd > /dev/null
76