aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--message.mk4
-rwxr-xr-xutil/freebsd_install.sh3
-rwxr-xr-xutil/linux_install.sh9
-rwxr-xr-xutil/macos_install.sh2
-rwxr-xr-xutil/msys2_install.sh2
6 files changed, 18 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index bf3abbe52..a6c3ee35b 100644
--- a/Makefile
+++ b/Makefile
@@ -534,6 +534,8 @@ endef
534%: 534%:
535 # Check if we have the CMP tool installed 535 # Check if we have the CMP tool installed
536 cmp $(ROOT_DIR)/Makefile $(ROOT_DIR)/Makefile >/dev/null 2>&1; if [ $$? -gt 0 ]; then printf "$(MSG_NO_CMP)"; exit 1; fi; 536 cmp $(ROOT_DIR)/Makefile $(ROOT_DIR)/Makefile >/dev/null 2>&1; if [ $$? -gt 0 ]; then printf "$(MSG_NO_CMP)"; exit 1; fi;
537 # Ensure that python3 is installed. This check can be removed after python is used in more places.
538 if ! python3 --version 1> /dev/null 2>&1; then printf "$(MSG_PYTHON_MISSING)"; fi
537 # Check if the submodules are dirty, and display a warning if they are 539 # Check if the submodules are dirty, and display a warning if they are
538ifndef SKIP_GIT 540ifndef SKIP_GIT
539 if [ ! -e lib/chibios ]; then git submodule sync lib/chibios && git submodule update --depth 1 --init lib/chibios; fi 541 if [ ! -e lib/chibios ]; then git submodule sync lib/chibios && git submodule update --depth 1 --init lib/chibios; fi
diff --git a/message.mk b/message.mk
index 71f37be0b..734de8645 100644
--- a/message.mk
+++ b/message.mk
@@ -81,3 +81,7 @@ MSG_FILE_TOO_BIG = $(ERROR_COLOR)The firmware is too large!$(NO_COLOR) $(CURRENT
81MSG_FILE_TOO_SMALL = The firmware is too small! $(CURRENT_SIZE)/$(MAX_SIZE)\n 81MSG_FILE_TOO_SMALL = The firmware is too small! $(CURRENT_SIZE)/$(MAX_SIZE)\n
82MSG_FILE_JUST_RIGHT = The firmware size is fine - $(CURRENT_SIZE)/$(MAX_SIZE) ($(FREE_SIZE) bytes free)\n 82MSG_FILE_JUST_RIGHT = The firmware size is fine - $(CURRENT_SIZE)/$(MAX_SIZE) ($(FREE_SIZE) bytes free)\n
83MSG_FILE_NEAR_LIMIT = The firmware size is approaching the maximum - $(CURRENT_SIZE)/$(MAX_SIZE) ($(FREE_SIZE) bytes free)\n 83MSG_FILE_NEAR_LIMIT = The firmware size is approaching the maximum - $(CURRENT_SIZE)/$(MAX_SIZE) ($(FREE_SIZE) bytes free)\n
84MSG_PYTHON_MISSING = $(WARN_COLOR)WARNING:$(NO_COLOR)\n \
85 Python 3 is not installed. It will be required by a future version\n\
86 of qmk_firmware.\n\n\
87 Please run $(BOLD)util/qmk_install.sh$(NO_COLOR) to install all the dependencies QMK requires.\n\n
diff --git a/util/freebsd_install.sh b/util/freebsd_install.sh
index 25ea80a7f..c8696e8cc 100755
--- a/util/freebsd_install.sh
+++ b/util/freebsd_install.sh
@@ -15,4 +15,5 @@ pkg install -y \
15 arm-none-eabi-gcc \ 15 arm-none-eabi-gcc \
16 arm-none-eabi-binutils \ 16 arm-none-eabi-binutils \
17 arm-none-eabi-newlib \ 17 arm-none-eabi-newlib \
18 diffutils 18 diffutils \
19 python3
diff --git a/util/linux_install.sh b/util/linux_install.sh
index 608975a91..5e2afe999 100755
--- a/util/linux_install.sh
+++ b/util/linux_install.sh
@@ -25,6 +25,7 @@ if grep ID /etc/os-release | grep -qE "fedora"; then
25 kernel-headers \ 25 kernel-headers \
26 make \ 26 make \
27 perl \ 27 perl \
28 python3 \
28 unzip \ 29 unzip \
29 wget \ 30 wget \
30 zip 31 zip
@@ -47,6 +48,7 @@ elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then
47 gcc-avr \ 48 gcc-avr \
48 git \ 49 git \
49 libnewlib-arm-none-eabi \ 50 libnewlib-arm-none-eabi \
51 python3 \
50 unzip \ 52 unzip \
51 wget \ 53 wget \
52 zip 54 zip
@@ -66,6 +68,7 @@ elif grep ID /etc/os-release | grep -q 'arch\|manjaro'; then
66 diffutils \ 68 diffutils \
67 gcc \ 69 gcc \
68 git \ 70 git \
71 python \
69 unzip \ 72 unzip \
70 wget \ 73 wget \
71 zip 74 zip
@@ -87,6 +90,7 @@ elif grep ID /etc/os-release | grep -q gentoo; then
87 app-arch/zip \ 90 app-arch/zip \
88 app-mobilephone/dfu-util \ 91 app-mobilephone/dfu-util \
89 dev-embedded/avrdude \ 92 dev-embedded/avrdude \
93 dev-lang/python:3.5 \
90 net-misc/wget \ 94 net-misc/wget \
91 sys-devel/gcc \ 95 sys-devel/gcc \
92 sys-devel/crossdev 96 sys-devel/crossdev
@@ -102,6 +106,7 @@ elif grep ID /etc/os-release | grep -q sabayon; then
102 app-arch/zip \ 106 app-arch/zip \
103 app-mobilephone/dfu-util \ 107 app-mobilephone/dfu-util \
104 dev-embedded/avrdude \ 108 dev-embedded/avrdude \
109 dev-lang/python \
105 net-misc/wget \ 110 net-misc/wget \
106 sys-devel/gcc \ 111 sys-devel/gcc \
107 sys-devel/crossdev 112 sys-devel/crossdev
@@ -125,6 +130,7 @@ elif grep ID /etc/os-release | grep -qE "opensuse|tumbleweed"; then
125 dfu-tool \ 130 dfu-tool \
126 dfu-programmer \ 131 dfu-programmer \
127 gcc \ 132 gcc \
133 python3 \
128 unzip \ 134 unzip \
129 wget \ 135 wget \
130 zip 136 zip
@@ -143,7 +149,8 @@ elif grep ID /etc/os-release | grep -q slackware; then
143 dfu-util \ 149 dfu-util \
144 arm-binutils \ 150 arm-binutils \
145 arm-gcc \ 151 arm-gcc \
146 newlib 152 newlib \
153 python3
147 echo "Done!" 154 echo "Done!"
148 else 155 else
149 echo "Quitting..." 156 echo "Quitting..."
diff --git a/util/macos_install.sh b/util/macos_install.sh
index d2629a8cb..93f3ed0b9 100755
--- a/util/macos_install.sh
+++ b/util/macos_install.sh
@@ -22,5 +22,5 @@ fi
22brew tap osx-cross/avr 22brew tap osx-cross/avr
23brew tap PX4/homebrew-px4 23brew tap PX4/homebrew-px4
24brew update 24brew update
25brew install avr-gcc@7 gcc-arm-none-eabi dfu-programmer avrdude dfu-util 25brew install avr-gcc@7 gcc-arm-none-eabi dfu-programmer avrdude dfu-util python3
26brew link --force avr-gcc@7 26brew link --force avr-gcc@7
diff --git a/util/msys2_install.sh b/util/msys2_install.sh
index fcb488249..bcb628ab2 100755
--- a/util/msys2_install.sh
+++ b/util/msys2_install.sh
@@ -7,7 +7,7 @@ armtools=gcc-arm-none-eabi
7installflip=false 7installflip=false
8 8
9echo "Installing dependencies needed for the installation (quazip)" 9echo "Installing dependencies needed for the installation (quazip)"
10pacman --needed -S msys/unzip msys/p7zip base-devel msys/git mingw-w64-x86_64-toolchain 10pacman --needed -S base-devel mingw-w64-x86_64-toolchain msys/git msys/p7zip msys/python3 msys/unzip
11 11
12source "$dir/win_shared_install.sh" 12source "$dir/win_shared_install.sh"
13 13