aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-08-08 11:27:15 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-08-20 03:56:33 +0300
commitdd8c1a7659fec4fe3211682864fc4c50d4a61f85 (patch)
tree8f988ca3d69a4006d848688882fc13cf7b6779af
parent60c6e79ecb032e9726809a295ab3e0011e6b2fb4 (diff)
downloadqmk_firmware-dd8c1a7659fec4fe3211682864fc4c50d4a61f85.tar.gz
qmk_firmware-dd8c1a7659fec4fe3211682864fc4c50d4a61f85.zip
Don't add VERSION as a define
To avoid full recompilation when the git commit hash changes.
-rw-r--r--tmk_core/common.mk3
-rw-r--r--tmk_core/common/command.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index aa05b9491..21b894e2b 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -106,9 +106,6 @@ $(error MASTER does not have a valid value(left/right))
106endif 106endif
107 107
108 108
109# Version string
110OPT_DEFS += -DVERSION=$(GIT_VERSION)
111
112# Bootloader address 109# Bootloader address
113ifdef STM32_BOOTLOADER_ADDRESS 110ifdef STM32_BOOTLOADER_ADDRESS
114 OPT_DEFS += -DSTM32_BOOTLOADER_ADDRESS=$(STM32_BOOTLOADER_ADDRESS) 111 OPT_DEFS += -DSTM32_BOOTLOADER_ADDRESS=$(STM32_BOOTLOADER_ADDRESS)
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c
index 084c9fe15..476fc6fe3 100644
--- a/tmk_core/common/command.c
+++ b/tmk_core/common/command.c
@@ -34,6 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
34#include "command.h" 34#include "command.h"
35#include "backlight.h" 35#include "backlight.h"
36#include "quantum.h" 36#include "quantum.h"
37#include "version.h"
37 38
38#ifdef MOUSEKEY_ENABLE 39#ifdef MOUSEKEY_ENABLE
39#include "mousekey.h" 40#include "mousekey.h"
@@ -180,7 +181,7 @@ static void print_version(void)
180 print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") " 181 print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") "
181 "PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") " 182 "PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") "
182 "VER: " STR(DEVICE_VER) "\n"); 183 "VER: " STR(DEVICE_VER) "\n");
183 print("BUILD: " STR(VERSION) " (" __TIME__ " " __DATE__ ")\n"); 184 print("BUILD: " STR(QMK_VERSION) " (" __TIME__ " " __DATE__ ")\n");
184 185
185 /* build options */ 186 /* build options */
186 print("OPTIONS:" 187 print("OPTIONS:"