aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorGravatar stites <sam@stites.io>2017-03-07 11:45:47 -0500
committerGravatar stites <sam@stites.io>2017-03-07 13:12:10 -0500
commita9959783c0a190410307e3e6cc1be4c024e9cddd (patch)
tree8d48f12f6572ea9b7f869133ecc5247b1a4a3a23 /util
parent615bfc4eca8204b73c592a076ca02aeaeceb7e1e (diff)
downloadqmk_firmware-a9959783c0a190410307e3e6cc1be4c024e9cddd.tar.gz
Add freebsd support in "util/install_dependencies.sh"
A simple addition to the `install_dependencies` script which remaps the debian dependencies to their freebsd package-names. After a recursive clone and using gmake, I can successfully build all firmware from the root directory (minus some warnings generated by gcc-4.9.4 which I can procure on request). however there is a problem running tests.
Diffstat (limited to 'util')
-rwxr-xr-xutil/install_dependencies.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/util/install_dependencies.sh b/util/install_dependencies.sh
index 936a86593..1b73a8b3b 100755
--- a/util/install_dependencies.sh
+++ b/util/install_dependencies.sh
@@ -92,4 +92,23 @@ elif [[ -n "$(type -P zypper)" ]]; then
# TODO: The avr and eabi tools are not available as default packages, so we need
# another way to install them
+elif [[ -n "$(type -P pkg)" ]]; then
+ # FreeBSD
+ pkg update
+ pkg install -y \
+ git \
+ wget \
+ gmake \
+ gcc \
+ zip \
+ unzip \
+ avr-binutils \
+ avr-gcc \
+ avr-libc \
+ dfu-programmer \
+ dfu-util \
+ arm-none-eabi-gcc \
+ arm-none-eabi-binutils \
+ arm-none-eabi-newlib \
+ diffutils
fi