summaryrefslogtreecommitdiffstats
path: root/util/install/freebsd.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/freebsd.sh
parent3afe0ea9b9f67ae33f54c1393b15d988764241a2 (diff)
Refactor qmk_install.sh (#10681)
Diffstat (limited to 'util/install/freebsd.sh')
-rwxr-xr-xutil/install/freebsd.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/util/install/freebsd.sh b/util/install/freebsd.sh
new file mode 100755
index 0000000000..353c52d647
--- /dev/null
+++ b/util/install/freebsd.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+_qmk_install_prepare() {
+ sudo pkg update
+}
+
+_qmk_install() {
+ echo "Installing dependencies"
+
+ sudo pkg install -y \
+ git wget gmake gcc zip unzip diffutils \
+ python3 \
+ avr-binutils avr-gcc avr-libc \
+ arm-none-eabi-binutils arm-none-eabi-gcc arm-none-eabi-newlib \
+ avrdude dfu-programmer dfu-util
+
+ sudo python3 -m pip install -r $QMK_FIRMWARE_DIR/requirements.txt
+}