rules.mk 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 - LED_ANIMATION=$(LED_ANIMATIONS))
  26. $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
  27. endef
  28. # Zinc keyboard customize
  29. LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight)
  30. LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight)
  31. LED_BOTH_ENABLE = no # LED backlight and underglow
  32. LED_RGB_CONT = no # LED continuous backlight or/and underglow between left Zinc and right Zinc
  33. LED_ANIMATIONS = yes # LED animations
  34. IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
  35. #### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
  36. #### Do not enable these with audio at the same time.
  37. ### Zinc keyboard 'default' keymap: convenient command line option
  38. ## make ZINC=<options> zinc:defualt
  39. ## option= back | under | both | cont | na | ios
  40. ## ex.
  41. ## make ZINC=under zinc:defualt
  42. ## make ZINC=under,ios zinc:defualt
  43. ## make ZINC=back zinc:default
  44. ## make ZINC=back,na zinc:default
  45. ## make ZINC=back,ios zinc:default
  46. ifneq ($(strip $(ZINC)),)
  47. ifeq ($(findstring back,$(ZINC)), back)
  48. LED_BACK_ENABLE = yes
  49. endif
  50. ifeq ($(findstring under,$(ZINC)), under)
  51. LED_UNDERGLOW_ENABLE = yes
  52. endif
  53. ifeq ($(findstring both,$(ZINC)), both)
  54. LED_BOTH_ENABLE = yes
  55. endif
  56. ifeq ($(findstring cont,$(ZINC)), cont)
  57. LED_RGB_CONT = yes
  58. endif
  59. ifeq ($(findstring na,$(ZINC)), na)
  60. LED_ANIMATIONS = no
  61. endif
  62. ifeq ($(findstring ios,$(ZINC)), ios)
  63. IOS_DEVICE_ENABLE = yes
  64. endif
  65. $(eval $(call ZINC_CUSTOMISE_MSG))
  66. $(info )
  67. endif
  68. ifeq ($(strip $(LED_BACK_ENABLE)), yes)
  69. RGBLIGHT_ENABLE = yes
  70. ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  71. OPT_DEFS += -DRGBLED_BOTH
  72. $(info LED_BOTH_ENABLE option is enabled instead of LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE)
  73. else
  74. OPT_DEFS += -DRGBLED_BACK
  75. endif
  76. else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  77. RGBLIGHT_ENABLE = yes
  78. else
  79. RGBLIGHT_ENABLE = no
  80. endif
  81. ifeq ($(strip $(LED_BOTH_ENABLE)), yes)
  82. RGBLIGHT_ENABLE = yes
  83. OPT_DEFS += -DRGBLED_BOTH
  84. endif
  85. ifeq ($(strip $(LED_RGB_CONT)), yes)
  86. OPT_DEFS += -DRGBLED_CONT
  87. endif
  88. ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
  89. OPT_DEFS += -DIOS_DEVICE_ENABLE
  90. endif
  91. ifeq ($(strip $(LED_ANIMATIONS)), yes)
  92. OPT_DEFS += -DLED_ANIMATIONS
  93. endif
  94. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  95. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  96. # Uncomment these for debugging
  97. # $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
  98. # $(info -- OPT_DEFS=$(OPT_DEFS))
  99. # $(info )