From 8746ad98ccc6ae56c8452afa6bef170777ea5b26 Mon Sep 17 00:00:00 2001 From: tmk Date: Sun, 12 Jul 2015 05:44:10 +0900 Subject: core: Add keymap section ldscript for ATMega32U2 --- tmk_core/common.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tmk_core/common.mk') diff --git a/tmk_core/common.mk b/tmk_core/common.mk index d22adff51..cb030b331 100644 --- a/tmk_core/common.mk +++ b/tmk_core/common.mk @@ -66,7 +66,14 @@ endif ifdef KEYMAP_SECTION_ENABLE OPT_DEFS += -DKEYMAP_SECTION_ENABLE - EXTRALDFLAGS = -Wl,-L$(TMK_DIR),-Tldscript_keymap_avr5.x + + ifeq ($(strip $(MCU)),atmega32u2) + EXTRALDFLAGS = -Wl,-L$(TMK_DIR),-Tldscript_keymap_avr35.x + else ifeq ($(strip $(MCU)),atmega32u4) + EXTRALDFLAGS = -Wl,-L$(TMK_DIR),-Tldscript_keymap_avr5.x + else + EXTRALDFLAGS = $(error no ldscript for keymap section) + endif endif # Version string -- cgit v1.2.3-70-g09d2