rules.mk 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 # Virtual DIP switch configuration(+1000)
  6. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  7. EXTRAKEY_ENABLE = no # Audio control and System control(+450)
  8. CONSOLE_ENABLE = no # Console for debug(+400)
  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. define HELIX_CUSTOMISE_MSG
  19. $(info Helix customize)
  20. $(info - OLED_ENABLE=$(OLED_ENABLE))
  21. $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE))
  22. $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
  23. $(info - LED_ANIMATION=$(LED_ANIMATIONS))
  24. $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
  25. endef
  26. # Helix keyboard customize
  27. # you can edit follows 5 Variables
  28. # jp: 以下の5つの変数を必要に応じて編集します。
  29. OLED_ENABLE = no # OLED_ENABLE
  30. LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
  31. LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
  32. LED_ANIMATIONS = yes # LED animations
  33. IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
  34. #### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
  35. #### Do not enable these with audio at the same time.
  36. ### Helix keyboard 'five_rows' keymap: convenient command line option
  37. ## make HELIX=<options> helix:five_rows
  38. ## option= oled | back | under | na | ios
  39. ## ex.
  40. ## make HELIX=oled helix:five_rows
  41. ## make HELIX=oled,back helix:five_rows
  42. ## make HELIX=oled,under helix:five_rows
  43. ## make HELIX=oled,back,na helix:five_rows
  44. ## make HELIX=oled,back,ios helix:five_rows
  45. ##
  46. ifneq ($(strip $(HELIX)),)
  47. ifeq ($(findstring oled,$(HELIX)), oled)
  48. OLED_ENABLE = yes
  49. endif
  50. ifeq ($(findstring back,$(HELIX)), back)
  51. LED_BACK_ENABLE = yes
  52. else ifeq ($(findstring under,$(HELIX)), under)
  53. LED_UNDERGLOW_ENABLE = yes
  54. endif
  55. ifeq ($(findstring na,$(HELIX)), na)
  56. LED_ANIMATIONS = no
  57. endif
  58. ifeq ($(findstring ios,$(HELIX)), ios)
  59. IOS_DEVICE_ENABLE = yes
  60. endif
  61. $(eval $(call HELIX_CUSTOMISE_MSG))
  62. $(info )
  63. endif
  64. # Uncomment these for checking
  65. # jp: コンパイル時にカスタマイズの状態を表示したい時はコメントをはずします。
  66. # $(eval $(call HELIX_CUSTOMISE_MSG))
  67. # $(info )
  68. ifeq ($(strip $(LED_BACK_ENABLE)), yes)
  69. RGBLIGHT_ENABLE = yes
  70. OPT_DEFS += -DRGBLED_BACK
  71. ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  72. $(eval $(call HELIX_CUSTOMISE_MSG))
  73. $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
  74. endif
  75. else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  76. RGBLIGHT_ENABLE = yes
  77. else
  78. RGBLIGHT_ENABLE = no
  79. endif
  80. ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
  81. OPT_DEFS += -DIOS_DEVICE_ENABLE
  82. endif
  83. ifeq ($(strip $(LED_ANIMATIONS)), yes)
  84. OPT_DEFS += -DRGBLIGHT_ANIMATIONS
  85. endif
  86. ifeq ($(strip $(OLED_ENABLE)), yes)
  87. OPT_DEFS += -DOLED_ENABLE
  88. endif
  89. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  90. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  91. ifndef QUANTUM_DIR
  92. include ../../../../Makefile
  93. endif
  94. # Uncomment these for debugging
  95. # $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
  96. # $(info -- OPT_DEFS=$(OPT_DEFS))
  97. # $(info )