rules.mk 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # Build Options
  2. # change to "no" to disable the options, or define them in the Makefile in
  3. # the appropriate keymap folder that will get included automatically
  4. #
  5. BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
  6. MOUSEKEY_ENABLE = no # Mouse keys
  7. EXTRAKEY_ENABLE = yes # Audio control and System control
  8. CONSOLE_ENABLE = no # Console for debug
  9. COMMAND_ENABLE = no # Commands for debug and configuration
  10. NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  11. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
  12. MIDI_ENABLE = no # MIDI controls
  13. AUDIO_ENABLE = no # Audio output on port C6
  14. UNICODE_ENABLE = no # Unicode
  15. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  16. RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
  17. SWAP_HANDS_ENABLE = no # Enable one-hand typing
  18. LTO_ENABLE = no # if firmware size over limit, try this option
  19. define ZINC_CUSTOMISE_MSG
  20. $(info Zinc customize)
  21. $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE))
  22. $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
  23. $(info - LED_BOTH_ENABLE=$(LED_BOTH_ENABLE))
  24. $(info - LED_RGB_CONT=$(LED_RGB_CONT))
  25. $(info - RGB_MATRIX=$(RGB_MATRIX))
  26. $(info - LED_ANIMATION=$(LED_ANIMATIONS))
  27. $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
  28. endef
  29. # Zinc keyboard customize
  30. LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight)
  31. LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight)
  32. LED_BOTH_ENABLE = no # LED backlight and underglow
  33. LED_RGB_CONT = no # LED continuous backlight or/and underglow between left Zinc and right Zinc
  34. RGB_MATRIX = no # RGB LED Matrix
  35. RGB_MATRIX_SPLIT_RIGHT = no # RGB Matrix for RIGHT Hand
  36. LED_ANIMATIONS = yes # LED animations
  37. IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
  38. #### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
  39. #### Do not enable these with audio at the same time.
  40. ### Zinc keyboard 'default' keymap: convenient command line option
  41. ## make ZINC=<options> zinc:defualt
  42. ## option= back | under | both | cont | matrix | na | ios
  43. ## ex.
  44. ## make ZINC=under zinc:defualt
  45. ## make ZINC=under,ios zinc:defualt
  46. ## make ZINC=back zinc:default
  47. ## make ZINC=back,na zinc:default
  48. ## make ZINC=back,ios zinc:default
  49. ifneq ($(strip $(ZINC)),)
  50. ifeq ($(findstring back,$(ZINC)), back)
  51. LED_BACK_ENABLE = yes
  52. endif
  53. ifeq ($(findstring under,$(ZINC)), under)
  54. LED_UNDERGLOW_ENABLE = yes
  55. endif
  56. ifeq ($(findstring both,$(ZINC)), both)
  57. LED_BOTH_ENABLE = yes
  58. endif
  59. ifeq ($(findstring cont,$(ZINC)), cont)
  60. LED_RGB_CONT = yes
  61. endif
  62. ifeq ($(findstring matrix,$(ZINC)), matrix)
  63. RGB_MATRIX = yes
  64. endif
  65. ifeq ($(findstring right,$(ZINC)), right)
  66. RGB_MATRIX_SPLIT_RIGHT = yes
  67. endif
  68. ifeq ($(findstring na,$(ZINC)), na)
  69. LED_ANIMATIONS = no
  70. endif
  71. ifeq ($(findstring ios,$(ZINC)), ios)
  72. IOS_DEVICE_ENABLE = yes
  73. endif
  74. $(eval $(call ZINC_CUSTOMISE_MSG))
  75. $(info )
  76. endif
  77. ifeq ($(strip $(LED_BACK_ENABLE)), yes)
  78. RGBLIGHT_ENABLE = yes
  79. ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  80. OPT_DEFS += -DRGBLED_BOTH
  81. $(info LED_BOTH_ENABLE option is enabled instead of LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE)
  82. else
  83. OPT_DEFS += -DRGBLED_BACK
  84. endif
  85. else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  86. RGBLIGHT_ENABLE = yes
  87. else
  88. RGBLIGHT_ENABLE = no
  89. endif
  90. ifeq ($(strip $(LED_BOTH_ENABLE)), yes)
  91. RGBLIGHT_ENABLE = yes
  92. OPT_DEFS += -DRGBLED_BOTH
  93. endif
  94. ifeq ($(strip $(LED_RGB_CONT)), yes)
  95. OPT_DEFS += -DRGBLED_CONT
  96. endif
  97. ifeq ($(strip $(RGB_MATRIX)), yes)
  98. RGBLIGHT_ENABLE = no
  99. RGB_MATRIX_ENABLE = yes
  100. endif
  101. ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
  102. OPT_DEFS += -DIOS_DEVICE_ENABLE
  103. endif
  104. ifeq ($(strip $(LED_ANIMATIONS)), yes)
  105. OPT_DEFS += -DLED_ANIMATIONS
  106. endif
  107. ifeq ($(strip $(RGB_MATRIX_SPLIT_RIGHT)), yes)
  108. OPT_DEFS += -DRGB_MATRIX_SPLIT_RIGHT
  109. endif
  110. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  111. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  112. # Uncomment these for debugging
  113. # $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
  114. # $(info -- OPT_DEFS=$(OPT_DEFS))
  115. # $(info )