Skip to content

Commit

Permalink
Void Linux: Switch to cross-arm-none-eabi toolchain (#9228)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Jun 2, 2020
1 parent 306d02a commit c73125e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions util/linux_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,13 @@ elif grep ID /etc/os-release | grep -q solus; then
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 \
cross-arm-none-eabi-binutils \
cross-arm-none-eabi-gcc \
cross-arm-none-eabi-newlib \
avrdude \
dfu-programmer \
dfu-util \
Expand Down

0 comments on commit c73125e

Please sign in to comment.