diff options
Diffstat (limited to 'data/mappings/info_rules.json')
-rw-r--r-- | data/mappings/info_rules.json | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/mappings/info_rules.json b/data/mappings/info_rules.json new file mode 100644 index 000000000..97f772c4d --- /dev/null +++ b/data/mappings/info_rules.json | |||
@@ -0,0 +1,15 @@ | |||
1 | # This file maps keys between `rules.mk` and `info.json`. It is used by QMK | ||
2 | # to correctly and consistently map back and forth between the two systems. | ||
3 | { | ||
4 | # Format: | ||
5 | # <rules.mk key>: {"info_key": <info.json key>, ["value_type": <value_type>], ["to_json": <true/false>], ["to_c": <true/false>]} | ||
6 | # value_type: one of "array", "array.int", "int", "list", "hex", "mapping" | ||
7 | # to_json: Default `true`. Set to `false` to exclude this mapping from info.json | ||
8 | # to_c: Default `true`. Set to `false` to exclude this mapping from rules.mk | ||
9 | # warn_duplicate: Default `true`. Set to `false` to turn off warning when a value exists in both places | ||
10 | "BOARD": {"info_key": "board"}, | ||
11 | "BOOTLOADER": {"info_key": "bootloader", "warn_duplicate": false}, | ||
12 | "LAYOUTS": {"info_key": "community_layouts", "value_type": "list"}, | ||
13 | "LED_MATRIX_DRIVER": {"info_key": "led_matrix.driver"}, | ||
14 | "MCU": {"info_key": "processor", "warn_duplicate": false}, | ||
15 | } | ||