浏览代码

Size fix for Hadron, take 2 (#4009)

* Add Link Time Optimization to reduce firmware size

* Disable Mousekeys on Hadron to save room
Drashna Jaelre 6 年之前
父节点
当前提交
20a10bd084
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      keyboards/hadron/keymaps/default/rules.mk
  2. 2 0
      keyboards/hadron/rules.mk

+ 1 - 1
keyboards/hadron/keymaps/default/rules.mk

@@ -5,7 +5,7 @@
 #   the appropriate keymap folder that will get included automatically
 #
 BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration(+1000)
-MOUSEKEY_ENABLE = yes      # Mouse keys(+4700)
+MOUSEKEY_ENABLE = no      # Mouse keys(+4700)
 EXTRAKEY_ENABLE = no       # Audio control and System control(+450)
 CONSOLE_ENABLE = no         # Console for debug(+400)
 COMMAND_ENABLE = no        # Commands for debug and configuration

+ 2 - 0
keyboards/hadron/rules.mk

@@ -71,3 +71,5 @@ SRC = i2c.c \
 	  ssd1306.c
 
 DEFAULT_FOLDER = hadron/ver2
+
+EXTRAFLAGS += -flto