~ruther/qmk_firmware

722c196b08df6c9dcbb6eb6eed0bb9732609c511 — Takeshi ISHII 5 years ago c6ebb59
[Keyboard] Added workaround for serial.c/LTO issue for helix/rev2 and helix/pico. (#7558)

2 files changed, 10 insertions(+), 0 deletions(-)

M keyboards/helix/pico/rules.mk
M keyboards/helix/rev2/rules.mk
M keyboards/helix/pico/rules.mk => keyboards/helix/pico/rules.mk +5 -0
@@ 5,6 5,11 @@ SRC += local_drivers/serial.c
SRC += local_drivers/ssd1306.c
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers

# A workaround until #7089 is merged.
#   serial.c must not be compiled with the -lto option.
#   The current LIB_SRC has a side effect with the -fno-lto option, so use it.
LIB_SRC += local_drivers/serial.c

CUSTOM_MATRIX = yes

SRC += pico/matrix.c

M keyboards/helix/rev2/rules.mk => keyboards/helix/rev2/rules.mk +5 -0
@@ 5,6 5,11 @@ SRC += local_drivers/serial.c
SRC += local_drivers/ssd1306.c
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers

# A workaround until #7089 is merged.
#   serial.c must not be compiled with the -lto option.
#   The current LIB_SRC has a side effect with the -fno-lto option, so use it.
LIB_SRC += local_drivers/serial.c

CUSTOM_MATRIX = yes

SRC += rev2/matrix.c