2022-11-08 09:05:08 +08: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-02-01 04:46:00 +08:00
|
|
|
{
|
2022-11-08 09:05:08 +08: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
|
2023-05-09 11:23:03 +08:00
|
|
|
|
2024-04-26 12:41:22 +08:00
|
|
|
"AUDIO_DRIVER": {"info_key": "audio.driver"},
|
2023-05-09 11:23:03 +08:00
|
|
|
"BACKLIGHT_DRIVER": {"info_key": "backlight.driver"},
|
|
|
|
"BLUETOOTH_DRIVER": {"info_key": "bluetooth.driver"},
|
2021-02-01 04:46:00 +08:00
|
|
|
"BOARD": {"info_key": "board"},
|
|
|
|
"BOOTLOADER": {"info_key": "bootloader", "warn_duplicate": false},
|
2022-11-30 12:27:21 +08:00
|
|
|
"BOOTMAGIC_ENABLE": {"info_key": "bootmagic.enabled", "value_type": "bool"},
|
2022-05-14 14:00:32 +08:00
|
|
|
"CAPS_WORD_ENABLE": {"info_key": "caps_word.enabled", "value_type": "bool"},
|
2023-10-29 08:09:02 +08:00
|
|
|
"DIP_SWITCH_ENABLE": {"info_key": "dip_switch.enabled", "value_type": "bool"},
|
2022-10-07 13:58:13 +08:00
|
|
|
"DEBOUNCE_TYPE": {"info_key": "build.debounce_type"},
|
2023-04-02 11:03:22 +08:00
|
|
|
"EEPROM_DRIVER": {"info_key": "eeprom.driver"},
|
2022-06-21 11:15:06 +08:00
|
|
|
"ENCODER_ENABLE": {"info_key": "encoder.enabled", "value_type": "bool"},
|
2024-02-18 18:17:15 +08:00
|
|
|
"ENCODER_DRIVER": {"info_key": "encoder.driver"},
|
2021-08-17 06:33:30 +08:00
|
|
|
"FIRMWARE_FORMAT": {"info_key": "build.firmware_format"},
|
2024-04-24 11:59:57 +08:00
|
|
|
"HAPTIC_DRIVER": {"info_key": "haptic.driver"},
|
2024-06-18 10:44:22 +08:00
|
|
|
"JOYSTICK_DRIVER": {"info_key": "joystick.driver"},
|
|
|
|
"JOYSTICK_ENABLE": {"info_key": "joystick.enabled", "value_type": "bool"},
|
2021-08-17 06:33:30 +08:00
|
|
|
"KEYBOARD_SHARED_EP": {"info_key": "usb.shared_endpoint.keyboard", "value_type": "bool"},
|
2021-02-01 04:46:00 +08:00
|
|
|
"LAYOUTS": {"info_key": "community_layouts", "value_type": "list"},
|
|
|
|
"LED_MATRIX_DRIVER": {"info_key": "led_matrix.driver"},
|
2021-08-17 06:33:30 +08:00
|
|
|
"LTO_ENABLE": {"info_key": "build.lto", "value_type": "bool"},
|
2021-02-01 04:46:00 +08:00
|
|
|
"MCU": {"info_key": "processor", "warn_duplicate": false},
|
2023-05-09 11:23:03 +08:00
|
|
|
"MOUSE_SHARED_EP": {"info_key": "usb.shared_endpoint.mouse", "value_type": "bool"},
|
2021-08-17 06:33:30 +08: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 08:08:38 +08:00
|
|
|
"PIN_COMPATIBLE": {"info_key": "pin_compatible"},
|
2023-05-09 11:23:03 +08:00
|
|
|
"PLATFORM_KEY": {"info_key": "platform_key", "to_json": false},
|
|
|
|
"PS2_DRIVER": {"info_key": "ps2.driver"},
|
|
|
|
"PS2_ENABLE": {"info_key": "ps2.enabled", "value_type": "bool"},
|
|
|
|
"PS2_MOUSE_ENABLE": {"info_key": "ps2.mouse_enabled", "value_type": "bool"},
|
|
|
|
"RGB_MATRIX_DRIVER": {"info_key": "rgb_matrix.driver"},
|
2023-08-15 18:06:57 +08:00
|
|
|
"RGBLIGHT_DRIVER": {"info_key": "rgblight.driver"},
|
2022-04-17 02:13:05 +08:00
|
|
|
"SECURE_ENABLE": {"info_key": "secure.enabled", "value_type": "bool"},
|
2024-06-18 02:22:47 +08:00
|
|
|
"SERIAL_DRIVER": {"info_key": "split.serial.driver"},
|
2021-08-17 06:33:30 +08:00
|
|
|
"SPLIT_KEYBOARD": {"info_key": "split.enabled", "value_type": "bool"},
|
2022-03-04 21:25:24 +08:00
|
|
|
"SPLIT_TRANSPORT": {"info_key": "split.transport.protocol", "to_c": false},
|
2022-06-24 02:43:24 +08:00
|
|
|
"STENO_ENABLE": {"info_key": "stenography.enabled", "value_type": "bool"},
|
|
|
|
"STENO_PROTOCOL": {"info_key": "stenography.protocol"},
|
2024-04-25 02:33:52 +08:00
|
|
|
"USB_WAIT_FOR_ENUMERATION": {"info_key": "usb.wait_for_enumeration", "value_type": "bool"},
|
2023-09-05 08:53:05 +08:00
|
|
|
"WEAR_LEVELING_DRIVER": {"info_key": "eeprom.wear_leveling.driver"},
|
2023-03-26 15:22:12 +08:00
|
|
|
"WS2812_DRIVER": {"info_key": "ws2812.driver"},
|
2022-06-10 04:02:16 +08:00
|
|
|
|
2022-11-08 09:05:08 +08:00
|
|
|
// Items we want flagged in lint
|
2022-08-06 20:37:40 +08: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-04 02:44:42 +08:00
|
|
|
"VIAL_ENABLE": {"info_key": "_invalid.vial", "invalid": true}
|
2021-02-01 04:46:00 +08:00
|
|
|
}
|