Skip to content

Commit

Permalink
[Keyboard] Helix use post_rules.mk (qmk#14216)
Browse files Browse the repository at this point in the history
* Helix/pico use post_rules.mk insted of local_features.mk

Tested with the following procedure.
```
git checkout 77a93fe (qmk/develop)
make clean
make helix/pico:all:check-md5
make helix/pico/sc:all:check-md5
git checkout helix_use_post_rules.mk
make clean
make helix/pico:all:check-md5
make helix/pico/sc:all:check-md5
```

* Helix/rev2 use post_rules.mk

Tested with the following procedure.
```
git checkout 77a93fe (qmk/develop)
make clean
make helix/pico:all:check-md5
make helix/pico/sc:all:check-md5
make helix/rev2:all:check-md5
make helix/rev2/sc:all:check-md5
git checkout helix_use_post_rules.mk
make clean
make helix/pico:all:check-md5
make helix/pico/sc:all:check-md5
make helix/rev2:all:check-md5
make helix/rev2/sc:all:check-md5
```
  • Loading branch information
mtei authored and ptrxyz committed Nov 6, 2021
1 parent e0571db commit 337588f
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 53 deletions.
4 changes: 0 additions & 4 deletions keyboards/helix/pico/keymaps/biacco/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ LTO_ENABLE = no # if firmware size over limit, try this option
# LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
LED_ANIMATIONS = no # LED animations
# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
4 changes: 0 additions & 4 deletions keyboards/helix/pico/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ LTO_ENABLE = no # if firmware size over limit, try this option
# LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
# LED_ANIMATIONS = yes # LED animations
# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
4 changes: 0 additions & 4 deletions keyboards/helix/pico/keymaps/mtei/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ LTO_ENABLE = no # if firmware size over limit, try this option
# LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
# LED_ANIMATIONS = yes # LED animations
# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#
# local_features.mk contains post-processing rules for the Helix keyboard.
# post_rules.mk contains post-processing rules for the Helix keyboard.
#
# Post-processing rules convert keyboard-specific shortcuts (that represent
# combinations of standard options) into QMK standard options.
#

KEYBOARD_LOCAL_FEATURES_MK :=

define HELIX_CUSTOMISE_MSG
$(info Helix Spacific Build Options)
$(info - OLED_ENABLE = $(OLED_ENABLE))
Expand Down
2 changes: 0 additions & 2 deletions keyboards/helix/pico/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
KEYBOARD_LOCAL_FEATURES_MK := $(dir $(lastword $(MAKEFILE_LIST)))local_features.mk

# Helix Spacific Build Options default values
OLED_ENABLE = no # OLED_ENABLE
LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
Expand Down
4 changes: 0 additions & 4 deletions keyboards/helix/rev2/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ OLED_SELECT = core
ifeq ($(strip $(OLED_ENABLE)), yes)
SRC += oled_display.c
endif

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
8 changes: 0 additions & 8 deletions keyboards/helix/rev2/keymaps/five_rows/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,3 @@ endif
ifeq ($(strip $(OLED_ENABLE)), yes)
SRC += oled_display.c
endif

ifeq ($(strip $(CUSTOM_DELAY)),yes)
SRC += matrix_output_unselect_delay.c
endif

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
4 changes: 0 additions & 4 deletions keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ HELIX_ROWS = 5 # Helix Rows is 4 or 5
# LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
# LED_ANIMATIONS = yes # LED animations
# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
4 changes: 0 additions & 4 deletions keyboards/helix/rev2/keymaps/fraanrosi/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,3 @@ LED_ANIMATIONS = yes # LED animations

LED_BACK_ENABLE = no
LED_UNDERGLOW_ENABLE = yes

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
4 changes: 0 additions & 4 deletions keyboards/helix/rev2/keymaps/froggy/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ LED_BACK_ENABLE = yes # LED backlight (Enable WS2812 RGB underlight.)
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
LED_ANIMATIONS = yes # LED animations
# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
4 changes: 0 additions & 4 deletions keyboards/helix/rev2/keymaps/froggy_106/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ LED_BACK_ENABLE = yes # LED backlight (Enable WS2812 RGB underlight.)
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
LED_ANIMATIONS = yes # LED animations
# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
4 changes: 0 additions & 4 deletions keyboards/helix/rev2/keymaps/led_test/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ ifeq ($(strip $(OLED_ENABLE)), yes)
SRC += oled_display.c
endif
SRC += led_test_init.c

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
4 changes: 0 additions & 4 deletions keyboards/helix/rev2/keymaps/yshrsmz/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ OLED_ENABLE = yes # OLED_ENABLE
# LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
LED_ANIMATIONS = no # LED animations
# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)

# convert Helix-specific options (that represent combinations of standard options)
# into QMK standard options.
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
3 changes: 3 additions & 0 deletions keyboards/helix/rev2/post_rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ifneq ($(strip $(KEYBOARD_LOCAL_FEATURES_MK)),)
include $(strip $(KEYBOARD_LOCAL_FEATURES_MK))
endif

0 comments on commit 337588f

Please sign in to comment.