summaryrefslogtreecommitdiff
path: root/keyboards/helix/rev2/keymaps/edvorakjp
diff options
context:
space:
mode:
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>2018-08-03 06:16:17 +0900
committerDrashna Jaelre <drashna@live.com>2018-08-02 14:16:17 -0700
commitb29799f8874a86d22b6eca4ce1352f394b276b7a (patch)
treef3203f1ad68e9f0ea19844a5315f886e93ce79f1 /keyboards/helix/rev2/keymaps/edvorakjp
parent0a005834624e9b3247bcd48fdc1790df8611ba86 (diff)
downloadqmk_firmware-b29799f8874a86d22b6eca4ce1352f394b276b7a.tar.gz
qmk_firmware-b29799f8874a86d22b6eca4ce1352f394b276b7a.zip
Keyboard: fixed build break (size overflow) HelixPico with Backlight or Underglow (#3546)
* build break fix for HelixPico * add customize variable 'Link_Time_Optimization' into rev2 and pico keymaps rules.mk * "CFLAGS += -flto" change to "EXTRAFLAGS += -flto" * add USE_Link_Time_Optimization macro
Diffstat (limited to 'keyboards/helix/rev2/keymaps/edvorakjp')
-rw-r--r--keyboards/helix/rev2/keymaps/edvorakjp/rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk b/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk
index d8fc35c486..67da9c370b 100644
--- a/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk
+++ b/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk
@@ -35,6 +35,7 @@ LED_BACK_ENABLE = no # 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)
+Link_Time_Optimization = no # if firmware size over limit, try this option
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
#### Do not enable these with audio at the same time.
@@ -113,6 +114,10 @@ ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
OPT_DEFS += -DLOCAL_GLCDFONT
endif
+ifeq ($(strip $(Link_Time_Optimization)),yes)
+ EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
+endif
+
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend