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.

25 lines
594 B

  1. #!/usr/bin/env bash
  2. _qmk_install_prepare() {
  3. echo "Before you continue, please ensure that your user is added to sudoers and that sboinstall is configured."
  4. read -p "Proceed? [y/N] " res
  5. case $res in
  6. [Yy]*)
  7. ;;
  8. *)
  9. return 1;;
  10. esac
  11. }
  12. _qmk_install() {
  13. echo "Installing dependencies"
  14. sudo sboinstall \
  15. avr-binutils avr-gcc avr-libc \
  16. arm-binutils arm-gcc newlib \
  17. python3 \
  18. avrdude dfu-programmer dfu-util teensy_loader_cli
  19. python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt
  20. }