]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common.mk
Updates to CUB's layouts
[tmk_firmware.git] / common.mk
index 47d5c852f330cb93842f1196d9d93889cf2f279f..ee28b696cbc278c88db366f0e8bae859ef2c6716 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -68,6 +68,14 @@ ifdef BACKLIGHT_ENABLE
     OPT_DEFS += -DBACKLIGHT_ENABLE
 endif
 
+ifdef KEYMAP_SECTION_ENABLE
+    OPT_DEFS += -DKEYMAP_SECTION_ENABLE
+    EXTRALDFLAGS = -Wl,-L$(TOP_DIR),-Tldscript_keymap_avr5.x
+endif
+
+# Version string
+OPT_DEFS += -DVERSION=$(shell (git describe --dirty || echo 'unknown') 2> /dev/null)
+
 
 # Search Path
 VPATH += $(TOP_DIR)/common