You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
991 B

  1. #!/bin/sh
  2. if grep ID /etc/os-release | grep -q rhel; then
  3. # RPM based OS
  4. sudo dnf install gcc unzip wget zip dfu-util dfu-programmer avr-gcc \
  5. avr-libc binutils-avr32-linux-gnu arm-none-eabi-gcc-cs \
  6. arm-none-eabi-binutils-cs arm-none-eabi-newlib
  7. elif grep ID /etc/os-release | grep -q debian; then
  8. sudo apt-get update
  9. sudo apt-get install gcc unzip wget zip gcc-avr binutils-avr avr-libc \
  10. dfu-programmer dfu-util gcc-arm-none-eabi binutils-arm-none-eabi \
  11. libnewlib-arm-none-eabi
  12. elif grep ID /etc/os-release | grep -q arch; then
  13. sudo pacman -S gcc unzip wget zip avr-gcc avr-binutils avr-libc \
  14. dfu-util arm-none-eabi-gcc arm-none-eabi-binutils \
  15. arm-none-eabi-newlib
  16. git clone https://aur.archlinux.org/dfu-programmer.git /tmp/dfu-programmer
  17. cd /tmp/dfu-programmer
  18. makepkg -sic
  19. rm -rf /tmp/dfu-programmer/
  20. else
  21. echo "Sorry, we don't recognize your OS. Help us by contributing support!"
  22. echo
  23. echo " https://docs.qmk.fm/contributing.html"
  24. fi