rules.mk 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Build Options
  2. # change to "no" to disable the options
  3. #
  4. BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
  5. MOUSEKEY_ENABLE = no # Mouse keys
  6. EXTRAKEY_ENABLE = yes # Audio control and System control
  7. CONSOLE_ENABLE = no # Console for debug
  8. COMMAND_ENABLE = no # Commands for debug and configuration
  9. NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  10. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
  11. AUDIO_ENABLE = no # Audio output
  12. UNICODE_ENABLE = no # Unicode
  13. RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
  14. SWAP_HANDS_ENABLE = no # Enable one-hand typing
  15. OS_DETECTION_ENABLE = no
  16. CUSTOM_UNICODE_ENABLE = no
  17. CUSTOM_POINTING_DEVICE = no
  18. CUSTOM_SPLIT_TRANSPORT_SYNC = no
  19. USE_ARM_CONFIG ?= no
  20. ifeq ($(strip $(CONVERT_TO)), proton_c)
  21. USE_ARM_CONFIG = yes
  22. endif
  23. ifeq ($(strip $(MCU)), STM32F303)
  24. USE_ARM_CONFIG = yes
  25. endif
  26. ifeq ($(strip $(MCU)), STM32F401)
  27. USE_ARM_CONFIG = yes
  28. endif
  29. ifeq ($(strip $(MCU)), STM32F411)
  30. USE_ARM_CONFIG = yes
  31. endif
  32. ifeq ($(strip $(MCU)), atmega32u4)
  33. BOOTLOADER = qmk-hid
  34. BOOTLOADER_SIZE = 512
  35. endif
  36. ifeq ($(strip $(USE_ARM_CONFIG)), yes)
  37. HAPTIC_ENABLE = no
  38. WS2812_DRIVER = pwm # won't work without a patch to the ctpc mk file
  39. SERIAL_DRIVER = usart
  40. WPM_ENABLE = yes
  41. AUTOCORRECT_ENABLE = yes
  42. CAPS_WORD_ENABLE = yes
  43. OS_DETECTION_ENABLE = yes
  44. CUSTOM_UNICODE_ENABLE = no
  45. CUSTOM_POINTING_DEVICE = no
  46. CUSTOM_SPLIT_TRANSPORT_SYNC = no
  47. endif
  48. ifeq ($(strip $(KEYBOARD)), crkbd/rev1)
  49. OLED_ENABLE = yes
  50. RGB_MATRIX_ENABLE = yes
  51. HAPTIC_ENABLE = no
  52. endif