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.

16 lines
739 B

  1. #!/bin/bash
  2. _qmk_install() {
  3. echo "Installing dependencies"
  4. sudo pacman --needed --noconfirm -S \
  5. base-devel clang diffutils gcc git unzip wget zip python-pip \
  6. avr-binutils arm-none-eabi-binutils arm-none-eabi-gcc \
  7. arm-none-eabi-newlib avrdude dfu-programmer dfu-util
  8. sudo pacman --needed --noconfirm -U https://archive.archlinux.org/packages/a/avr-gcc/avr-gcc-8.3.0-1-x86_64.pkg.tar.xz
  9. sudo pacman --needed --noconfirm -S avr-libc # Must be installed after the above, or it will bring in the latest avr-gcc instead
  10. sudo pacman --needed --noconfirm -S hidapi # This will fail if the community repo isn't enabled
  11. python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt
  12. }