summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-05-28 20:11:56 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-05-28 21:30:55 +0300
commitb8899b48b45c0209e44cc35d9185aa670e769d40 (patch)
treeb57b8071e97e3c410fb565505e120705fb8717a0 /util
parent9c582fc797c3fbddd753791aab279dd2ad27b9c4 (diff)
Make symlink to utils and export programmer variables
Diffstat (limited to 'util')
-rw-r--r--util/activate_wsl.sh12
-rw-r--r--util/wsl_install.sh7
2 files changed, 18 insertions, 1 deletions
diff --git a/util/activate_wsl.sh b/util/activate_wsl.sh
new file mode 100644
index 0000000000..a6ed9b712d
--- /dev/null
+++ b/util/activate_wsl.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+util_dir=~/qmk_utils
+download_dir=$util_dir/wsl_downloaded
+
+export DFU_PROGRAMMER=$download_dir/dfu-programmer/dfu-programmer.exe
+export DFU_UTIL=$download_dir/dfu-util-0.9-win64/dfu-util.exe
+export TEENSY_LOADER_CLI=$download_dir/teensy_loader_cli.exe
+export BATCHISP=$download_dir/Flip/bin/batchisp.exe
+
+
+
diff --git a/util/wsl_install.sh b/util/wsl_install.sh
index 0964929e7c..314f520b95 100644
--- a/util/wsl_install.sh
+++ b/util/wsl_install.sh
@@ -35,7 +35,6 @@ function install_utils {
function install_drivers {
pushd $download_dir
- cp ../drivers.txt .
cmd.exe /C qmk_driver_installer.exe $1 $2 ../drivers.txt
popd > /dev/null
}
@@ -101,5 +100,11 @@ while true; do
esac
done
+echo
+echo "Creating a softlink to the utils directory as ~/qmk_utils."
+echo "This is needed so that the the make system can find all utils it need."
+read -p "Press any key to continue (ctrl-c to abort)"
+ln -sf "$dir" ~/qmk_utils
+
popd > /dev/null