diff options
Diffstat (limited to 'util/install')
| -rwxr-xr-x | util/install/debian.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/util/install/debian.sh b/util/install/debian.sh index 2a188334b..3e02919bd 100755 --- a/util/install/debian.sh +++ b/util/install/debian.sh | |||
| @@ -11,12 +11,18 @@ _qmk_install_prepare() { | |||
| 11 | _qmk_install() { | 11 | _qmk_install() { |
| 12 | echo "Installing dependencies" | 12 | echo "Installing dependencies" |
| 13 | 13 | ||
| 14 | sudo apt-get -yq install \ | 14 | sudo apt-get --quiet --yes install \ |
| 15 | build-essential clang-format diffutils gcc git unzip wget zip \ | 15 | build-essential clang-format diffutils gcc git unzip wget zip \ |
| 16 | python3-pip binutils-avr gcc-avr avr-libc binutils-arm-none-eabi \ | 16 | python3-pip binutils-avr gcc-avr avr-libc binutils-arm-none-eabi \ |
| 17 | gcc-arm-none-eabi libnewlib-arm-none-eabi avrdude dfu-programmer \ | 17 | gcc-arm-none-eabi libnewlib-arm-none-eabi avrdude dfu-programmer \ |
| 18 | dfu-util teensy-loader-cli libhidapi-hidraw0 libusb-dev \ | 18 | dfu-util teensy-loader-cli libhidapi-hidraw0 libusb-dev |
| 19 | picolibc-riscv64-unknown-elf gcc-riscv64-unknown-elf binutils-riscv64-unknown-elf | ||
| 20 | 19 | ||
| 21 | python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt | 20 | # RISC-V toolchains with picolibc support are only available for distributions based on Debian 11+. |
| 21 | if sudo apt-get install --simulate --quiet --yes picolibc-riscv64-unknown-elf gcc-riscv64-unknown-elf binutils-riscv64-unknown-elf > /dev/null 2>&1; then | ||
| 22 | sudo apt-get --quiet --yes install picolibc-riscv64-unknown-elf \ | ||
| 23 | gcc-riscv64-unknown-elf \ | ||
| 24 | binutils-riscv64-unknown-elf | ||
| 25 | fi | ||
| 26 | |||
| 27 | python3 -m pip install --user -r "$QMK_FIRMWARE_DIR"/requirements.txt | ||
| 22 | } | 28 | } |
