diff options
author | Sorixelle <38685302+Sorixelle@users.noreply.github.com> | 2019-09-21 16:55:51 +1000 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2019-12-05 16:03:50 -0800 |
commit | a73c258d7925570f302225d648012c5b5950cf95 (patch) | |
tree | 95af91d1ed02d1b2ebffe2e255884f59ed0d061a | |
parent | a2c458863e31ab525c700e46810a687c4785258b (diff) |
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 d3b79942ab..86aa62a4e1 100755 --- a/util/linux_install.sh +++ b/util/linux_install.sh @@ -182,6 +182,29 @@ elif grep ID /etc/os-release | grep -q solus; then unzip printf "\n$SOLUS_INFO\n" +elif grep ID /etc/os-release | grep -q void; then + # musl Void systems don't have glibc cross compilers avaliable in their repos. + # glibc Void systems do have musl cross compilers though, for some reason. + # So, default to musl, and switch to glibc if it is installed. + CROSS_ARM=cross-arm-linux-musleabi + if xbps-query glibc > /dev/null; then # Check is glibc if installed + CROSS_ARM=cross-arm-linux-gnueabi + fi + + sudo xbps-install \ + avr-binutils \ + avr-gcc \ + avr-libc \ + $CROSS_ARM \ + dfu-programmer \ + dfu-util \ + gcc \ + git \ + make \ + wget \ + unzip \ + zip + else echo "Sorry, we don't recognize your OS. Help us by contributing support!" echo |