diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -623,13 +623,19 @@ endif | |||
| 623 | # Generate the version.h file | 623 | # Generate the version.h file |
| 624 | ifndef SKIP_GIT | 624 | ifndef SKIP_GIT |
| 625 | GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S") | 625 | GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S") |
| 626 | CHIBIOS_VERSION := $(shell cd lib/chibios && git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S") | ||
| 627 | CHIBIOS_CONTRIB_VERSION := $(shell cd lib/chibios-contrib && git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S") | ||
| 626 | else | 628 | else |
| 627 | GIT_VERSION := NA | 629 | GIT_VERSION := NA |
| 630 | CHIBIOS_VERSION := NA | ||
| 631 | CHIBIOS_CONTRIB_VERSION := NA | ||
| 628 | endif | 632 | endif |
| 629 | ifndef SKIP_VERSION | 633 | ifndef SKIP_VERSION |
| 630 | BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S") | 634 | BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S") |
| 631 | $(shell echo '#define QMK_VERSION "$(GIT_VERSION)"' > $(ROOT_DIR)/quantum/version.h) | 635 | $(shell echo '#define QMK_VERSION "$(GIT_VERSION)"' > $(ROOT_DIR)/quantum/version.h) |
| 632 | $(shell echo '#define QMK_BUILDDATE "$(BUILD_DATE)"' >> $(ROOT_DIR)/quantum/version.h) | 636 | $(shell echo '#define QMK_BUILDDATE "$(BUILD_DATE)"' >> $(ROOT_DIR)/quantum/version.h) |
| 637 | $(shell echo '#define CHIBIOS_VERSION "$(CHIBIOS_VERSION)"' >> $(ROOT_DIR)/quantum/version.h) | ||
| 638 | $(shell echo '#define CHIBIOS_CONTRIB_VERSION "$(CHIBIOS_CONTRIB_VERSION)"' >> $(ROOT_DIR)/quantum/version.h) | ||
| 633 | else | 639 | else |
| 634 | BUILD_DATE := NA | 640 | BUILD_DATE := NA |
| 635 | endif | 641 | endif |
