From c21d5a09735e84412ee5b3efb4c3f5d3fc734393 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 27 Nov 2020 01:37:54 +1100 Subject: Refactor qmk_install.sh (#10681) --- util/install/freebsd.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 util/install/freebsd.sh (limited to 'util/install/freebsd.sh') 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 +} -- cgit v1.2.3 From db1eacdaacb9c8f6889f46bc1c6af155b81ad72a Mon Sep 17 00:00:00 2001 From: Zach White Date: Wed, 19 May 2021 15:24:46 -0700 Subject: Align our subprocess usage with current best practices. (#12940) * Align our subprocess usage with current best practices. * remove unused import * Apply suggestions from code review Co-authored-by: Ryan * fix the cpp invocation for older python * allow for unprompted installation * make sure qmk new-keyboard works on windows Co-authored-by: Ryan --- util/install/freebsd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/install/freebsd.sh') diff --git a/util/install/freebsd.sh b/util/install/freebsd.sh index 353c52d647..d9399a5de9 100755 --- a/util/install/freebsd.sh +++ b/util/install/freebsd.sh @@ -1,7 +1,7 @@ #!/bin/bash _qmk_install_prepare() { - sudo pkg update + sudo pkg update $SKIP_PROMPT } _qmk_install() { -- cgit v1.2.3