1
0
Fork 0

Don't add VERSION as a define

To avoid full recompilation when the git commit hash changes.
This commit is contained in:
Fred Sundvik 2016-08-08 11:27:15 +03:00
parent 60c6e79ecb
commit dd8c1a7659
2 changed files with 2 additions and 4 deletions

View file

@ -106,9 +106,6 @@ $(error MASTER does not have a valid value(left/right))
endif endif
# Version string
OPT_DEFS += -DVERSION=$(GIT_VERSION)
# Bootloader address # Bootloader address
ifdef STM32_BOOTLOADER_ADDRESS ifdef STM32_BOOTLOADER_ADDRESS
OPT_DEFS += -DSTM32_BOOTLOADER_ADDRESS=$(STM32_BOOTLOADER_ADDRESS) OPT_DEFS += -DSTM32_BOOTLOADER_ADDRESS=$(STM32_BOOTLOADER_ADDRESS)

View file

@ -34,6 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "command.h" #include "command.h"
#include "backlight.h" #include "backlight.h"
#include "quantum.h" #include "quantum.h"
#include "version.h"
#ifdef MOUSEKEY_ENABLE #ifdef MOUSEKEY_ENABLE
#include "mousekey.h" #include "mousekey.h"
@ -180,7 +181,7 @@ static void print_version(void)
print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") " print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") "
"PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") " "PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") "
"VER: " STR(DEVICE_VER) "\n"); "VER: " STR(DEVICE_VER) "\n");
print("BUILD: " STR(VERSION) " (" __TIME__ " " __DATE__ ")\n"); print("BUILD: " STR(QMK_VERSION) " (" __TIME__ " " __DATE__ ")\n");
/* build options */ /* build options */
print("OPTIONS:" print("OPTIONS:"