aboutsummaryrefslogtreecommitdiff
path: root/util/install/debian.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/install/debian.sh')
-rwxr-xr-xutil/install/debian.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/util/install/debian.sh b/util/install/debian.sh
new file mode 100755
index 000000000..3e02919bd
--- /dev/null
+++ b/util/install/debian.sh
@@ -0,0 +1,28 @@
1#!/usr/bin/env bash
2
3DEBIAN_FRONTEND=noninteractive
4DEBCONF_NONINTERACTIVE_SEEN=true
5export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
6
7_qmk_install_prepare() {
8 sudo apt-get update $SKIP_PROMPT
9}
10
11_qmk_install() {
12 echo "Installing dependencies"
13
14 sudo apt-get --quiet --yes install \
15 build-essential clang-format diffutils gcc git unzip wget zip \
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 \
18 dfu-util teensy-loader-cli libhidapi-hidraw0 libusb-dev
19
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
28}