rules.mk 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 $(CTPC)), yes)
  24. USE_ARM_CONFIG = yes
  25. endif
  26. ifeq ($(strip $(MCU)), STM32F303)
  27. USE_ARM_CONFIG = yes
  28. endif
  29. ifeq ($(strip $(MCU)), STM32F401)
  30. USE_ARM_CONFIG = yes
  31. endif
  32. ifeq ($(strip $(MCU)), STM32F411)
  33. USE_ARM_CONFIG = yes
  34. endif
  35. ifeq ($(strip $(MCU)), atmega32u4)
  36. BOOTLOADER = qmk-hid
  37. BOOTLOADER_SIZE = 512
  38. endif
  39. ifeq ($(strip $(USE_ARM_CONFIG)), yes)
  40. HAPTIC_ENABLE = no
  41. WS2812_DRIVER = pwm # won't work without a patch to the ctpc mk file
  42. SERIAL_DRIVER = usart
  43. WPM_ENABLE = yes
  44. AUTOCORRECT_ENABLE = yes
  45. CAPS_WORD_ENABLE = yes
  46. OS_DETECTION_ENABLE = yes
  47. CUSTOM_UNICODE_ENABLE = no
  48. CUSTOM_POINTING_DEVICE = no
  49. CUSTOM_SPLIT_TRANSPORT_SYNC = no
  50. endif
  51. ifeq ($(strip $(KEYBOARD)), crkbd/rev1)
  52. OLED_ENABLE = yes
  53. RGB_MATRIX_ENABLE = yes
  54. HAPTIC_ENABLE = no
  55. endif