rules.mk 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. USE_ARM_CONFIG ?= no
  16. ifeq ($(strip $(CONVERT_TO)), proton_c)
  17. USE_ARM_CONFIG = yes
  18. endif
  19. ifeq ($(strip $(CTPC)), yes)
  20. USE_ARM_CONFIG = yes
  21. endif
  22. ifeq ($(strip $(MCU)), STM32F303)
  23. USE_ARM_CONFIG = yes
  24. endif
  25. ifeq ($(strip $(MCU)), STM32F401)
  26. USE_ARM_CONFIG = yes
  27. endif
  28. ifeq ($(strip $(USE_ARM_CONFIG)), yes)
  29. HAPTIC_ENABLE = no
  30. WS2812_DRIVER = pwm # won't work without a patch to the ctpc mk file
  31. SERIAL_DRIVER = usart
  32. SWAP_HANDS_ENABLE = yes
  33. WPM_ENABLE = yes
  34. AUTOCORRECTION_ENABLE = yes
  35. CAPS_WORD_ENABLE = yes
  36. else
  37. CUSTOM_UNICODE_ENABLE = no
  38. BOOTLOADER = qmk-hid
  39. BOOTLOADER_SIZE = 512
  40. endif
  41. ifeq ($(strip $(KEYBOARD)), crkbd/rev1)
  42. OLED_ENABLE = yes
  43. RGB_MATRIX_ENABLE = yes
  44. HAPTIC_ENABLE = no
  45. endif
  46. ifeq ($(strip $(KEYBOARD)), cantor)
  47. SWAP_HANDS_ENABLE = no
  48. endif