diff options
| author | Sorixelle <38685302+Sorixelle@users.noreply.github.com> | 2019-09-21 16:55:51 +1000 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-09-20 23:55:51 -0700 |
| commit | 7f65323e101a911fb64abc49ff3c81f8ed7656a7 (patch) | |
| tree | 674c5ff7ae909d5672eecf3bf6e5aca581ec606e | |
| parent | 3642a82d37e8c4fb34b9ee60606ab831d642c9ec (diff) | |
| download | qmk_firmware-7f65323e101a911fb64abc49ff3c81f8ed7656a7.tar.gz qmk_firmware-7f65323e101a911fb64abc49ff3c81f8ed7656a7.zip | |
Add support for Void Linux systems to the qmk_install.sh script (#5526)
* Add support for Void Linux systems to the qmk_install.sh script
* Fix typos + grammatical edits in comments
* Sort distributions by alphabetical order in linux_install.sh
* Revert previous commit and sort Void packages in alphabetical order
* Fix permissions on `util/linux_install.sh`
| -rwxr-xr-x | util/linux_install.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/util/linux_install.sh b/util/linux_install.sh index 73ba25e13..dca0110a5 100755 --- a/util/linux_install.sh +++ b/util/linux_install.sh | |||
| @@ -183,6 +183,29 @@ elif grep ID /etc/os-release | grep -q solus; then | |||
| 183 | unzip | 183 | unzip |
| 184 | printf "\n$SOLUS_INFO\n" | 184 | printf "\n$SOLUS_INFO\n" |
| 185 | 185 | ||
| 186 | elif grep ID /etc/os-release | grep -q void; then | ||
| 187 | # musl Void systems don't have glibc cross compilers avaliable in their repos. | ||
| 188 | # glibc Void systems do have musl cross compilers though, for some reason. | ||
| 189 | # So, default to musl, and switch to glibc if it is installed. | ||
| 190 | CROSS_ARM=cross-arm-linux-musleabi | ||
| 191 | if xbps-query glibc > /dev/null; then # Check is glibc if installed | ||
| 192 | CROSS_ARM=cross-arm-linux-gnueabi | ||
| 193 | fi | ||
| 194 | |||
| 195 | sudo xbps-install \ | ||
| 196 | avr-binutils \ | ||
| 197 | avr-gcc \ | ||
| 198 | avr-libc \ | ||
| 199 | $CROSS_ARM \ | ||
| 200 | dfu-programmer \ | ||
| 201 | dfu-util \ | ||
| 202 | gcc \ | ||
| 203 | git \ | ||
| 204 | make \ | ||
| 205 | wget \ | ||
| 206 | unzip \ | ||
| 207 | zip | ||
| 208 | |||
| 186 | else | 209 | else |
| 187 | echo "Sorry, we don't recognize your OS. Help us by contributing support!" | 210 | echo "Sorry, we don't recognize your OS. Help us by contributing support!" |
| 188 | echo | 211 | echo |
