aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/getting_started_build_tools.md4
-rwxr-xr-xutil/docker_build.sh3
2 files changed, 5 insertions, 2 deletions
diff --git a/docs/getting_started_build_tools.md b/docs/getting_started_build_tools.md
index 95f17e4b2..fea20e59b 100644
--- a/docs/getting_started_build_tools.md
+++ b/docs/getting_started_build_tools.md
@@ -120,12 +120,12 @@ If this is a bit complex for you, Docker might be the turnkey solution you need.
120util/docker_build.sh keyboard:keymap 120util/docker_build.sh keyboard:keymap
121# For example: util/docker_build.sh ergodox_ez:steno 121# For example: util/docker_build.sh ergodox_ez:steno
122``` 122```
123This will compile the desired keyboard/keymap and leave the resulting `.hex` or `.bin` file in the QMK directory for you to flash. If `:keymap` is omitted, the `default` keymap is used. Note that the parameter format is the same as when building with `make`. 123This will compile the desired keyboard/keymap and leave the resulting `.hex` or `.bin` file in the QMK directory for you to flash. If `:keymap` is omitted, all keymaps are used. Note that the parameter format is the same as when building with `make`.
124 124
125You can also start the script without any parameters, in which case it will ask you to input the build parameters one by one, which you may find easier to use: 125You can also start the script without any parameters, in which case it will ask you to input the build parameters one by one, which you may find easier to use:
126```bash 126```bash
127util/docker_build.sh 127util/docker_build.sh
128# Reads parameters as input (leave blank for defaults) 128# Reads parameters as input (leave blank for all keyboards/keymaps)
129``` 129```
130 130
131There is also support for building _and_ flashing the keyboard straight from Docker by specifying the `target` as well: 131There is also support for building _and_ flashing the keyboard straight from Docker by specifying the `target` as well:
diff --git a/util/docker_build.sh b/util/docker_build.sh
index d8c4c759a..bf13f5097 100755
--- a/util/docker_build.sh
+++ b/util/docker_build.sh
@@ -37,6 +37,9 @@ else
37 exit 1 37 exit 1
38 fi 38 fi
39fi 39fi
40if [ -z "$keyboard" ]; then
41 keyboard=all
42fi
40if [ -n "$target" ]; then 43if [ -n "$target" ]; then
41 if [ "$(uname)" = "Linux" ] || docker-machine active >/dev/null 2>&1; then 44 if [ "$(uname)" = "Linux" ] || docker-machine active >/dev/null 2>&1; then
42 usb_args="--privileged -v /dev:/dev" 45 usb_args="--privileged -v /dev:/dev"