1
0
Fork 0
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:
Steffen Vogel 2016-10-30 20:27:24 -04:00
parent edd58f9fd2
commit c0875fdafa
2 changed files with 5 additions and 3 deletions

View file

@ -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!

View file

@ -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)