diff options
author | tmk <nobody@nowhere> | 2013-09-11 06:44:54 +0200 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-09-11 06:44:54 +0200 |
commit | 8bc96ac57174692b7604ddc65e22dea6ddb1824b (patch) | |
tree | 89ea2e09d72d0634fc3201cfdd7b7a85a314e06c | |
parent | f7395268c0826d00f2d32db8abb9eba7e3159a75 (diff) | |
download | qmk_firmware-8bc96ac57174692b7604ddc65e22dea6ddb1824b.tar.gz qmk_firmware-8bc96ac57174692b7604ddc65e22dea6ddb1824b.tar.xz |
Add version string
-rw-r--r-- | common.mk | 4 | ||||
-rw-r--r-- | common/command.c | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -69,5 +69,9 @@ ifdef BACKLIGHT_ENABLE endif +# Version string +OPT_DEFS += -DVERSION=$(shell (git describe --dirty || echo 'unknown') 2> /dev/null) + + # Search Path VPATH += $(TOP_DIR)/common diff --git a/common/command.c b/common/command.c index 4649e00ab..7415645b0 100644 --- a/common/command.c +++ b/common/command.c @@ -252,9 +252,10 @@ static bool command_common(uint8_t code) case KC_V: // print version & information print("\n\n----- Version -----\n"); print(STR(DESCRIPTION) "\n"); - print(STR(MANUFACTURER) "(" STR(VENDOR_ID) ")/"); - print(STR(PRODUCT) "(" STR(PRODUCT_ID) ") "); - print("VERSION: " STR(DEVICE_VER) "\n"); + print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") VER: " STR(DEVICE_VER) "\n"); + print("SRC: " STR(VERSION) "\n"); + print("GCC: " STR(__GNUC__) "." STR(__GNUC_MINOR__) "." STR(__GNUC_PATCHLEVEL__) "\n"); + print("AVR-LIBC: " __AVR_LIBC_VERSION_STRING__ "\n"); break; case KC_T: // print timer print_val_hex32(timer_count); |