info_rules.json 1.7 KB

12345678910111213141516171819202122232425
  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", "bool", "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. "BLUETOOTH": {"info_key": "bluetooth.driver"},
  13. "FIRMWARE_FORMAT": {"info_key": "build.firmware_format"},
  14. "KEYBOARD_SHARED_EP": {"info_key": "usb.shared_endpoint.keyboard", "value_type": "bool"},
  15. "MOUSE_SHARED_EP": {"info_key": "usb.shared_endpoint.mouse", "value_type": "bool"},
  16. "LAYOUTS": {"info_key": "community_layouts", "value_type": "list"},
  17. "LED_MATRIX_DRIVER": {"info_key": "led_matrix.driver"},
  18. "LTO_ENABLE": {"info_key": "build.lto", "value_type": "bool"},
  19. "MCU": {"info_key": "processor", "warn_duplicate": false},
  20. "MOUSEKEY_ENABLE": {"info_key": "mouse_key.enabled", "value_type": "bool"},
  21. "NO_USB_STARTUP_CHECK": {"info_key": "usb.no_startup_check", "value_type": "bool"},
  22. "SPLIT_KEYBOARD": {"info_key": "split.enabled", "value_type": "bool"},
  23. "SPLIT_TRANSPORT": {"info_key": "split.transport.protocol", "value_type": "str", "to_c": false},
  24. "WAIT_FOR_USB": {"info_key": "usb.wait_for", "value_type": "bool"}
  25. }