2022-11-08 02:05:08 +01:00
|
|
|
// This file maps keys between `rules.mk` and `info.json`. It is used by QMK
|
|
|
|
// to correctly and consistently map back and forth between the two systems.
|
2021-01-31 21:46:00 +01:00
|
|
|
{
|
2022-11-08 02:05:08 +01:00
|
|
|
// Format:
|
|
|
|
// <rules.mk key>: {"info_key": <info.json key>, ["value_type": <value_type>], ["to_json": <true/false>], ["to_c": <true/false>]}
|
|
|
|
// value_type: one of "array", "array.int", "bool", "int", "list", "hex", "mapping", "str", "raw"
|
|
|
|
// to_json: Default `true`. Set to `false` to exclude this mapping from info.json
|
|
|
|
// to_c: Default `true`. Set to `false` to exclude this mapping from rules.mk
|
|
|
|
// warn_duplicate: Default `true`. Set to `false` to turn off warning when a value exists in both places
|
|
|
|
// deprecated: Default `false`. Set to `true` to turn on warning when a value exists
|
|
|
|
// invalid: Default `false`. Set to `true` to generate errors when a value exists
|
|
|
|
// replace_with: use with a key marked deprecated or invalid to designate a replacement
|
2021-01-31 21:46:00 +01:00
|
|
|
"BOARD": {"info_key": "board"},
|
|
|
|
"BOOTLOADER": {"info_key": "bootloader", "warn_duplicate": false},
|
2022-11-30 05:27:21 +01:00
|
|
|
"BOOTMAGIC_ENABLE": {"info_key": "bootmagic.enabled", "value_type": "bool"},
|
2022-08-29 20:05:05 +02:00
|
|
|
"BLUETOOTH_DRIVER": {"info_key": "bluetooth.driver"},
|
2022-05-14 08:00:32 +02:00
|
|
|
"CAPS_WORD_ENABLE": {"info_key": "caps_word.enabled", "value_type": "bool"},
|
2022-10-07 07:58:13 +02:00
|
|
|
"DEBOUNCE_TYPE": {"info_key": "build.debounce_type"},
|
2022-06-21 05:15:06 +02:00
|
|
|
"ENCODER_ENABLE": {"info_key": "encoder.enabled", "value_type": "bool"},
|
2021-08-17 00:33:30 +02:00
|
|
|
"FIRMWARE_FORMAT": {"info_key": "build.firmware_format"},
|
|
|
|
"KEYBOARD_SHARED_EP": {"info_key": "usb.shared_endpoint.keyboard", "value_type": "bool"},
|
|
|
|
"MOUSE_SHARED_EP": {"info_key": "usb.shared_endpoint.mouse", "value_type": "bool"},
|
2021-01-31 21:46:00 +01:00
|
|
|
"LAYOUTS": {"info_key": "community_layouts", "value_type": "list"},
|
|
|
|
"LED_MATRIX_DRIVER": {"info_key": "led_matrix.driver"},
|
2022-08-24 23:20:05 +02:00
|
|
|
"RGB_MATRIX_DRIVER": {"info_key": "rgb_matrix.driver"},
|
2021-08-17 00:33:30 +02:00
|
|
|
"LTO_ENABLE": {"info_key": "build.lto", "value_type": "bool"},
|
2021-01-31 21:46:00 +01:00
|
|
|
"MCU": {"info_key": "processor", "warn_duplicate": false},
|
2021-08-17 00:33:30 +02:00
|
|
|
"MOUSEKEY_ENABLE": {"info_key": "mouse_key.enabled", "value_type": "bool"},
|
|
|
|
"NO_USB_STARTUP_CHECK": {"info_key": "usb.no_startup_check", "value_type": "bool"},
|
2022-04-06 02:08:38 +02:00
|
|
|
"PIN_COMPATIBLE": {"info_key": "pin_compatible"},
|
2022-04-16 20:13:05 +02:00
|
|
|
"SECURE_ENABLE": {"info_key": "secure.enabled", "value_type": "bool"},
|
2021-08-17 00:33:30 +02:00
|
|
|
"SPLIT_KEYBOARD": {"info_key": "split.enabled", "value_type": "bool"},
|
2022-03-04 14:25:24 +01:00
|
|
|
"SPLIT_TRANSPORT": {"info_key": "split.transport.protocol", "to_c": false},
|
2022-06-09 22:02:16 +02:00
|
|
|
"WAIT_FOR_USB": {"info_key": "usb.wait_for", "value_type": "bool"},
|
2022-06-23 20:43:24 +02:00
|
|
|
"STENO_ENABLE": {"info_key": "stenography.enabled", "value_type": "bool"},
|
|
|
|
"STENO_PROTOCOL": {"info_key": "stenography.protocol"},
|
2022-08-31 09:16:07 +02:00
|
|
|
"PS2_ENABLE": {"info_key": "ps2.enabled", "value_type": "bool"},
|
|
|
|
"PS2_MOUSE_ENABLE": {"info_key": "ps2.mouse_enabled", "value_type": "bool"},
|
|
|
|
"PS2_DRIVER": {"info_key": "ps2.driver"},
|
2022-06-09 22:02:16 +02:00
|
|
|
|
2022-11-08 02:05:08 +01:00
|
|
|
// Items we want flagged in lint
|
2022-08-06 14:37:40 +02:00
|
|
|
"CTPC": {"info_key": "_deprecated.ctpc", "deprecated": true, "replace_with": "CONVERT_TO=proton_c"},
|
|
|
|
"CONVERT_TO_PROTON_C": {"info_key": "_deprecated.ctpc", "deprecated": true, "replace_with": "CONVERT_TO=proton_c"},
|
2022-09-03 20:44:42 +02:00
|
|
|
"VIAL_ENABLE": {"info_key": "_invalid.vial", "invalid": true}
|
2021-01-31 21:46:00 +01:00
|
|
|
}
|