forked from apache/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
667b036
commit a297b24
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,9 +42,13 @@ CONFIG_VERSION_BUILD ?= "0" | |
VERSION_ARG = -v $(CONFIG_VERSION_STRING) -b $(CONFIG_VERSION_BUILD) | ||
else | ||
|
||
# Generate .version every time from GIT history | ||
# Generate .version.tmp every time from GIT history | ||
# Only update .version if the contents actually changes | ||
|
||
$(shell tools/version.sh .version.tmp) | ||
$(shell cp -u .version.tmp .version) | ||
# $(shell rm .version.tmp) | ||
|
||
.PHONY: $(TOPDIR)/.version | ||
endif | ||
|
||
# Process architecture specific directories | ||
|
@@ -222,8 +226,11 @@ $(TOPDIR)/.version: | |
$(Q) tools/version.sh $(VERSION_ARG) .version | ||
$(Q) chmod 755 .version | ||
|
||
testa: $(TOPDIR)/.version | ||
@cat $^ | ||
|
||
include/nuttx/version.h: $(TOPDIR)/.version tools/mkversion$(HOSTEXEEXT) | ||
$(Q) echo "Create version.h" | ||
@echo "Create version.h" | ||
$(Q) tools/mkversion $(TOPDIR) > [email protected] | ||
$(Q) $(call TESTANDREPLACEFILE, [email protected], $@) | ||
|
||
|