Skip to content
Snippets Groups Projects
Commit 7d1bf261 authored by Sebastian Meiling's avatar Sebastian Meiling
Browse files

build: remove hostname from RIOT_VERSION string

The hostname does not provide any additional or necessary information to
the RIOT_VERSION string. On the contrary, some might consider the hostname
as personal information, which should not be exposed unsolicitedly.
parent 1140b37c
No related branches found
No related tags found
No related merge requests found
...@@ -319,7 +319,7 @@ include $(RIOTMAKE)/cflags.inc.mk ...@@ -319,7 +319,7 @@ include $(RIOTMAKE)/cflags.inc.mk
# make the RIOT version available to the program # make the RIOT version available to the program
ifeq ($(origin RIOT_VERSION), undefined) ifeq ($(origin RIOT_VERSION), undefined)
GIT_STRING := $(shell git --git-dir="$(RIOTBASE)/.git" describe --always --abbrev=4 --dirty=-`hostname` 2> /dev/null) GIT_STRING := $(shell git --git-dir="$(RIOTBASE)/.git" describe --always --abbrev=4 2> /dev/null)
ifneq (,$(GIT_STRING)) ifneq (,$(GIT_STRING))
GIT_BRANCH := $(shell git --git-dir="$(RIOTBASE)/.git" rev-parse --abbrev-ref HEAD) GIT_BRANCH := $(shell git --git-dir="$(RIOTBASE)/.git" rev-parse --abbrev-ref HEAD)
ifeq ($(strip $(GIT_BRANCH)),master) ifeq ($(strip $(GIT_BRANCH)),master)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment