aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/rev2/keymaps/default/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/rev2/keymaps/default/rules.mk')
-rw-r--r--keyboards/helix/rev2/keymaps/default/rules.mk141
1 files changed, 20 insertions, 121 deletions
diff --git a/keyboards/helix/rev2/keymaps/default/rules.mk b/keyboards/helix/rev2/keymaps/default/rules.mk
index 37ef8632d..6a42fcf73 100644
--- a/keyboards/helix/rev2/keymaps/default/rules.mk
+++ b/keyboards/helix/rev2/keymaps/default/rules.mk
@@ -1,124 +1,23 @@
1 1# QMK Standard Build Options
2# Build Options
3# change to "no" to disable the options, or define them in the Makefile in 2# change to "no" to disable the options, or define them in the Makefile in
4# the appropriate keymap folder that will get included automatically 3# the appropriate keymap folder that will get included automatically
5# 4#
6BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 5# See TOP/keyboards/helix/rules.mk for a list of options that can be set.
7MOUSEKEY_ENABLE = no # Mouse keys(+4700) 6# See TOP/docs/config_options.md for more information.
8EXTRAKEY_ENABLE = no # Audio control and System control(+450) 7#
9CONSOLE_ENABLE = no # Console for debug(+400) 8LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
10COMMAND_ENABLE = no # Commands for debug and configuration 9
11NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 10# Helix Spacific Build Options
12BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 11# you can uncomment and edit follows 7 Variables
13MIDI_ENABLE = no # MIDI controls 12# jp: 以下の7つの変数を必要に応じて編集し、コメントアウトをはずします。
14AUDIO_ENABLE = no # Audio output on port C6 13# HELIX_ROWS = 5 # Helix Rows is 4 or 5
15UNICODE_ENABLE = no # Unicode 14# OLED_ENABLE = no # OLED_ENABLE
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 15# LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
17RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. 16# LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
18SWAP_HANDS_ENABLE = no # Enable one-hand typing 17# LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
19 18# LED_ANIMATIONS = yes # LED animations
20define HELIX_CUSTOMISE_MSG 19# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
21 $(info Helix customize) 20
22 $(info - OLED_ENABLE=$(OLED_ENABLE)) 21# convert Helix-specific options (that represent combinations of standard options)
23 $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE)) 22# into QMK standard options.
24 $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE)) 23include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
25 $(info - LED_ANIMATION=$(LED_ANIMATIONS))
26 $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
27endef
28
29# Helix keyboard customize
30# you can edit follows 7 Variables
31# jp: 以下の7つの変数を必要に応じて編集します。
32HELIX_ROWS = 5 # Helix Rows is 4 or 5
33OLED_ENABLE = no # OLED_ENABLE
34LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
35LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
36LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
37LED_ANIMATIONS = yes # LED animations
38IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
39Link_Time_Optimization = no # if firmware size over limit, try this option
40
41#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
42#### Do not enable these with audio at the same time.
43
44### Helix keyboard 'default' keymap: convenient command line option
45## make HELIX=<options> helix:defualt
46## option= oled | back | under | na | ios
47## ex.
48## make HELIX=oled helix:defualt
49## make HELIX=oled,back helix:defualt
50## make HELIX=oled,under helix:defualt
51## make HELIX=oled,back,na helix:defualt
52## make HELIX=oled,back,ios helix:defualt
53##
54ifneq ($(strip $(HELIX)),)
55 ifeq ($(findstring oled,$(HELIX)), oled)
56 OLED_ENABLE = yes
57 endif
58 ifeq ($(findstring back,$(HELIX)), back)
59 LED_BACK_ENABLE = yes
60 else ifeq ($(findstring under,$(HELIX)), under)
61 LED_UNDERGLOW_ENABLE = yes
62 endif
63 ifeq ($(findstring na,$(HELIX)), na)
64 LED_ANIMATIONS = no
65 endif
66 ifeq ($(findstring ios,$(HELIX)), ios)
67 IOS_DEVICE_ENABLE = yes
68 endif
69 $(eval $(call HELIX_CUSTOMISE_MSG))
70 $(info )
71endif
72
73# Uncomment these for checking
74# jp: コンパイル時にカスタマイズの状態を表示したい時はコメントをはずします。
75# $(eval $(call HELIX_CUSTOMISE_MSG))
76# $(info )
77
78ifneq ($(strip $(HELIX_ROWS)), 4)
79 ifneq ($(strip $(HELIX_ROWS)), 5)
80 $(error HELIX_ROWS = $(strip $(HELIX_ROWS)) is unexpected value)
81 endif
82endif
83OPT_DEFS += -DHELIX_ROWS=$(strip $(HELIX_ROWS))
84
85ifeq ($(strip $(LED_BACK_ENABLE)), yes)
86 RGBLIGHT_ENABLE = yes
87 OPT_DEFS += -DRGBLED_BACK
88 ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
89 $(eval $(call HELIX_CUSTOMISE_MSG))
90 $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
91 endif
92else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
93 RGBLIGHT_ENABLE = yes
94else
95 RGBLIGHT_ENABLE = no
96endif
97
98ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
99 OPT_DEFS += -DIOS_DEVICE_ENABLE
100endif
101
102ifeq ($(strip $(LED_ANIMATIONS)), yes)
103 OPT_DEFS += -DLED_ANIMATIONS
104endif
105
106ifeq ($(strip $(OLED_ENABLE)), yes)
107 OPT_DEFS += -DOLED_ENABLE
108endif
109
110ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
111 OPT_DEFS += -DLOCAL_GLCDFONT
112endif
113
114ifeq ($(strip $(Link_Time_Optimization)),yes)
115 EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
116endif
117
118# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
119SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
120
121# Uncomment these for debugging
122# $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
123# $(info -- OPT_DEFS=$(OPT_DEFS))
124# $(info )