]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Add freebsd support in "util/install_dependencies.sh"
authorstites <sam@stites.io>
Tue, 7 Mar 2017 16:45:47 +0000 (11:45 -0500)
committerstites <sam@stites.io>
Tue, 7 Mar 2017 18:12:10 +0000 (13:12 -0500)
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.

util/install_dependencies.sh

index 936a865938c8c0215131f59dc7b45ef5b599237e..1b73a8b3bfa3f337c435bfdd5ac01f1e2b4d0c8f 100755 (executable)
@@ -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