diff options
author | tmk <hasu@tmk-kbd.com> | 2015-07-12 05:44:10 +0900 |
---|---|---|
committer | tmk <hasu@tmk-kbd.com> | 2015-07-12 05:44:10 +0900 |
commit | 8746ad98ccc6ae56c8452afa6bef170777ea5b26 (patch) | |
tree | 347508d48081f586b37a60fb4fd9bdfe1346df94 /tmk_core/common.mk | |
parent | ce8b1e5f1347bb04ee26ef21c24aa52e8fdf23d7 (diff) |
core: Add keymap section ldscript for ATMega32U2
Diffstat (limited to 'tmk_core/common.mk')
-rw-r--r-- | tmk_core/common.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tmk_core/common.mk b/tmk_core/common.mk index d22adff519..cb030b3313 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 |