diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2017-05-28 20:11:56 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2017-05-28 21:30:55 +0300 |
| commit | b8899b48b45c0209e44cc35d9185aa670e769d40 (patch) | |
| tree | b57b8071e97e3c410fb565505e120705fb8717a0 /util | |
| parent | 9c582fc797c3fbddd753791aab279dd2ad27b9c4 (diff) | |
| download | qmk_firmware-b8899b48b45c0209e44cc35d9185aa670e769d40.tar.gz qmk_firmware-b8899b48b45c0209e44cc35d9185aa670e769d40.zip | |
Make symlink to utils and export programmer variables
Diffstat (limited to 'util')
| -rw-r--r-- | util/activate_wsl.sh | 12 | ||||
| -rw-r--r-- | util/wsl_install.sh | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/util/activate_wsl.sh b/util/activate_wsl.sh new file mode 100644 index 000000000..a6ed9b712 --- /dev/null +++ b/util/activate_wsl.sh | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | util_dir=~/qmk_utils | ||
| 4 | download_dir=$util_dir/wsl_downloaded | ||
| 5 | |||
| 6 | export DFU_PROGRAMMER=$download_dir/dfu-programmer/dfu-programmer.exe | ||
| 7 | export DFU_UTIL=$download_dir/dfu-util-0.9-win64/dfu-util.exe | ||
| 8 | export TEENSY_LOADER_CLI=$download_dir/teensy_loader_cli.exe | ||
| 9 | export BATCHISP=$download_dir/Flip/bin/batchisp.exe | ||
| 10 | |||
| 11 | |||
| 12 | |||
diff --git a/util/wsl_install.sh b/util/wsl_install.sh index 0964929e7..314f520b9 100644 --- a/util/wsl_install.sh +++ b/util/wsl_install.sh | |||
| @@ -35,7 +35,6 @@ function install_utils { | |||
| 35 | 35 | ||
| 36 | function install_drivers { | 36 | function install_drivers { |
| 37 | pushd $download_dir | 37 | pushd $download_dir |
| 38 | cp ../drivers.txt . | ||
| 39 | cmd.exe /C qmk_driver_installer.exe $1 $2 ../drivers.txt | 38 | cmd.exe /C qmk_driver_installer.exe $1 $2 ../drivers.txt |
| 40 | popd > /dev/null | 39 | popd > /dev/null |
| 41 | } | 40 | } |
| @@ -101,5 +100,11 @@ while true; do | |||
| 101 | esac | 100 | esac |
| 102 | done | 101 | done |
| 103 | 102 | ||
| 103 | echo | ||
| 104 | echo "Creating a softlink to the utils directory as ~/qmk_utils." | ||
| 105 | echo "This is needed so that the the make system can find all utils it need." | ||
| 106 | read -p "Press any key to continue (ctrl-c to abort)" | ||
| 107 | ln -sf "$dir" ~/qmk_utils | ||
| 108 | |||
| 104 | popd > /dev/null | 109 | popd > /dev/null |
| 105 | 110 | ||
