Skip to content

Commit

Permalink
Add support for Void Linux systems to the qmk_install.sh script (qmk#…
Browse files Browse the repository at this point in the history
…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`
  • Loading branch information
Sorixelle authored and drashna committed Sep 21, 2019
1 parent 3642a82 commit 7f65323
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions util/linux_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,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
Expand Down

0 comments on commit 7f65323

Please sign in to comment.