mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
readd Git commit hash to version string
This commit is contained in:
parent
edd58f9fd2
commit
c0875fdafa
2 changed files with 5 additions and 3 deletions
7
Makefile
7
Makefile
|
@ -37,8 +37,11 @@ LDFLAGS += -L$(BUILDDIR)
|
|||
|
||||
ifdef CI
|
||||
CFLAGS += -D_GIT_REV='"${CI_BUILD_REF:0:7}~ci"'
|
||||
else ifdef GIT
|
||||
CFLAGS += -D_GIT_REV='"$(shell git rev-parse --short HEAD)"'
|
||||
else
|
||||
GIT = $(shell type -p git)
|
||||
ifneq ($(GIT),)
|
||||
CFLAGS += -D_GIT_REV='"$(shell git rev-parse --short HEAD)"'
|
||||
endif
|
||||
endif
|
||||
|
||||
# We must compile without optimizations for gcov!
|
||||
|
|
|
@ -30,7 +30,6 @@ nodes = {
|
|||
# udp Send / receive UDP packets
|
||||
# ip Send / receive IP packets
|
||||
# eth Send / receive raw Ethernet frames (IEEE802.3)
|
||||
|
||||
|
||||
header = "gtnet-skt:fake", # Header can be one of:
|
||||
# default | villas Use VILLASnode protocol (see struct msg) (default)
|
||||
|
|
Loading…
Add table
Reference in a new issue