summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshela <shelaf@users.noreply.github.com>2020-01-10 09:44:16 +0900
committerJoel Challis <git@zvecr.com>2020-01-10 00:44:16 +0000
commit5a02cc00a43cbeb9cc6ad94811acfb861d8f3929 (patch)
tree7bdb0d8758e1ae5fd046346907c9f8315b983e55
parent886eb98e2ae070019dc8032d93d4c751d3588a67 (diff)
downloadqmk_firmware-5a02cc00a43cbeb9cc6ad94811acfb861d8f3929.tar.gz
qmk_firmware-5a02cc00a43cbeb9cc6ad94811acfb861d8f3929.zip
Fix docker script and document (#7786)
Fixed error when keyboard parameter is omitted in interactive 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 95f17e4b2e..fea20e59b4 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.
util/docker_build.sh keyboard:keymap
# For example: util/docker_build.sh ergodox_ez:steno
```
-This 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`.
+This 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`.
You 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:
```bash
util/docker_build.sh
-# Reads parameters as input (leave blank for defaults)
+# Reads parameters as input (leave blank for all keyboards/keymaps)
```
There 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 d8c4c759a3..bf13f50975 100755
--- a/util/docker_build.sh
+++ b/util/docker_build.sh
@@ -37,6 +37,9 @@ else
exit 1
fi
fi
+if [ -z "$keyboard" ]; then
+ keyboard=all
+fi
if [ -n "$target" ]; then
if [ "$(uname)" = "Linux" ] || docker-machine active >/dev/null 2>&1; then
usb_args="--privileged -v /dev:/dev"