]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Add build option KEYMAP_SECTION for keymap editor
authortmk <nobody@nowhere>
Wed, 11 Sep 2013 05:01:47 +0000 (14:01 +0900)
committertmk <nobody@nowhere>
Wed, 11 Sep 2013 05:01:47 +0000 (14:01 +0900)
common.mk
keyboard/hhkb/Makefile
ldscript_keymap_avr5.x [moved from keyboard/hhkb/ld_keymap_avr5.x with 100% similarity]

index 64ef86c404486820c8798a135d59e10b92aebe45..9523ae8749e341874aab67d4f3d65a8ca09c6932 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -68,6 +68,10 @@ ifdef BACKLIGHT_ENABLE
     OPT_DEFS += -DBACKLIGHT_ENABLE
 endif
 
+ifdef KEYMAP_SECTION_ENABLE
+    OPT_DEFS += -DKEYMAP_SECTION
+    EXTRALDFLAGS = -Wl,-L$(TOP_DIR),-Tldscript_keymap_avr5.x
+endif
 
 # Version string
 OPT_DEFS += -DVERSION=$(shell (git describe --dirty || echo 'unknown') 2> /dev/null)
index 34221937218688fce9d1a0935bf60a04c0d088de..34bafc24fc00e3c63b06265358c3311e98ec5984 100644 (file)
@@ -111,18 +111,15 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
 # Build Options
 #   comment out to disable the options.
 #
-BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
-MOUSEKEY_ENABLE = yes  # Mouse keys
-EXTRAKEY_ENABLE = yes  # Audio control and System control
-CONSOLE_ENABLE = yes   # Console for debug
-COMMAND_ENABLE = yes    # Commands for debug and configuration
-NKRO_ENABLE = yes      # USB Nkey Rollover
+BOOTMAGIC_ENABLE = yes         # Virtual DIP switch configuration
+MOUSEKEY_ENABLE = yes          # Mouse keys
+EXTRAKEY_ENABLE = yes          # Audio control and System control
+CONSOLE_ENABLE = yes           # Console for debug
+COMMAND_ENABLE = yes           # Commands for debug and configuration
+NKRO_ENABLE = yes              # USB Nkey Rollover
+KEYMAP_SECTION_ENABLE = yes    # fixed address keymap for keymap editor
 
 
-# keymap section
-EXTRALDFLAGS = -Wl,-Tld_keymap_avr5.x
-OPT_DEFS += -DKEYMAP_SECTION
-
 # Search Path
 VPATH += $(TARGET_DIR)
 VPATH += $(TOP_DIR)