summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorFlorens Pauwels <mail@florens.be>2018-05-01 17:08:48 +0200
committerJack Humbert <jack.humb@gmail.com>2018-05-02 11:44:22 -0400
commitddb1c83695008bbf87d6bebc836b408ed70a8abb (patch)
treedcfcdc5a39d1501d46356fe833d86ddbc5fe7420 /util
parente5540dd055b16eaebb28e25e0cb9b314e397e854 (diff)
Added archlinux support to linux_install.sh
Diffstat (limited to 'util')
-rwxr-xr-x[-rw-r--r--]util/linux_install.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/linux_install.sh b/util/linux_install.sh
index ef9de5b19f..e071b8ad30 100644..100755
--- a/util/linux_install.sh
+++ b/util/linux_install.sh
@@ -10,6 +10,15 @@ elif grep ID /etc/os-release | grep -q debian; then
sudo apt-get install gcc unzip wget zip gcc-avr binutils-avr avr-libc \
dfu-programmer dfu-util gcc-arm-none-eabi binutils-arm-none-eabi \
libnewlib-arm-none-eabi
+elif grep ID /etc/os-release | grep -q arch; then
+ sudo pacman -S gcc unzip wget zip avr-gcc avr-binutils avr-libc \
+ dfu-util arm-none-eabi-gcc arm-none-eabi-binutils \
+ arm-none-eabi-newlib
+ git clone https://aur.archlinux.org/dfu-programmer.git /tmp/dfu-programmer
+ cd /tmp/dfu-programmer
+ makepkg -sic
+ rm -rf /tmp/dfu-programmer/
+
else
echo "Sorry, we don't recognize your OS. Help us by contributing support!"
echo