summaryrefslogtreecommitdiffstats
path: root/util/install/debian.sh
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-11-27 01:37:54 +1100
committerGitHub <noreply@github.com>2020-11-26 14:37:54 +0000
commitc21d5a09735e84412ee5b3efb4c3f5d3fc734393 (patch)
treec2b8405f45fb6f00b063561056fca4c5aad28bf8 /util/install/debian.sh
parent3afe0ea9b9f67ae33f54c1393b15d988764241a2 (diff)
Refactor qmk_install.sh (#10681)
Diffstat (limited to 'util/install/debian.sh')
-rwxr-xr-xutil/install/debian.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/util/install/debian.sh b/util/install/debian.sh
new file mode 100755
index 0000000000..e7180c6512
--- /dev/null
+++ b/util/install/debian.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+DEBIAN_FRONTEND=noninteractive
+DEBCONF_NONINTERACTIVE_SEEN=true
+export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
+
+_qmk_install_prepare() {
+ sudo apt-get update
+}
+
+_qmk_install() {
+ echo "Installing dependencies"
+
+ sudo apt-get -yq install \
+ build-essential clang-format diffutils gcc git unzip wget zip \
+ python3-pip \
+ binutils-avr gcc-avr avr-libc \
+ binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi \
+ avrdude dfu-programmer dfu-util teensy-loader-cli
+
+ python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt
+}