aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/config_options.md4
-rw-r--r--docs/ja/config_options.md4
-rw-r--r--keyboards/1upkeyboards/sweet16/v1/rules.mk2
-rw-r--r--keyboards/1upkeyboards/sweet16/v2/promicro/rules.mk2
-rw-r--r--keyboards/bm60rgb/rules.mk2
-rw-r--r--keyboards/clueboard/66/keymaps/via/rules.mk2
-rw-r--r--keyboards/clueboard/card/rules.mk2
-rw-r--r--keyboards/converter/usb_usb/keymaps/chriskopher/rules.mk2
-rw-r--r--keyboards/crkbd/keymaps/ninjonas/rules.mk2
-rw-r--r--keyboards/crkbd/keymaps/rpbaptist/rules.mk2
-rw-r--r--keyboards/dz60/keymaps/via/rules.mk2
-rw-r--r--keyboards/dztech/dz60rgb/keymaps/xunz/rules.mk3
-rw-r--r--keyboards/dztech/dz65rgb/keymaps/chocol8/rules.mk3
-rw-r--r--keyboards/dztech/dz65rgb/keymaps/matthewrobo/rules.mk3
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/rules.mk2
-rw-r--r--keyboards/ergodox_ez/keymaps/nathanvercaemert/rules.mk2
-rw-r--r--keyboards/flx/virgo/rules.mk3
-rw-r--r--keyboards/gray_studio/think65/hotswap/rules.mk2
-rw-r--r--keyboards/gray_studio/think65/solder/rules.mk2
-rw-r--r--keyboards/handwired/promethium/rules.mk2
-rw-r--r--keyboards/helix/pico/keymaps/biacco/rules.mk2
-rw-r--r--keyboards/helix/pico/keymaps/default/rules.mk2
-rw-r--r--keyboards/helix/pico/keymaps/mtei/rules.mk2
-rw-r--r--keyboards/helix/pico/local_features.mk6
-rw-r--r--keyboards/helix/rev2/keymaps/default/rules.mk2
-rw-r--r--keyboards/helix/rev2/keymaps/edvorakjp/rules.mk2
-rw-r--r--keyboards/helix/rev2/keymaps/five_rows/rules.mk2
-rw-r--r--keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk2
-rw-r--r--keyboards/helix/rev2/keymaps/froggy/rules.mk2
-rw-r--r--keyboards/helix/rev2/keymaps/froggy_106/rules.mk2
-rw-r--r--keyboards/helix/rev2/keymaps/led_test/rules.mk2
-rw-r--r--keyboards/helix/rev2/keymaps/yshrsmz/rules.mk2
-rw-r--r--keyboards/helix/rev2/local_features.mk2
-rw-r--r--keyboards/hineybush/h88/rules.mk2
-rw-r--r--keyboards/hotdox/keymaps/ninjonas/rules.mk2
-rw-r--r--keyboards/id80/keymaps/via/rules.mk2
-rw-r--r--keyboards/kc60/keymaps/noroadsleft/rules.mk2
-rw-r--r--keyboards/keebio/bdn9/keymaps/via/rules.mk2
-rw-r--r--keyboards/keebio/iris/keymaps/pvinis/rules.mk2
-rw-r--r--keyboards/keebio/iris/keymaps/via/rules.mk2
-rw-r--r--keyboards/keebio/quefrency/keymaps/drashna_ms/rules.mk2
-rw-r--r--keyboards/keebio/quefrency/keymaps/via/rules.mk2
-rw-r--r--keyboards/kyria/keymaps/ninjonas/rules.mk4
-rw-r--r--keyboards/kyria/rules.mk2
-rw-r--r--keyboards/launchpad/keymaps/via/rules.mk2
-rw-r--r--keyboards/lily58/keymaps/ninjonas/rules.mk2
-rw-r--r--keyboards/pinky/3/keymaps/ninjonas/rules.mk2
-rw-r--r--keyboards/planck/keymaps/oryx/rules.mk2
-rw-r--r--keyboards/planck/keymaps/sascha/rules.mk2
-rw-r--r--keyboards/planck/keymaps/tylerwince/rules.mk2
-rw-r--r--keyboards/preonic/rev1/rules.mk2
-rw-r--r--keyboards/preonic/rev2/rules.mk2
-rw-r--r--keyboards/rgbkb/sol/keymaps/kageurufu/rules.mk3
-rw-r--r--keyboards/rgbkb/sol/rev2/rules.mk2
-rw-r--r--keyboards/rgbkb/zygomorph/keymaps/5x6pad/rules.mk2
-rw-r--r--keyboards/rgbkb/zygomorph/keymaps/default/rules.mk2
-rw-r--r--keyboards/rgbkb/zygomorph/keymaps/default_oled/rules.mk2
-rw-r--r--keyboards/rgbkb/zygomorph/keymaps/xulkal/rules.mk2
-rw-r--r--keyboards/tg4x/rules.mk2
-rw-r--r--keyboards/tkc/candybar/lefty/rules.mk2
-rw-r--r--keyboards/tkc/candybar/righty/rules.mk2
-rw-r--r--keyboards/v60_type_r/rules.mk2
-rw-r--r--keyboards/vitamins_included/rules.mk2
-rw-r--r--keyboards/xd004/v1/config.h2
-rw-r--r--keyboards/xd004/v1/rules.mk2
-rw-r--r--keyboards/xd84/rules.mk2
-rw-r--r--keyboards/xd96/rules.mk2
-rw-r--r--keyboards/yushakobo/quick7/config.h2
-rw-r--r--show_options.mk3
-rw-r--r--tmk_core/common.mk9
-rw-r--r--tmk_core/common/action.h2
-rw-r--r--tmk_core/common/command.c2
-rw-r--r--users/bcat/rules.mk2
-rw-r--r--users/dshields/rules.mk3
-rw-r--r--users/issmirnov/rules.mk2
-rw-r--r--users/kuchosauronad0/rules.mk4
-rw-r--r--users/pvinis/rules.mk2
-rw-r--r--users/yanfali/rules.mk2
-rw-r--r--users/yet-another-developer/rules.mk2
79 files changed, 85 insertions, 99 deletions
diff --git a/docs/config_options.md b/docs/config_options.md
index 81a3b4b61..a323741c2 100644
--- a/docs/config_options.md
+++ b/docs/config_options.md
@@ -324,11 +324,9 @@ This is a [make](https://www.gnu.org/software/make/manual/make.html) file that i
324 ``` 324 ```
325* `LAYOUTS` 325* `LAYOUTS`
326 * A list of [layouts](feature_layouts.md) this keyboard supports. 326 * A list of [layouts](feature_layouts.md) this keyboard supports.
327* `LINK_TIME_OPTIMIZATION_ENABLE` 327* `LTO_ENABLE`
328 * Enables Link Time Optimization (LTO) when compiling the keyboard. This makes the process take longer, but it can significantly reduce the compiled size (and since the firmware is small, the added time is not noticeable). 328 * Enables Link Time Optimization (LTO) when compiling the keyboard. This makes the process take longer, but it can significantly reduce the compiled size (and since the firmware is small, the added time is not noticeable).
329However, this will automatically disable the legacy TMK Macros and Functions features, as these break when LTO is enabled. It does this by automatically defining `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION`. (Note: This does not affect QMK [Macros](feature_macros.md) and [Layers](feature_layers.md).) 329However, this will automatically disable the legacy TMK Macros and Functions features, as these break when LTO is enabled. It does this by automatically defining `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION`. (Note: This does not affect QMK [Macros](feature_macros.md) and [Layers](feature_layers.md).)
330* `LTO_ENABLE`
331 * Has the same meaning as `LINK_TIME_OPTIMIZATION_ENABLE`. You can use `LTO_ENABLE` instead of `LINK_TIME_OPTIMIZATION_ENABLE`.
332 330
333## AVR MCU Options 331## AVR MCU Options
334* `MCU = atmega32u4` 332* `MCU = atmega32u4`
diff --git a/docs/ja/config_options.md b/docs/ja/config_options.md
index b4cf3c888..6ba7f6f1f 100644
--- a/docs/ja/config_options.md
+++ b/docs/ja/config_options.md
@@ -322,11 +322,9 @@ QMK での全ての利用可能な設定にはデフォルトがあります。
322 ``` 322 ```
323* `LAYOUTS` 323* `LAYOUTS`
324 * このキーボードがサポートする[レイアウト](ja/feature_layouts.md)のリスト 324 * このキーボードがサポートする[レイアウト](ja/feature_layouts.md)のリスト
325* `LINK_TIME_OPTIMIZATION_ENABLE` 325* `LTO_ENABLE`
326 * キーボードをコンパイルする時に、Link Time Optimization (LTO) を有効にします。これは処理に時間が掛かりますが、コンパイルされたサイズを大幅に減らします (そして、ファームウェアが小さいため、追加の時間は分からないくらいです)。 326 * キーボードをコンパイルする時に、Link Time Optimization (LTO) を有効にします。これは処理に時間が掛かりますが、コンパイルされたサイズを大幅に減らします (そして、ファームウェアが小さいため、追加の時間は分からないくらいです)。
327ただし、LTO が有効な場合、古い TMK のマクロと関数の機能が壊れるため、自動的にこれらの機能を無効にします。これは `NO_ACTION_MACRO` と `NO_ACTION_FUNCTION` を自動的に定義することで行われます。(メモ: これは QMK の [マクロ](ja/feature_macros.md) と [レイヤー](ja/feature_layers.md) には影響を与えません。) 327ただし、LTO が有効な場合、古い TMK のマクロと関数の機能が壊れるため、自動的にこれらの機能を無効にします。これは `NO_ACTION_MACRO` と `NO_ACTION_FUNCTION` を自動的に定義することで行われます。(メモ: これは QMK の [マクロ](ja/feature_macros.md) と [レイヤー](ja/feature_layers.md) には影響を与えません。)
328* `LTO_ENABLE`
329 * LINK_TIME_OPTIMIZATION_ENABLE と同じ意味です。`LINK_TIME_OPTIMIZATION_ENABLE` の代わりに `LTO_ENABLE` を使うことができます。
330 328
331## AVR MCU オプション 329## AVR MCU オプション
332* `MCU = atmega32u4` 330* `MCU = atmega32u4`
diff --git a/keyboards/1upkeyboards/sweet16/v1/rules.mk b/keyboards/1upkeyboards/sweet16/v1/rules.mk
index 09bd9e9e2..4c4280cdd 100644
--- a/keyboards/1upkeyboards/sweet16/v1/rules.mk
+++ b/keyboards/1upkeyboards/sweet16/v1/rules.mk
@@ -14,4 +14,4 @@ BOOTLOADER = caterina
14RGBLIGHT_ENABLE = yes 14RGBLIGHT_ENABLE = yes
15BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 15BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
16 16
17LINK_TIME_OPTIMIZATION_ENABLE = yes 17LTO_ENABLE = yes
diff --git a/keyboards/1upkeyboards/sweet16/v2/promicro/rules.mk b/keyboards/1upkeyboards/sweet16/v2/promicro/rules.mk
index 9f38504a8..16510f767 100644
--- a/keyboards/1upkeyboards/sweet16/v2/promicro/rules.mk
+++ b/keyboards/1upkeyboards/sweet16/v2/promicro/rules.mk
@@ -18,4 +18,4 @@ CONSOLE_ENABLE = yes
18RGBLIGHT_ENABLE = no 18RGBLIGHT_ENABLE = no
19ENCODER_ENABLE = yes 19ENCODER_ENABLE = yes
20 20
21LINK_TIME_OPTIMIZATION_ENABLE = yes 21LTO_ENABLE = yes
diff --git a/keyboards/bm60rgb/rules.mk b/keyboards/bm60rgb/rules.mk
index 72bfd539d..d888399cf 100644
--- a/keyboards/bm60rgb/rules.mk
+++ b/keyboards/bm60rgb/rules.mk
@@ -31,7 +31,7 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
31AUDIO_ENABLE = no # Audio output on port C6 31AUDIO_ENABLE = no # Audio output on port C6
32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
33RGB_MATRIX_ENABLE = WS2812 33RGB_MATRIX_ENABLE = WS2812
34LINK_TIME_OPTIMIZATION_ENABLE = yes 34LTO_ENABLE = yes
35 35
36# partially generated by KBFirmware JSON to QMK Parser 36# partially generated by KBFirmware JSON to QMK Parser
37# https://noroadsleft.github.io/kbf_qmk_converter/ 37# https://noroadsleft.github.io/kbf_qmk_converter/
diff --git a/keyboards/clueboard/66/keymaps/via/rules.mk b/keyboards/clueboard/66/keymaps/via/rules.mk
index e85bff468..7a4971950 100644
--- a/keyboards/clueboard/66/keymaps/via/rules.mk
+++ b/keyboards/clueboard/66/keymaps/via/rules.mk
@@ -1,4 +1,4 @@
1# rules.mk overrides to enable VIA 1# rules.mk overrides to enable VIA
2 2
3VIA_ENABLE = yes 3VIA_ENABLE = yes
4LINK_TIME_OPTIMIZATION_ENABLE = yes \ No newline at end of file 4LTO_ENABLE = yes
diff --git a/keyboards/clueboard/card/rules.mk b/keyboards/clueboard/card/rules.mk
index 37d1d866e..a1b003f29 100644
--- a/keyboards/clueboard/card/rules.mk
+++ b/keyboards/clueboard/card/rules.mk
@@ -26,4 +26,4 @@ UNICODE_ENABLE = no # Unicode
26BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 26BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
27AUDIO_ENABLE = yes # Audio output on port C6 27AUDIO_ENABLE = yes # Audio output on port C6
28 28
29LINK_TIME_OPTIMIZATION_ENABLE = yes 29LTO_ENABLE = yes
diff --git a/keyboards/converter/usb_usb/keymaps/chriskopher/rules.mk b/keyboards/converter/usb_usb/keymaps/chriskopher/rules.mk
index d80022853..643e1d013 100644
--- a/keyboards/converter/usb_usb/keymaps/chriskopher/rules.mk
+++ b/keyboards/converter/usb_usb/keymaps/chriskopher/rules.mk
@@ -19,6 +19,6 @@ EXTRAKEY_ENABLE = yes # Used for audio control and system control keys
19COMBO_ENABLE = yes # Used to allow chording of keys to trigger an action 19COMBO_ENABLE = yes # Used to allow chording of keys to trigger an action
20TAP_DANCE_ENABLE = yes # Used to allow multiple taps of a key to perform different actions 20TAP_DANCE_ENABLE = yes # Used to allow multiple taps of a key to perform different actions
21 21
22LINK_TIME_OPTIMIZATION_ENABLE = yes # Reduces the compiled firmware size 22LTO_ENABLE = yes # Reduces the compiled firmware size
23 23
24SRC += combo.c tap_dance.c 24SRC += combo.c tap_dance.c
diff --git a/keyboards/crkbd/keymaps/ninjonas/rules.mk b/keyboards/crkbd/keymaps/ninjonas/rules.mk
index 95cc3fed3..0c7fb3afc 100644
--- a/keyboards/crkbd/keymaps/ninjonas/rules.mk
+++ b/keyboards/crkbd/keymaps/ninjonas/rules.mk
@@ -1,7 +1,7 @@
1RGB_MATRIX_ENABLE = WS2812 1RGB_MATRIX_ENABLE = WS2812
2MOUSEKEY_ENABLE = no 2MOUSEKEY_ENABLE = no
3OLED_DRIVER_ENABLE = yes 3OLED_DRIVER_ENABLE = yes
4LINK_TIME_OPTIMIZATION_ENABLE = yes 4LTO_ENABLE = yes
5 5
6# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 6# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
7SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 7SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/crkbd/keymaps/rpbaptist/rules.mk b/keyboards/crkbd/keymaps/rpbaptist/rules.mk
index d9e8b701e..dedd5753e 100644
--- a/keyboards/crkbd/keymaps/rpbaptist/rules.mk
+++ b/keyboards/crkbd/keymaps/rpbaptist/rules.mk
@@ -1,5 +1,5 @@
1#This enables Link Time Optimization.This can save a good chunk of space(several KB for me), but the macro and function... functions cause it to error out. 1#This enables Link Time Optimization.This can save a good chunk of space(several KB for me), but the macro and function... functions cause it to error out.
2LINK_TIME_OPTIMIZATION_ENABLE = yes 2LTO_ENABLE = yes
3 3
4#Build Options 4#Build Options
5#change to "no" to disable the options, or define them in the Makefile in 5#change to "no" to disable the options, or define them in the Makefile in
diff --git a/keyboards/dz60/keymaps/via/rules.mk b/keyboards/dz60/keymaps/via/rules.mk
index ea9a831e1..ca9fed0e6 100644
--- a/keyboards/dz60/keymaps/via/rules.mk
+++ b/keyboards/dz60/keymaps/via/rules.mk
@@ -1,2 +1,2 @@
1LINK_TIME_OPTIMIZATION_ENABLE = yes 1LTO_ENABLE = yes
2VIA_ENABLE = yes 2VIA_ENABLE = yes
diff --git a/keyboards/dztech/dz60rgb/keymaps/xunz/rules.mk b/keyboards/dztech/dz60rgb/keymaps/xunz/rules.mk
index 7a77be493..d12c8dc44 100644
--- a/keyboards/dztech/dz60rgb/keymaps/xunz/rules.mk
+++ b/keyboards/dztech/dz60rgb/keymaps/xunz/rules.mk
@@ -1,5 +1,4 @@
1NKRO_ENABLE = yes # USB Nkey Rollover 1NKRO_ENABLE = yes # USB Nkey Rollover
2# VELOCIKEY_ENABLE = yes 2# VELOCIKEY_ENABLE = yes
3 3
4LINK_TIME_OPTIMIZATION_ENABLE = yes 4LTO_ENABLE = yes
5
diff --git a/keyboards/dztech/dz65rgb/keymaps/chocol8/rules.mk b/keyboards/dztech/dz65rgb/keymaps/chocol8/rules.mk
index 626329f81..1778a5e14 100644
--- a/keyboards/dztech/dz65rgb/keymaps/chocol8/rules.mk
+++ b/keyboards/dztech/dz65rgb/keymaps/chocol8/rules.mk
@@ -2,5 +2,4 @@ NKRO_ENABLE = yes # USB Nkey Rollover
2VELOCIKEY_ENABLE = yes 2VELOCIKEY_ENABLE = yes
3# AUTO_SHIFT_ENABLE = yes # Auto Shift 3# AUTO_SHIFT_ENABLE = yes # Auto Shift
4 4
5LINK_TIME_OPTIMIZATION_ENABLE = yes 5LTO_ENABLE = yes
6
diff --git a/keyboards/dztech/dz65rgb/keymaps/matthewrobo/rules.mk b/keyboards/dztech/dz65rgb/keymaps/matthewrobo/rules.mk
index 9a75bb29d..29afe8cd0 100644
--- a/keyboards/dztech/dz65rgb/keymaps/matthewrobo/rules.mk
+++ b/keyboards/dztech/dz65rgb/keymaps/matthewrobo/rules.mk
@@ -2,5 +2,4 @@ NKRO_ENABLE = yes # USB Nkey Rollover
2AUTO_SHIFT_ENABLE = yes # Auto Shift 2AUTO_SHIFT_ENABLE = yes # Auto Shift
3# VELOCIKEY_ENABLE = yes 3# VELOCIKEY_ENABLE = yes
4 4
5LINK_TIME_OPTIMIZATION_ENABLE = yes 5LTO_ENABLE = yes
6
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/rules.mk b/keyboards/ergodox_ez/keymaps/hacker_dvorak/rules.mk
index aa13f98bd..2eda18ce4 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/rules.mk
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/rules.mk
@@ -1,7 +1,7 @@
1# Set any rules.mk overrides for your specific keymap here. 1# Set any rules.mk overrides for your specific keymap here.
2# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file 2# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file
3 3
4LINK_TIME_OPTIMIZATION_ENABLE = yes 4LTO_ENABLE = yes
5NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 5NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
6TAP_DANCE_ENABLE = yes 6TAP_DANCE_ENABLE = yes
7MOUSEKEY_ENABLE = yes # Mouse keys(+4700b). 7MOUSEKEY_ENABLE = yes # Mouse keys(+4700b).
diff --git a/keyboards/ergodox_ez/keymaps/nathanvercaemert/rules.mk b/keyboards/ergodox_ez/keymaps/nathanvercaemert/rules.mk
index b41c275dd..31c3fe3c7 100644
--- a/keyboards/ergodox_ez/keymaps/nathanvercaemert/rules.mk
+++ b/keyboards/ergodox_ez/keymaps/nathanvercaemert/rules.mk
@@ -1,6 +1,6 @@
1# Set any rules.mk overrides for your specific keymap here. 1# Set any rules.mk overrides for your specific keymap here.
2# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file 2# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file
3LINK_TIME_OPTIMIZATION_ENABLE = yes 3LTO_ENABLE = yes
4COMMAND_ENABLE = no 4COMMAND_ENABLE = no
5RGBLIGHT_ENABLE = no 5RGBLIGHT_ENABLE = no
6TAP_DANCE_ENABLE=yes 6TAP_DANCE_ENABLE=yes
diff --git a/keyboards/flx/virgo/rules.mk b/keyboards/flx/virgo/rules.mk
index 529d365b5..cbf45a2b9 100644
--- a/keyboards/flx/virgo/rules.mk
+++ b/keyboards/flx/virgo/rules.mk
@@ -30,5 +30,4 @@ UNICODE_ENABLE = no # Unicode
30BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 30BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
31AUDIO_ENABLE = no # Audio output on port C6 31AUDIO_ENABLE = no # Audio output on port C6
32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
33LINK_TIME_OPTIMIZATION_ENABLE = yes 33LTO_ENABLE = yes
34
diff --git a/keyboards/gray_studio/think65/hotswap/rules.mk b/keyboards/gray_studio/think65/hotswap/rules.mk
index 2d789ff59..5f85ff18a 100644
--- a/keyboards/gray_studio/think65/hotswap/rules.mk
+++ b/keyboards/gray_studio/think65/hotswap/rules.mk
@@ -32,7 +32,7 @@ AUDIO_ENABLE = no # Audio output on port C6
32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
33HD44780_ENABLE = no # Enable support for HD44780 based LCDs 33HD44780_ENABLE = no # Enable support for HD44780 based LCDs
34 34
35LINK_TIME_OPTIMIZATION_ENABLE = yes 35LTO_ENABLE = yes
36 36
37LAYOUTS = 65_ansi_blocker 37LAYOUTS = 65_ansi_blocker
38 38
diff --git a/keyboards/gray_studio/think65/solder/rules.mk b/keyboards/gray_studio/think65/solder/rules.mk
index 2d789ff59..5f85ff18a 100644
--- a/keyboards/gray_studio/think65/solder/rules.mk
+++ b/keyboards/gray_studio/think65/solder/rules.mk
@@ -32,7 +32,7 @@ AUDIO_ENABLE = no # Audio output on port C6
32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
33HD44780_ENABLE = no # Enable support for HD44780 based LCDs 33HD44780_ENABLE = no # Enable support for HD44780 based LCDs
34 34
35LINK_TIME_OPTIMIZATION_ENABLE = yes 35LTO_ENABLE = yes
36 36
37LAYOUTS = 65_ansi_blocker 37LAYOUTS = 65_ansi_blocker
38 38
diff --git a/keyboards/handwired/promethium/rules.mk b/keyboards/handwired/promethium/rules.mk
index 19d20ee03..4b96e2f69 100644
--- a/keyboards/handwired/promethium/rules.mk
+++ b/keyboards/handwired/promethium/rules.mk
@@ -45,4 +45,4 @@ SRC += rgbsps.c
45SRC += analog.c 45SRC += analog.c
46SRC += matrix.c 46SRC += matrix.c
47 47
48LINK_TIME_OPTIMIZATION_ENABLE = yes 48LTO_ENABLE = yes
diff --git a/keyboards/helix/pico/keymaps/biacco/rules.mk b/keyboards/helix/pico/keymaps/biacco/rules.mk
index 0c60c40f6..37e49977c 100644
--- a/keyboards/helix/pico/keymaps/biacco/rules.mk
+++ b/keyboards/helix/pico/keymaps/biacco/rules.mk
@@ -7,7 +7,7 @@
7# 7#
8EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 8EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
9AUDIO_ENABLE = yes # Audio output on port B5 9AUDIO_ENABLE = yes # Audio output on port B5
10LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 10LTO_ENABLE = no # if firmware size over limit, try this option
11 11
12# Helix Spacific Build Options 12# Helix Spacific Build Options
13# you can uncomment and edit follows 6 Variables 13# you can uncomment and edit follows 6 Variables
diff --git a/keyboards/helix/pico/keymaps/default/rules.mk b/keyboards/helix/pico/keymaps/default/rules.mk
index c08445732..8f198e380 100644
--- a/keyboards/helix/pico/keymaps/default/rules.mk
+++ b/keyboards/helix/pico/keymaps/default/rules.mk
@@ -7,7 +7,7 @@
7# 7#
8EXTRAKEY_ENABLE = yes # Audio control and System control 8EXTRAKEY_ENABLE = yes # Audio control and System control
9AUDIO_ENABLE = yes # Audio output on port B5 9AUDIO_ENABLE = yes # Audio output on port B5
10LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 10LTO_ENABLE = no # if firmware size over limit, try this option
11 11
12# Helix Spacific Build Options 12# Helix Spacific Build Options
13# you can uncomment and edit follows 6 Variables 13# you can uncomment and edit follows 6 Variables
diff --git a/keyboards/helix/pico/keymaps/mtei/rules.mk b/keyboards/helix/pico/keymaps/mtei/rules.mk
index 764b07300..165233f5f 100644
--- a/keyboards/helix/pico/keymaps/mtei/rules.mk
+++ b/keyboards/helix/pico/keymaps/mtei/rules.mk
@@ -7,7 +7,7 @@
7# 7#
8EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 8EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
9AUDIO_ENABLE = yes # Audio output on port B5 9AUDIO_ENABLE = yes # Audio output on port B5
10LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 10LTO_ENABLE = no # if firmware size over limit, try this option
11 11
12# Helix Spacific Build Options 12# Helix Spacific Build Options
13# you can uncomment and edit follows 6 Variables 13# you can uncomment and edit follows 6 Variables
diff --git a/keyboards/helix/pico/local_features.mk b/keyboards/helix/pico/local_features.mk
index 0277a3d22..a98444686 100644
--- a/keyboards/helix/pico/local_features.mk
+++ b/keyboards/helix/pico/local_features.mk
@@ -106,10 +106,10 @@ endif
106 106
107ifeq ($(strip $(AUDIO_ENABLE)),yes) 107ifeq ($(strip $(AUDIO_ENABLE)),yes)
108 ifeq ($(strip $(RGBLIGHT_ENABLE)),yes) 108 ifeq ($(strip $(RGBLIGHT_ENABLE)),yes)
109 LINK_TIME_OPTIMIZATION_ENABLE = yes 109 LTO_ENABLE = yes
110 endif 110 endif
111 ifeq ($(strip $(OLED_ENABLE)),yes) 111 ifeq ($(strip $(OLED_ENABLE)),yes)
112 LINK_TIME_OPTIMIZATION_ENABLE = yes 112 LTO_ENABLE = yes
113 endif 113 endif
114endif 114endif
115 115
@@ -120,7 +120,7 @@ ifneq ($(strip $(SHOW_HELIX_OPTIONS)),)
120 $(info -- OLED_DRIVER_ENABLE = $(OLED_DRIVER_ENABLE)) 120 $(info -- OLED_DRIVER_ENABLE = $(OLED_DRIVER_ENABLE))
121 $(info -- CONSOLE_ENABLE = $(CONSOLE_ENABLE)) 121 $(info -- CONSOLE_ENABLE = $(CONSOLE_ENABLE))
122 $(info -- OPT_DEFS = $(OPT_DEFS)) 122 $(info -- OPT_DEFS = $(OPT_DEFS))
123 $(info -- LINK_TIME_OPTIMIZATION_ENABLE = $(LINK_TIME_OPTIMIZATION_ENABLE)) 123 $(info -- LTO_ENABLE = $(LTO_ENABLE))
124 $(info ) 124 $(info )
125 endif 125 endif
126endif 126endif
diff --git a/keyboards/helix/rev2/keymaps/default/rules.mk b/keyboards/helix/rev2/keymaps/default/rules.mk
index 6a42fcf73..9801648de 100644
--- a/keyboards/helix/rev2/keymaps/default/rules.mk
+++ b/keyboards/helix/rev2/keymaps/default/rules.mk
@@ -5,7 +5,7 @@
5# See TOP/keyboards/helix/rules.mk for a list of options that can be set. 5# See TOP/keyboards/helix/rules.mk for a list of options that can be set.
6# See TOP/docs/config_options.md for more information. 6# See TOP/docs/config_options.md for more information.
7# 7#
8LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 8LTO_ENABLE = no # if firmware size over limit, try this option
9 9
10# Helix Spacific Build Options 10# Helix Spacific Build Options
11# you can uncomment and edit follows 7 Variables 11# you can uncomment and edit follows 7 Variables
diff --git a/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk b/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk
index e30690029..18bef6bf7 100644
--- a/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk
+++ b/keyboards/helix/rev2/keymaps/edvorakjp/rules.mk
@@ -5,7 +5,7 @@
5# See TOP/keyboards/helix/rules.mk for a list of options that can be set. 5# See TOP/keyboards/helix/rules.mk for a list of options that can be set.
6# See TOP/docs/config_options.md for more information. 6# See TOP/docs/config_options.md for more information.
7# 7#
8LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 8LTO_ENABLE = no # if firmware size over limit, try this option
9TAP_DANCE_ENABLE = yes 9TAP_DANCE_ENABLE = yes
10 10
11# Helix Spacific Build Options 11# Helix Spacific Build Options
diff --git a/keyboards/helix/rev2/keymaps/five_rows/rules.mk b/keyboards/helix/rev2/keymaps/five_rows/rules.mk
index fb564b6e0..8c4239deb 100644
--- a/keyboards/helix/rev2/keymaps/five_rows/rules.mk
+++ b/keyboards/helix/rev2/keymaps/five_rows/rules.mk
@@ -11,7 +11,7 @@
11 # yes, no +1500 11 # yes, no +1500
12 # yes, yes +3200 12 # yes, yes +3200
13 # no, yes +400 13 # no, yes +400
14LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 14LTO_ENABLE = no # if firmware size over limit, try this option
15 15
16# Helix Spacific Build Options 16# Helix Spacific Build Options
17# you can uncomment and edit follows 7 Variables 17# you can uncomment and edit follows 7 Variables
diff --git a/keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk b/keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk
index 6c2057cfd..d44382f86 100644
--- a/keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk
+++ b/keyboards/helix/rev2/keymaps/five_rows_jis/rules.mk
@@ -5,7 +5,7 @@
5# See TOP/keyboards/helix/rules.mk for a list of options that can be set. 5# See TOP/keyboards/helix/rules.mk for a list of options that can be set.
6# See TOP/docs/config_options.md for more information. 6# See TOP/docs/config_options.md for more information.
7# 7#
8LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 8LTO_ENABLE = no # if firmware size over limit, try this option
9 9
10# Helix Spacific Build Options 10# Helix Spacific Build Options
11# you can uncomment and edit follows 7 Variables 11# you can uncomment and edit follows 7 Variables
diff --git a/keyboards/helix/rev2/keymaps/froggy/rules.mk b/keyboards/helix/rev2/keymaps/froggy/rules.mk
index bea059ca1..5a0fd9a2b 100644
--- a/keyboards/helix/rev2/keymaps/froggy/rules.mk
+++ b/keyboards/helix/rev2/keymaps/froggy/rules.mk
@@ -5,7 +5,7 @@
5# See TOP/keyboards/helix/rules.mk for a list of options that can be set. 5# See TOP/keyboards/helix/rules.mk for a list of options that can be set.
6# See TOP/docs/config_options.md for more information. 6# See TOP/docs/config_options.md for more information.
7# 7#
8LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 8LTO_ENABLE = no # if firmware size over limit, try this option
9 9
10# Helix Spacific Build Options 10# Helix Spacific Build Options
11# you can uncomment and edit follows 7 Variables 11# you can uncomment and edit follows 7 Variables
diff --git a/keyboards/helix/rev2/keymaps/froggy_106/rules.mk b/keyboards/helix/rev2/keymaps/froggy_106/rules.mk
index bea059ca1..5a0fd9a2b 100644
--- a/keyboards/helix/rev2/keymaps/froggy_106/rules.mk
+++ b/keyboards/helix/rev2/keymaps/froggy_106/rules.mk
@@ -5,7 +5,7 @@
5# See TOP/keyboards/helix/rules.mk for a list of options that can be set. 5# See TOP/keyboards/helix/rules.mk for a list of options that can be set.
6# See TOP/docs/config_options.md for more information. 6# See TOP/docs/config_options.md for more information.
7# 7#
8LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 8LTO_ENABLE = no # if firmware size over limit, try this option
9 9
10# Helix Spacific Build Options 10# Helix Spacific Build Options
11# you can uncomment and edit follows 7 Variables 11# you can uncomment and edit follows 7 Variables
diff --git a/keyboards/helix/rev2/keymaps/led_test/rules.mk b/keyboards/helix/rev2/keymaps/led_test/rules.mk
index fb0b5a547..013ef1482 100644
--- a/keyboards/helix/rev2/keymaps/led_test/rules.mk
+++ b/keyboards/helix/rev2/keymaps/led_test/rules.mk
@@ -5,7 +5,7 @@
5# See TOP/keyboards/helix/rules.mk for a list of options that can be set. 5# See TOP/keyboards/helix/rules.mk for a list of options that can be set.
6# See TOP/docs/config_options.md for more information. 6# See TOP/docs/config_options.md for more information.
7# 7#
8LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 8LTO_ENABLE = no # if firmware size over limit, try this option
9 9
10# Helix Spacific Build Options 10# Helix Spacific Build Options
11# you can uncomment and edit follows 7 Variables 11# you can uncomment and edit follows 7 Variables
diff --git a/keyboards/helix/rev2/keymaps/yshrsmz/rules.mk b/keyboards/helix/rev2/keymaps/yshrsmz/rules.mk
index 13d809931..83dcc9b3b 100644
--- a/keyboards/helix/rev2/keymaps/yshrsmz/rules.mk
+++ b/keyboards/helix/rev2/keymaps/yshrsmz/rules.mk
@@ -5,7 +5,7 @@
5# See TOP/keyboards/helix/rules.mk for a list of options that can be set. 5# See TOP/keyboards/helix/rules.mk for a list of options that can be set.
6# See TOP/docs/config_options.md for more information. 6# See TOP/docs/config_options.md for more information.
7# 7#
8LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option 8LTO_ENABLE = no # if firmware size over limit, try this option
9 9
10# Helix Spacific Build Options 10# Helix Spacific Build Options
11# you can uncomment and edit follows 7 Variables 11# you can uncomment and edit follows 7 Variables
diff --git a/keyboards/helix/rev2/local_features.mk b/keyboards/helix/rev2/local_features.mk
index 4b120936d..3f8a7216f 100644
--- a/keyboards/helix/rev2/local_features.mk
+++ b/keyboards/helix/rev2/local_features.mk
@@ -119,7 +119,7 @@ ifneq ($(strip $(SHOW_HELIX_OPTIONS)),)
119 $(info -- OLED_DRIVER_ENABLE = $(OLED_DRIVER_ENABLE)) 119 $(info -- OLED_DRIVER_ENABLE = $(OLED_DRIVER_ENABLE))
120 $(info -- CONSOLE_ENABLE = $(CONSOLE_ENABLE)) 120 $(info -- CONSOLE_ENABLE = $(CONSOLE_ENABLE))
121 $(info -- OPT_DEFS = $(OPT_DEFS)) 121 $(info -- OPT_DEFS = $(OPT_DEFS))
122 $(info -- LINK_TIME_OPTIMIZATION_ENABLE = $(LINK_TIME_OPTIMIZATION_ENABLE)) 122 $(info -- LTO_ENABLE = $(LTO_ENABLE))
123 $(info ) 123 $(info )
124 endif 124 endif
125endif 125endif
diff --git a/keyboards/hineybush/h88/rules.mk b/keyboards/hineybush/h88/rules.mk
index f39537546..3d7de2731 100644
--- a/keyboards/hineybush/h88/rules.mk
+++ b/keyboards/hineybush/h88/rules.mk
@@ -30,4 +30,4 @@ UNICODE_ENABLE = no # Unicode
30BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 30BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
31AUDIO_ENABLE = no # Audio output on port C6 31AUDIO_ENABLE = no # Audio output on port C6
32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
33LINK_TIME_OPTIMIZATION_ENABLE = yes 33LTO_ENABLE = yes
diff --git a/keyboards/hotdox/keymaps/ninjonas/rules.mk b/keyboards/hotdox/keymaps/ninjonas/rules.mk
index 3ec5fb062..4da205a16 100644
--- a/keyboards/hotdox/keymaps/ninjonas/rules.mk
+++ b/keyboards/hotdox/keymaps/ninjonas/rules.mk
@@ -1 +1 @@
LINK_TIME_OPTIMIZATION_ENABLE = yes \ No newline at end of file LTO_ENABLE = yes
diff --git a/keyboards/id80/keymaps/via/rules.mk b/keyboards/id80/keymaps/via/rules.mk
index ea9a831e1..ca9fed0e6 100644
--- a/keyboards/id80/keymaps/via/rules.mk
+++ b/keyboards/id80/keymaps/via/rules.mk
@@ -1,2 +1,2 @@
1LINK_TIME_OPTIMIZATION_ENABLE = yes 1LTO_ENABLE = yes
2VIA_ENABLE = yes 2VIA_ENABLE = yes
diff --git a/keyboards/kc60/keymaps/noroadsleft/rules.mk b/keyboards/kc60/keymaps/noroadsleft/rules.mk
index c9805878d..2eab7943d 100644
--- a/keyboards/kc60/keymaps/noroadsleft/rules.mk
+++ b/keyboards/kc60/keymaps/noroadsleft/rules.mk
@@ -1,6 +1,6 @@
1# https://github.com/qmk/qmk_firmware/issues/3448#issuecomment-406636125 1# https://github.com/qmk/qmk_firmware/issues/3448#issuecomment-406636125
2# EXTRAFLAGS += -flto 2# EXTRAFLAGS += -flto
3LINK_TIME_OPTIMIZATION_ENABLE = yes 3LTO_ENABLE = yes
4 4
5MOUSEKEY_ENABLE = no # Mouse keys 5MOUSEKEY_ENABLE = no # Mouse keys
6# COMMAND_ENABLE = no # Commands for debug and configuration 6# COMMAND_ENABLE = no # Commands for debug and configuration
diff --git a/keyboards/keebio/bdn9/keymaps/via/rules.mk b/keyboards/keebio/bdn9/keymaps/via/rules.mk
index aa554ae29..d96967a60 100644
--- a/keyboards/keebio/bdn9/keymaps/via/rules.mk
+++ b/keyboards/keebio/bdn9/keymaps/via/rules.mk
@@ -1,5 +1,5 @@
1VIA_ENABLE = yes 1VIA_ENABLE = yes
2LINK_TIME_OPTIMIZATION_ENABLE = yes 2LTO_ENABLE = yes
3MOUSEKEY_ENABLE = yes 3MOUSEKEY_ENABLE = yes
4CONSOLE_ENABLE = yes 4CONSOLE_ENABLE = yes
5COMMAND_ENABLE = no 5COMMAND_ENABLE = no
diff --git a/keyboards/keebio/iris/keymaps/pvinis/rules.mk b/keyboards/keebio/iris/keymaps/pvinis/rules.mk
index deeb31203..1e7e2d417 100644
--- a/keyboards/keebio/iris/keymaps/pvinis/rules.mk
+++ b/keyboards/keebio/iris/keymaps/pvinis/rules.mk
@@ -4,6 +4,6 @@ RGBLIGHT_ENABLE = yes # rgb leds underlight
4ENCODER_ENABLE = yes # rotary knob 4ENCODER_ENABLE = yes # rotary knob
5 5
6# Some extra stuff to make firmware smaller. 6# Some extra stuff to make firmware smaller.
7LINK_TIME_OPTIMIZATION_ENABLE = yes 7LTO_ENABLE = yes
8CONSOLE_ENABLE = no 8CONSOLE_ENABLE = no
9COMMAND_ENABLE = no 9COMMAND_ENABLE = no
diff --git a/keyboards/keebio/iris/keymaps/via/rules.mk b/keyboards/keebio/iris/keymaps/via/rules.mk
index 92f9671ee..36b7ba9cb 100644
--- a/keyboards/keebio/iris/keymaps/via/rules.mk
+++ b/keyboards/keebio/iris/keymaps/via/rules.mk
@@ -1,2 +1,2 @@
1VIA_ENABLE = yes 1VIA_ENABLE = yes
2LINK_TIME_OPTIMIZATION_ENABLE = yes 2LTO_ENABLE = yes
diff --git a/keyboards/keebio/quefrency/keymaps/drashna_ms/rules.mk b/keyboards/keebio/quefrency/keymaps/drashna_ms/rules.mk
index 1b8b582ab..fb7f940c9 100644
--- a/keyboards/keebio/quefrency/keymaps/drashna_ms/rules.mk
+++ b/keyboards/keebio/quefrency/keymaps/drashna_ms/rules.mk
@@ -1,4 +1,4 @@
1LINK_TIME_OPTIMIZATION_ENABLE = yes 1LTO_ENABLE = yes
2RGBLIGHT_ENABLE = yes 2RGBLIGHT_ENABLE = yes
3EXTRAKEY_ENABLE = yes 3EXTRAKEY_ENABLE = yes
4AUDIO_ENABLE = yes 4AUDIO_ENABLE = yes
diff --git a/keyboards/keebio/quefrency/keymaps/via/rules.mk b/keyboards/keebio/quefrency/keymaps/via/rules.mk
index 540fc2ac3..4b1bcabda 100644
--- a/keyboards/keebio/quefrency/keymaps/via/rules.mk
+++ b/keyboards/keebio/quefrency/keymaps/via/rules.mk
@@ -1,3 +1,3 @@
1VIA_ENABLE = yes 1VIA_ENABLE = yes
2CONSOLE_ENABLE = yes 2CONSOLE_ENABLE = yes
3LINK_TIME_OPTIMIZATION_ENABLE = yes 3LTO_ENABLE = yes
diff --git a/keyboards/kyria/keymaps/ninjonas/rules.mk b/keyboards/kyria/keymaps/ninjonas/rules.mk
index e7e4726ba..94c06b80e 100644
--- a/keyboards/kyria/keymaps/ninjonas/rules.mk
+++ b/keyboards/kyria/keymaps/ninjonas/rules.mk
@@ -1,6 +1,6 @@
1OLED_DRIVER_ENABLE = yes # Enables the use of OLED displays 1OLED_DRIVER_ENABLE = yes # Enables the use of OLED displays
2ENCODER_ENABLE = yes # Enables the use of one or more encoders 2ENCODER_ENABLE = yes # Enables the use of one or more encoders
3RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow 3RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
4LINK_TIME_OPTIMIZATION_ENABLE = yes 4LTO_ENABLE = yes
5 5
6SRC += oled.c \ No newline at end of file 6SRC += oled.c
diff --git a/keyboards/kyria/rules.mk b/keyboards/kyria/rules.mk
index 57fbf76cf..96f76241d 100644
--- a/keyboards/kyria/rules.mk
+++ b/keyboards/kyria/rules.mk
@@ -31,6 +31,6 @@ AUDIO_ENABLE = no # Audio output on port C6
31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
32HD44780_ENABLE = no # Enable support for HD44780 based LCDs 32HD44780_ENABLE = no # Enable support for HD44780 based LCDs
33SPLIT_KEYBOARD = yes # Split common 33SPLIT_KEYBOARD = yes # Split common
34LINK_TIME_OPTIMIZATION_ENABLE =yes 34LTO_ENABLE = yes
35 35
36DEFAULT_FOLDER = kyria/rev1 36DEFAULT_FOLDER = kyria/rev1
diff --git a/keyboards/launchpad/keymaps/via/rules.mk b/keyboards/launchpad/keymaps/via/rules.mk
index 87843cb0d..37484844f 100644
--- a/keyboards/launchpad/keymaps/via/rules.mk
+++ b/keyboards/launchpad/keymaps/via/rules.mk
@@ -1,3 +1,3 @@
1VIA_ENABLE = yes 1VIA_ENABLE = yes
2LINK_TIME_OPTIMIZATION_ENABLE = yes 2LTO_ENABLE = yes
3RGBLIGHT_ENABLE = yes 3RGBLIGHT_ENABLE = yes
diff --git a/keyboards/lily58/keymaps/ninjonas/rules.mk b/keyboards/lily58/keymaps/ninjonas/rules.mk
index dc3fe55bc..2cccbd077 100644
--- a/keyboards/lily58/keymaps/ninjonas/rules.mk
+++ b/keyboards/lily58/keymaps/ninjonas/rules.mk
@@ -1,2 +1,2 @@
1OLED_DRIVER_ENABLE = yes 1OLED_DRIVER_ENABLE = yes
2LINK_TIME_OPTIMIZATION_ENABLE = yes \ No newline at end of file 2LTO_ENABLE = yes
diff --git a/keyboards/pinky/3/keymaps/ninjonas/rules.mk b/keyboards/pinky/3/keymaps/ninjonas/rules.mk
index 155f56ef9..8d32e2248 100644
--- a/keyboards/pinky/3/keymaps/ninjonas/rules.mk
+++ b/keyboards/pinky/3/keymaps/ninjonas/rules.mk
@@ -1,2 +1,2 @@
1MOUSEKEY_ENABLE = no 1MOUSEKEY_ENABLE = no
2LINK_TIME_OPTIMIZATION_ENABLE = yes \ No newline at end of file 2LTO_ENABLE = yes
diff --git a/keyboards/planck/keymaps/oryx/rules.mk b/keyboards/planck/keymaps/oryx/rules.mk
index fb44d6b95..7657a3043 100644
--- a/keyboards/planck/keymaps/oryx/rules.mk
+++ b/keyboards/planck/keymaps/oryx/rules.mk
@@ -1,6 +1,6 @@
1SRC += muse.c 1SRC += muse.c
2# Set any rules.mk overrides for your specific keymap here. 2# Set any rules.mk overrides for your specific keymap here.
3# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file 3# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file
4LINK_TIME_OPTIMIZATION_ENABLE = yes 4LTO_ENABLE = yes
5COMMAND_ENABLE = no 5COMMAND_ENABLE = no
6MOUSEKEY_ENABLE = no 6MOUSEKEY_ENABLE = no
diff --git a/keyboards/planck/keymaps/sascha/rules.mk b/keyboards/planck/keymaps/sascha/rules.mk
index 57e5e2643..ac69f9dbc 100644
--- a/keyboards/planck/keymaps/sascha/rules.mk
+++ b/keyboards/planck/keymaps/sascha/rules.mk
@@ -1,7 +1,7 @@
1AUTO_SHIFT_ENABLE = yes 1AUTO_SHIFT_ENABLE = yes
2AUTO_SHIFT_MODIFIERS = yes 2AUTO_SHIFT_MODIFIERS = yes
3UNICODE_ENABLE = yes 3UNICODE_ENABLE = yes
4LINK_TIME_OPTIMIZATION_ENABLE = yes 4LTO_ENABLE = yes
5 5
6ifeq ($(strip $(KEYBOARD)), planck/rev5) 6ifeq ($(strip $(KEYBOARD)), planck/rev5)
7BACKLIGHT_ENABLE = yes 7BACKLIGHT_ENABLE = yes
diff --git a/keyboards/planck/keymaps/tylerwince/rules.mk b/keyboards/planck/keymaps/tylerwince/rules.mk
index a4f1a0b84..2c1585883 100644
--- a/keyboards/planck/keymaps/tylerwince/rules.mk
+++ b/keyboards/planck/keymaps/tylerwince/rules.mk
@@ -1,7 +1,7 @@
1SRC += muse.c 1SRC += muse.c
2# Set any rules.mk overrides for your specific keymap here. 2# Set any rules.mk overrides for your specific keymap here.
3# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file 3# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file
4LINK_TIME_OPTIMIZATION_ENABLE = yes 4LTO_ENABLE = yes
5COMMAND_ENABLE = no 5COMMAND_ENABLE = no
6MOUSEKEY_ENABLE = no 6MOUSEKEY_ENABLE = no
7TAP_DANCE_ENABLE=yes 7TAP_DANCE_ENABLE=yes
diff --git a/keyboards/preonic/rev1/rules.mk b/keyboards/preonic/rev1/rules.mk
index 45edfa0b0..dea2bbbca 100644
--- a/keyboards/preonic/rev1/rules.mk
+++ b/keyboards/preonic/rev1/rules.mk
@@ -34,4 +34,4 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
34 34
35LAYOUTS = ortho_5x12 35LAYOUTS = ortho_5x12
36 36
37LINK_TIME_OPTIMIZATION_ENABLE = yes 37LTO_ENABLE = yes
diff --git a/keyboards/preonic/rev2/rules.mk b/keyboards/preonic/rev2/rules.mk
index f24c6a49b..1b72a622a 100644
--- a/keyboards/preonic/rev2/rules.mk
+++ b/keyboards/preonic/rev2/rules.mk
@@ -34,4 +34,4 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
34 34
35LAYOUTS = ortho_5x12 35LAYOUTS = ortho_5x12
36 36
37LINK_TIME_OPTIMIZATION_ENABLE = yes 37LTO_ENABLE = yes
diff --git a/keyboards/rgbkb/sol/keymaps/kageurufu/rules.mk b/keyboards/rgbkb/sol/keymaps/kageurufu/rules.mk
index 056959a55..f60fa5d4c 100644
--- a/keyboards/rgbkb/sol/keymaps/kageurufu/rules.mk
+++ b/keyboards/rgbkb/sol/keymaps/kageurufu/rules.mk
@@ -11,11 +11,10 @@ LED_MIRRORED = no # Mirror LEDs across halves (enable DIP 1 on
11RGB_MATRIX_ENABLE = WS2812 # Enable per-key coordinate based RGB effects. Do not enable with RGBlight 11RGB_MATRIX_ENABLE = WS2812 # Enable per-key coordinate based RGB effects. Do not enable with RGBlight
12 12
13# Userspace implements their own LTO 13# Userspace implements their own LTO
14LINK_TIME_OPTIMIZATION_ENABLE = no 14LTO_ENABLE = no
15 15
16 16
17 17
18# Do not edit past here 18# Do not edit past here
19 19
20include keyboards/$(KEYBOARD)/post_rules.mk 20include keyboards/$(KEYBOARD)/post_rules.mk
21
diff --git a/keyboards/rgbkb/sol/rev2/rules.mk b/keyboards/rgbkb/sol/rev2/rules.mk
index debe8fe6b..201a7b47b 100644
--- a/keyboards/rgbkb/sol/rev2/rules.mk
+++ b/keyboards/rgbkb/sol/rev2/rules.mk
@@ -29,7 +29,7 @@ IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS dev
29OLED_DRIVER_ENABLE = no # Enable the OLED Driver 29OLED_DRIVER_ENABLE = no # Enable the OLED Driver
30EXTRA_ENCODERS_ENABLE = no # Enables 3 encoders per side (up from 1, not compatible with OLED_DRIVER_ENABLE) 30EXTRA_ENCODERS_ENABLE = no # Enables 3 encoders per side (up from 1, not compatible with OLED_DRIVER_ENABLE)
31SWAP_HANDS_ENABLE = no # Enable one-hand typing 31SWAP_HANDS_ENABLE = no # Enable one-hand typing
32LINK_TIME_OPTIMIZATION_ENABLE = yes # Enable Link Time Optimizations greatly reducing firmware size by disabling the old Macros and Functions features 32LTO_ENABLE = yes # Enable Link Time Optimizations greatly reducing firmware size by disabling the old Macros and Functions features
33 33
34# Special RGB Matrix, OLED, & Encoder Control Menu! 34# Special RGB Matrix, OLED, & Encoder Control Menu!
35RGB_OLED_MENU = no # Enabled by setting this to the encoder index (0-5) you wish to use to control the menu. 35RGB_OLED_MENU = no # Enabled by setting this to the encoder index (0-5) you wish to use to control the menu.
diff --git a/keyboards/rgbkb/zygomorph/keymaps/5x6pad/rules.mk b/keyboards/rgbkb/zygomorph/keymaps/5x6pad/rules.mk
index 55d52d58e..c223cb9eb 100644
--- a/keyboards/rgbkb/zygomorph/keymaps/5x6pad/rules.mk
+++ b/keyboards/rgbkb/zygomorph/keymaps/5x6pad/rules.mk
@@ -19,7 +19,7 @@ SWAP_HANDS_ENABLE = no # Enable one-hand typing
19ENCODER_ENABLE = yes # Enable rotary encoder 19ENCODER_ENABLE = yes # Enable rotary encoder
20OLED_DRIVER_ENABLE = no # Enable the OLED Driver 20OLED_DRIVER_ENABLE = no # Enable the OLED Driver
21IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone) 21IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone)
22LINK_TIME_OPTIMIZATION_ENABLE = no # Enable optimizations to reduce firmware size. Also disables action macros and functions. 22LTO_ENABLE = no # Enable optimizations to reduce firmware size. Also disables action macros and functions.
23 23
24# Do not edit past here 24# Do not edit past here
25 25
diff --git a/keyboards/rgbkb/zygomorph/keymaps/default/rules.mk b/keyboards/rgbkb/zygomorph/keymaps/default/rules.mk
index 55d52d58e..c223cb9eb 100644
--- a/keyboards/rgbkb/zygomorph/keymaps/default/rules.mk
+++ b/keyboards/rgbkb/zygomorph/keymaps/default/rules.mk
@@ -19,7 +19,7 @@ SWAP_HANDS_ENABLE = no # Enable one-hand typing
19ENCODER_ENABLE = yes # Enable rotary encoder 19ENCODER_ENABLE = yes # Enable rotary encoder
20OLED_DRIVER_ENABLE = no # Enable the OLED Driver 20OLED_DRIVER_ENABLE = no # Enable the OLED Driver
21IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone) 21IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone)
22LINK_TIME_OPTIMIZATION_ENABLE = no # Enable optimizations to reduce firmware size. Also disables action macros and functions. 22LTO_ENABLE = no # Enable optimizations to reduce firmware size. Also disables action macros and functions.
23 23
24# Do not edit past here 24# Do not edit past here
25 25
diff --git a/keyboards/rgbkb/zygomorph/keymaps/default_oled/rules.mk b/keyboards/rgbkb/zygomorph/keymaps/default_oled/rules.mk
index 961edb6e2..f2c194f0d 100644
--- a/keyboards/rgbkb/zygomorph/keymaps/default_oled/rules.mk
+++ b/keyboards/rgbkb/zygomorph/keymaps/default_oled/rules.mk
@@ -19,7 +19,7 @@ SWAP_HANDS_ENABLE = no # Enable one-hand typing
19ENCODER_ENABLE = yes # Enable rotary encoder 19ENCODER_ENABLE = yes # Enable rotary encoder
20OLED_DRIVER_ENABLE = yes # Enable the OLED Driver 20OLED_DRIVER_ENABLE = yes # Enable the OLED Driver
21IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone) 21IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone)
22LINK_TIME_OPTIMIZATION_ENABLE = yes # Enable optimizations to reduce firmware size. Also disables action macros and functions. 22LTO_ENABLE = yes # Enable optimizations to reduce firmware size. Also disables action macros and functions.
23 23
24# Do not edit past here 24# Do not edit past here
25 25
diff --git a/keyboards/rgbkb/zygomorph/keymaps/xulkal/rules.mk b/keyboards/rgbkb/zygomorph/keymaps/xulkal/rules.mk
index dc687cbbd..78969ad7a 100644
--- a/keyboards/rgbkb/zygomorph/keymaps/xulkal/rules.mk
+++ b/keyboards/rgbkb/zygomorph/keymaps/xulkal/rules.mk
@@ -19,7 +19,7 @@ SWAP_HANDS_ENABLE = no # Enable one-hand typing
19ENCODER_ENABLE = no # Enable rotary encoder 19ENCODER_ENABLE = no # Enable rotary encoder
20OLED_DRIVER_ENABLE = no # Enable the OLED Driver 20OLED_DRIVER_ENABLE = no # Enable the OLED Driver
21IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone) 21IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone)
22LINK_TIME_OPTIMIZATION_ENABLE = no # Enable optimizations to reduce firmware size. Also disables action macros and functions. 22LTO_ENABLE = no # Enable optimizations to reduce firmware size. Also disables action macros and functions.
23 23
24# Do not edit past here 24# Do not edit past here
25 25
diff --git a/keyboards/tg4x/rules.mk b/keyboards/tg4x/rules.mk
index 41988177d..4a86998cb 100644
--- a/keyboards/tg4x/rules.mk
+++ b/keyboards/tg4x/rules.mk
@@ -31,4 +31,4 @@ AUDIO_ENABLE = no # Audio output on port C6
31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
32HD44780_ENABLE = no # Enable support for HD44780 based LCDs 32HD44780_ENABLE = no # Enable support for HD44780 based LCDs
33 33
34LINK_TIME_OPTIMIZATION_ENABLE = yes \ No newline at end of file 34LTO_ENABLE = yes
diff --git a/keyboards/tkc/candybar/lefty/rules.mk b/keyboards/tkc/candybar/lefty/rules.mk
index 52ef91c47..1edad0835 100644
--- a/keyboards/tkc/candybar/lefty/rules.mk
+++ b/keyboards/tkc/candybar/lefty/rules.mk
@@ -5,7 +5,7 @@ MCU = STM32F072
5# comment out to disable the options. 5# comment out to disable the options.
6# 6#
7# EXTRAFLAGS+=-flto 7# EXTRAFLAGS+=-flto
8LINK_TIME_OPTIMIZATION_ENABLE = yes 8LTO_ENABLE = yes
9BACKLIGHT_ENABLE = no 9BACKLIGHT_ENABLE = no
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration 10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.) 11## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
diff --git a/keyboards/tkc/candybar/righty/rules.mk b/keyboards/tkc/candybar/righty/rules.mk
index 52ef91c47..1edad0835 100644
--- a/keyboards/tkc/candybar/righty/rules.mk
+++ b/keyboards/tkc/candybar/righty/rules.mk
@@ -5,7 +5,7 @@ MCU = STM32F072
5# comment out to disable the options. 5# comment out to disable the options.
6# 6#
7# EXTRAFLAGS+=-flto 7# EXTRAFLAGS+=-flto
8LINK_TIME_OPTIMIZATION_ENABLE = yes 8LTO_ENABLE = yes
9BACKLIGHT_ENABLE = no 9BACKLIGHT_ENABLE = no
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration 10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.) 11## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
diff --git a/keyboards/v60_type_r/rules.mk b/keyboards/v60_type_r/rules.mk
index 94205df11..16ecb7df4 100644
--- a/keyboards/v60_type_r/rules.mk
+++ b/keyboards/v60_type_r/rules.mk
@@ -32,6 +32,6 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
32AUDIO_ENABLE = no # Audio output on port C6 32AUDIO_ENABLE = no # Audio output on port C6
33FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 33FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
34 34
35LINK_TIME_OPTIMIZATION_ENABLE = yes 35LTO_ENABLE = yes
36 36
37LAYOUTS = 60_ansi 60_iso 37LAYOUTS = 60_ansi 60_iso
diff --git a/keyboards/vitamins_included/rules.mk b/keyboards/vitamins_included/rules.mk
index 3eb3a1c30..c95ae27ec 100644
--- a/keyboards/vitamins_included/rules.mk
+++ b/keyboards/vitamins_included/rules.mk
@@ -25,4 +25,4 @@ LAYOUTS = ortho_4x12
25 25
26DEFAULT_FOLDER = vitamins_included/rev2 26DEFAULT_FOLDER = vitamins_included/rev2
27 27
28LINK_TIME_OPTIMIZATION_ENABLE = yes 28LTO_ENABLE = yes
diff --git a/keyboards/xd004/v1/config.h b/keyboards/xd004/v1/config.h
index f7a262d4c..b90e10b89 100644
--- a/keyboards/xd004/v1/config.h
+++ b/keyboards/xd004/v1/config.h
@@ -75,6 +75,6 @@ further optimizations can be done on that side.
75 75
76/* disable action features */ 76/* disable action features */
77// #define NO_ACTION_ONESHOT // 462 bytes <- this needs to be un-commented out if Link Time Optimization is disabled, otherwise file is too large 77// #define NO_ACTION_ONESHOT // 462 bytes <- this needs to be un-commented out if Link Time Optimization is disabled, otherwise file is too large
78// The two below are implicit since we use LINK_TIME_OPTIMIZATION_ENABLE (in rules.mk) 78// The two below are implicit since we use LTO_ENABLE (in rules.mk)
79// #define NO_ACTION_MACRO 79// #define NO_ACTION_MACRO
80// #define NO_ACTION_FUNCTION 80// #define NO_ACTION_FUNCTION
diff --git a/keyboards/xd004/v1/rules.mk b/keyboards/xd004/v1/rules.mk
index 18f7d8041..e9afff93c 100644
--- a/keyboards/xd004/v1/rules.mk
+++ b/keyboards/xd004/v1/rules.mk
@@ -27,6 +27,6 @@ RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
27SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 27SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
28SPACE_CADET_ENABLE = no 28SPACE_CADET_ENABLE = no
29# Saves about 5% of space: 29# Saves about 5% of space:
30LINK_TIME_OPTIMIZATION_ENABLE = yes 30LTO_ENABLE = yes
31 31
32#LAYOUTS = ortho_1x4 32#LAYOUTS = ortho_1x4
diff --git a/keyboards/xd84/rules.mk b/keyboards/xd84/rules.mk
index cf4e64361..590038622 100644
--- a/keyboards/xd84/rules.mk
+++ b/keyboards/xd84/rules.mk
@@ -31,7 +31,7 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
31AUDIO_ENABLE = no # Audio output on port C6 31AUDIO_ENABLE = no # Audio output on port C6
32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
33HD44780_ENABLE = no # Enable support for HD44780 based LCDs 33HD44780_ENABLE = no # Enable support for HD44780 based LCDs
34LINK_TIME_OPTIMIZATION_ENABLE = yes 34LTO_ENABLE = yes
35 35
36# custom matrix setup 36# custom matrix setup
37CUSTOM_MATRIX = lite 37CUSTOM_MATRIX = lite
diff --git a/keyboards/xd96/rules.mk b/keyboards/xd96/rules.mk
index 0c56a5ac0..3ede910c3 100644
--- a/keyboards/xd96/rules.mk
+++ b/keyboards/xd96/rules.mk
@@ -31,7 +31,7 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
31AUDIO_ENABLE = no # Audio output on port C6 31AUDIO_ENABLE = no # Audio output on port C6
32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
33HD44780_ENABLE = no # Enable support for HD44780 based LCDs 33HD44780_ENABLE = no # Enable support for HD44780 based LCDs
34LINK_TIME_OPTIMIZATION_ENABLE = yes 34LTO_ENABLE = yes
35 35
36# custom matrix setup 36# custom matrix setup
37CUSTOM_MATRIX = lite 37CUSTOM_MATRIX = lite
diff --git a/keyboards/yushakobo/quick7/config.h b/keyboards/yushakobo/quick7/config.h
index 4fb8ba6d9..b9abd137b 100644
--- a/keyboards/yushakobo/quick7/config.h
+++ b/keyboards/yushakobo/quick7/config.h
@@ -192,7 +192,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
192//#define NO_ACTION_ONESHOT 192//#define NO_ACTION_ONESHOT
193 193
194/* disable these deprecated features by default */ 194/* disable these deprecated features by default */
195#ifndef LINK_TIME_OPTIMIZATION_ENABLE 195#ifndef LTO_ENABLE
196 #define NO_ACTION_MACRO 196 #define NO_ACTION_MACRO
197 #define NO_ACTION_FUNCTION 197 #define NO_ACTION_FUNCTION
198#endif 198#endif
diff --git a/show_options.mk b/show_options.mk
index 3f3243fbd..2a5781773 100644
--- a/show_options.mk
+++ b/show_options.mk
@@ -82,8 +82,7 @@ OTHER_OPTION_NAMES = \
82 RGB_MATRIX_KEYPRESSES \ 82 RGB_MATRIX_KEYPRESSES \
83 LED_MIRRORED \ 83 LED_MIRRORED \
84 RGBLIGHT_FULL_POWER \ 84 RGBLIGHT_FULL_POWER \
85 Link_Time_Optimization \ 85 LTO_ENABLE
86 LINK_TIME_OPTIMIZATION_ENABLE
87 86
88define NAME_ECHO 87define NAME_ECHO
89 @echo " $1 = $($1) # $(origin $1)" 88 @echo " $1 = $($1) # $(origin $1)"
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index 56ed4a857..a6c439f5c 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -160,16 +160,13 @@ ifeq ($(strip $(SHARED_EP_ENABLE)), yes)
160endif 160endif
161 161
162ifeq ($(strip $(LTO_ENABLE)), yes) 162ifeq ($(strip $(LTO_ENABLE)), yes)
163 LINK_TIME_OPTIMIZATION_ENABLE = yes
164endif
165
166ifeq ($(strip $(LINK_TIME_OPTIMIZATION_ENABLE)), yes)
167 ifeq ($(PLATFORM),CHIBIOS) 163 ifeq ($(PLATFORM),CHIBIOS)
168 $(info Enabling LTO on ChibiOS-targeting boards is known to have a high likelihood of failure.) 164 $(info Enabling LTO on ChibiOS-targeting boards is known to have a high likelihood of failure.)
169 $(info If unsure, set LINK_TIME_OPTIMIZATION_ENABLE = no.) 165 $(info If unsure, set LTO_ENABLE = no.)
170 endif 166 endif
171 EXTRAFLAGS += -flto 167 EXTRAFLAGS += -flto
172 TMK_COMMON_DEFS += -DLINK_TIME_OPTIMIZATION_ENABLE 168 TMK_COMMON_DEFS += -DLTO_ENABLE
169 TMK_COMMON_DEFS += -DLINK_TIME_OPTIMIZATON_ENABLE
173endif 170endif
174 171
175# Search Path 172# Search Path
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h
index c82c9c81b..345c030c9 100644
--- a/tmk_core/common/action.h
+++ b/tmk_core/common/action.h
@@ -29,7 +29,7 @@ extern "C" {
29#endif 29#endif
30 30
31/* Disable macro and function features when LTO is enabled, since they break */ 31/* Disable macro and function features when LTO is enabled, since they break */
32#ifdef LINK_TIME_OPTIMIZATION_ENABLE 32#ifdef LTO_ENABLE
33# ifndef NO_ACTION_MACRO 33# ifndef NO_ACTION_MACRO
34# define NO_ACTION_MACRO 34# define NO_ACTION_MACRO
35# endif 35# endif
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c
index ef6a39c0f..feeb2202e 100644
--- a/tmk_core/common/command.c
+++ b/tmk_core/common/command.c
@@ -180,7 +180,7 @@ static void print_version(void) {
180#ifdef NKRO_ENABLE 180#ifdef NKRO_ENABLE
181 " NKRO" 181 " NKRO"
182#endif 182#endif
183#ifdef LINK_TIME_OPTIMIZATION_ENABLE 183#ifdef LTO_ENABLE
184 " LTO" 184 " LTO"
185#endif 185#endif
186 186
diff --git a/users/bcat/rules.mk b/users/bcat/rules.mk
index a595d1f58..f87974ed9 100644
--- a/users/bcat/rules.mk
+++ b/users/bcat/rules.mk
@@ -14,7 +14,7 @@ EXTRAKEY_ENABLE = yes
14NKRO_ENABLE = yes 14NKRO_ENABLE = yes
15 15
16# Enable link-time optimization to reduce binary size. 16# Enable link-time optimization to reduce binary size.
17LINK_TIME_OPTIMIZATION_ENABLE = yes 17LTO_ENABLE = yes
18 18
19# Disable unused build options on all keyboards. 19# Disable unused build options on all keyboards.
20COMMAND_ENABLE = no 20COMMAND_ENABLE = no
diff --git a/users/dshields/rules.mk b/users/dshields/rules.mk
index abfbe5e40..462649289 100644
--- a/users/dshields/rules.mk
+++ b/users/dshields/rules.mk
@@ -10,7 +10,7 @@ SPACE_CADET_ENABLE = no
10LEADER_ENABLE = no 10LEADER_ENABLE = no
11DYNAMIC_MACRO_ENABLE = yes 11DYNAMIC_MACRO_ENABLE = yes
12 12
13LINK_TIME_OPTIMIZATION_ENABLE = yes 13LTO_ENABLE = yes
14 14
15ifeq ($(strip $(KEYBOARD)), planck/rev3) 15ifeq ($(strip $(KEYBOARD)), planck/rev3)
16 AUDIO_ENABLE = no 16 AUDIO_ENABLE = no
@@ -29,4 +29,3 @@ ifeq ($(strip $(KEYBOARD)), planck/light)
29 BACKLIGHT_ENABLE = no 29 BACKLIGHT_ENABLE = no
30 RGB_MATRIX_ENABLE = yes 30 RGB_MATRIX_ENABLE = yes
31endif 31endif
32
diff --git a/users/issmirnov/rules.mk b/users/issmirnov/rules.mk
index 096d7b4c0..93ec21b01 100644
--- a/users/issmirnov/rules.mk
+++ b/users/issmirnov/rules.mk
@@ -4,7 +4,7 @@ SRC += issmirnov.c
4 4
5# https://www.reddit.com/r/olkb/comments/bmpgjm/programming_help/ 5# https://www.reddit.com/r/olkb/comments/bmpgjm/programming_help/
6# Should shave 2000 bytes 6# Should shave 2000 bytes
7LINK_TIME_OPTIMIZATION_ENABLE = yes 7LTO_ENABLE = yes
8 8
9# Enable debugging only when needed. 9# Enable debugging only when needed.
10CONSOLE_ENABLE = yes # +400 bytes (hid_listen support) 10CONSOLE_ENABLE = yes # +400 bytes (hid_listen support)
diff --git a/users/kuchosauronad0/rules.mk b/users/kuchosauronad0/rules.mk
index b844d12c9..dfab85703 100644
--- a/users/kuchosauronad0/rules.mk
+++ b/users/kuchosauronad0/rules.mk
@@ -1,7 +1,7 @@
1SRC += kuchosauronad0.c \ 1SRC += kuchosauronad0.c \
2 process_records.c 2 process_records.c
3 3
4LINK_TIME_OPTIMIZATION_ENABLE = yes 4LTO_ENABLE = yes
5SPACE_CADET_ENABLE = no 5SPACE_CADET_ENABLE = no
6 6
7ifneq ($(strip $(RGBLIGHT_ENABLE)),yes ) 7ifneq ($(strip $(RGBLIGHT_ENABLE)),yes )
@@ -24,7 +24,7 @@ ifeq ($(strip $(LEADER_ENABLE)), yes)
24 SRC += leader.c 24 SRC += leader.c
25endif 25endif
26 26
27ifneq ("$(wildcard $(USER_PATH)/secrets.c)","") 27ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
28 SRC += secrets.c 28 SRC += secrets.c
29endif 29endif
30ifeq ($(strip $(NO_SECRETS)), yes) 30ifeq ($(strip $(NO_SECRETS)), yes)
diff --git a/users/pvinis/rules.mk b/users/pvinis/rules.mk
index f6f09e54d..6c7b47399 100644
--- a/users/pvinis/rules.mk
+++ b/users/pvinis/rules.mk
@@ -14,6 +14,6 @@ SRC += pvinis.c # add userspace file
14 14
15## Some extra stuff to make firmware smaller. 15## Some extra stuff to make firmware smaller.
16 16
17# LINK_TIME_OPTIMIZATION_ENABLE = yes 17# LTO_ENABLE = yes
18# CONSOLE_ENABLE = no 18# CONSOLE_ENABLE = no
19# COMMAND_ENABLE = no 19# COMMAND_ENABLE = no
diff --git a/users/yanfali/rules.mk b/users/yanfali/rules.mk
index 456d3bf32..a7208daa2 100644
--- a/users/yanfali/rules.mk
+++ b/users/yanfali/rules.mk
@@ -2,7 +2,7 @@ BOOTMAGIC = lite
2DYNAMIC_KEYMAP_ENABLE = no 2DYNAMIC_KEYMAP_ENABLE = no
3CONSOLE_ENABLE = yes 3CONSOLE_ENABLE = yes
4COMMAND_ENABLE = yes 4COMMAND_ENABLE = yes
5LINK_TIME_OPTIMIZATION_ENABLE = yes 5LTO_ENABLE = yes
6AUDIO_ENABLE = no 6AUDIO_ENABLE = no
7 7
8# only enable audio on specific boards 8# only enable audio on specific boards
diff --git a/users/yet-another-developer/rules.mk b/users/yet-another-developer/rules.mk
index 597df6d0b..64cf1f2fc 100644
--- a/users/yet-another-developer/rules.mk
+++ b/users/yet-another-developer/rules.mk
@@ -1,7 +1,7 @@
1SRC += yet-another-developer.c \ 1SRC += yet-another-developer.c \
2 process_records.c 2 process_records.c
3 3
4LINK_TIME_OPTIMIZATION_ENABLE = yes 4LTO_ENABLE = yes
5SPACE_CADET_ENABLE = no 5SPACE_CADET_ENABLE = no
6 6
7ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) 7ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)