summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2019-02-15 05:14:26 +0100
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-02-15 05:14:26 +0100
commit40e67a3074293bc8e96574e7d603a943d3ca8d38 (patch)
tree1e152c2282a4a0737e1a5952ec4ac6d96a333b63 /docs
parent85022f8bb5129f7118b55556c1ce85bc7d721356 (diff)
downloadqmk_firmware-40e67a3074293bc8e96574e7d603a943d3ca8d38.tar.gz
qmk_firmware-40e67a3074293bc8e96574e7d603a943d3ca8d38.tar.xz
Add a mechanism for force building a particular community layout (#5027)
* Add a mechanism for force building a particular community layout * Add docs for FORCE_LAYOUT argument * Update output name when FORCE_LAYOUT is enabled
Diffstat (limited to 'docs')
-rw-r--r--docs/feature_layouts.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/feature_layouts.md b/docs/feature_layouts.md
index 1ee8b5e35..b34fd442d 100644
--- a/docs/feature_layouts.md
+++ b/docs/feature_layouts.md
@@ -51,6 +51,35 @@ The folder name must be added to the keyboard's `rules.mk`:
but the `LAYOUT_<layout>` variable must be defined in `<folder>.h` as well.
+## Building a Keymap
+
+You should be able to build the keyboard keymap with a command in this format:
+
+ make <keyboard>:<layout>
+
+### Conflicting layouts
+When a keyboard supports multiple layout options,
+
+ LAYOUTS = ortho_4x4 ortho_4x12
+
+And a layout exists for both options,
+```
+layouts/
++ community/
+| + ortho_4x4/
+| | + <layout>/
+| | | + ...
+| + ortho_4x12/
+| | + <layout>/
+| | | + ...
+| + ...
+```
+
+The FORCE_LAYOUT argument can be used to specify which layout to build
+
+ make <keyboard>:<layout> FORCE_LAYOUT=ortho_4x4
+ make <keyboard>:<layout> FORCE_LAYOUT=ortho_4x12
+
## Tips for Making Layouts Keyboard-Agnostic
### Includes