]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Don't add VERSION as a define
authorFred Sundvik <fsundvik@gmail.com>
Mon, 8 Aug 2016 08:27:15 +0000 (11:27 +0300)
committerFred Sundvik <fsundvik@gmail.com>
Sat, 20 Aug 2016 00:56:33 +0000 (03:56 +0300)
To avoid full recompilation when the git commit hash changes.

tmk_core/common.mk
tmk_core/common/command.c

index aa05b9491d5d523cbc25b39290b09cb04fb5e2da..21b894e2bea3ae8800011e757d461308c2cd1f60 100644 (file)
@@ -106,9 +106,6 @@ $(error MASTER does not have a valid value(left/right))
 endif
 
 
-# Version string
-OPT_DEFS += -DVERSION=$(GIT_VERSION)
-
 # Bootloader address
 ifdef STM32_BOOTLOADER_ADDRESS
     OPT_DEFS += -DSTM32_BOOTLOADER_ADDRESS=$(STM32_BOOTLOADER_ADDRESS)
index 084c9fe1555fac3b5d44d8a12c7f72da1d37865c..476fc6fe3c59cce819c0bfbeebbb0ace19bcdb6e 100644 (file)
@@ -34,6 +34,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "command.h"
 #include "backlight.h"
 #include "quantum.h"
+#include "version.h"
 
 #ifdef MOUSEKEY_ENABLE
 #include "mousekey.h"
@@ -180,7 +181,7 @@ static void print_version(void)
     print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") "
           "PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") "
           "VER: " STR(DEVICE_VER) "\n");
-    print("BUILD: " STR(VERSION) " (" __TIME__ " " __DATE__ ")\n");
+    print("BUILD: " STR(QMK_VERSION) " (" __TIME__ " " __DATE__ ")\n");
 
     /* build options */
     print("OPTIONS:"