summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-09-11 14:04:33 +0900
committertmk <nobody@nowhere>2013-09-11 14:04:33 +0900
commitda24259632f79dad8ecc11d887d58a1e36bd5af8 (patch)
tree63ae148e3e6c0be4cd0ef35bf9db0162abae3af4 /common.mk
parent60103a12b2ca0a572da1e72eb46bff19c499fc95 (diff)
parent259c4a040af658552d7a003655572c33d8fcef83 (diff)
Merge branch 'keymap_section'
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 47d5c852f3..9523ae8749 100644
--- 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
+ 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