add semantic versioning
parent
ddbcd570bc
commit
52a2dc7fe2
|
@ -32,15 +32,15 @@ recover: obj/bootstub.$(PROJ_NAME).bin obj/$(PROJ_NAME).bin
|
|||
$(DFU_UTIL) -a 0 -s 0x08000000:leave -D obj/bootstub.$(PROJ_NAME).bin
|
||||
|
||||
ifneq ($(wildcard ../.git/HEAD),)
|
||||
obj/gitversion.h: ../.git/HEAD ../.git/index
|
||||
echo "const uint8_t gitversion[] = \"$(shell git rev-parse HEAD)\";" > $@
|
||||
obj/gitversion.h: ../VERSION ../.git/HEAD ../.git/index
|
||||
echo "const uint8_t gitversion[] = \"$(shell cat ../VERSION)-$(shell git rev-parse HEAD)\";" > $@
|
||||
else
|
||||
ifneq ($(wildcard ../../.git/modules/panda/HEAD),)
|
||||
obj/gitversion.h: ../../.git/modules/panda/HEAD ../../.git/modules/panda/index
|
||||
echo "const uint8_t gitversion[] = \"$(shell git rev-parse HEAD)\";" > $@
|
||||
obj/gitversion.h: ../VERSION ../../.git/modules/panda/HEAD ../../.git/modules/panda/index
|
||||
echo "const uint8_t gitversion[] = \"$(shell cat ../VERSION)-$(shell git rev-parse HEAD)\";" > $@
|
||||
else
|
||||
obj/gitversion.h:
|
||||
echo "const uint8_t gitversion[] = \"RELEASE\";" > $@
|
||||
obj/gitversion.h: ../VERSION
|
||||
echo "const uint8_t gitversion[] = \"$(shell cat ../VERSION)-RELEASE\";" > $@
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
@ -27,15 +27,15 @@ cert.h:
|
|||
../crypto/getcertheader.py ../certs/debugesp.pub ../certs/releaseesp.pub > cert.h
|
||||
|
||||
ifneq ($(wildcard ../.git/HEAD),)
|
||||
gitversion.h: ../.git/HEAD ../.git/index
|
||||
echo "const uint8_t gitversion[] = \"$(shell git rev-parse HEAD)\";" > $@
|
||||
gitversion.h: ../VERSION ../.git/HEAD ../.git/index
|
||||
echo "const uint8_t gitversion[] = \"$(shell cat ../VERSION)-$(shell git rev-parse HEAD)\";" > $@
|
||||
else
|
||||
ifneq ($(wildcard ../../.git/modules/panda/HEAD),)
|
||||
gitversion.h: ../../.git/modules/panda/HEAD ../../.git/modules/panda/index
|
||||
echo "const uint8_t gitversion[] = \"$(shell git rev-parse HEAD)\";" > $@
|
||||
gitversion.h: ../VERSION ../../.git/modules/panda/HEAD ../../.git/modules/panda/index
|
||||
echo "const uint8_t gitversion[] = \"$(shell cat ../VERSION)-$(shell git rev-parse HEAD)\";" > $@
|
||||
else
|
||||
gitversion.h:
|
||||
echo "const uint8_t gitversion[] = \"RELEASE\";" > $@
|
||||
gitversion.h: ../VERSION
|
||||
echo "const uint8_t gitversion[] = \"$(shell cat ../VERSION)-RELEASE\";" > $@
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue