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.

31 lines
994 B

  1. #!/bin/bash
  2. _qmk_install_prepare() {
  3. case $(grep ID /etc/os-release) in
  4. *15.1*)
  5. REPO_RELEASE=Leap_15.1;;
  6. *15.2*)
  7. REPO_RELEASE=Leap_15.2;;
  8. *)
  9. #REPO_RELEASE=Tumbleweed;;
  10. echo "ERROR: Tumbleweed is currently not supported."
  11. exit 1
  12. esac
  13. sudo zypper addrepo https://download.opensuse.org/repositories/devel:gcc/openSUSE_$REPO_RELEASE/devel:gcc.repo
  14. sudo zypper addrepo https://download.opensuse.org/repositories/hardware/openSUSE_$REPO_RELEASE/hardware.repo
  15. sudo zypper --gpg-auto-import-keys refresh
  16. }
  17. _qmk_install() {
  18. echo "Installing dependencies"
  19. sudo zypper install -y \
  20. make clang gcc unzip wget zip \
  21. python3-pip \
  22. cross-avr-binutils cross-avr-gcc8 avr-libc \
  23. cross-arm-binutils cross-arm-none-gcc8 cross-arm-none-newlib-devel \
  24. avrdude dfu-programmer dfu-util
  25. python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt
  26. }