Skip to content
Snippets Groups Projects
Commit 5a598b64 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

make: introduce RIOT_VERSION_OVERRIDE

Allows overriding of -DRIOT_VERSION regardless of the version actually
used. Necessary for reproducable compiles.
parent 2226d14e
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,12 @@ ifeq ($(origin RIOT_VERSION), undefined)
RIOT_VERSION := "UNKNOWN (builddir: $(RIOTBASE))"
endif
endif
ifneq (,$(RIOT_VERSION_OVERRIDE))
export CFLAGS += -DRIOT_VERSION=\"$(RIOT_VERSION_OVERRIDE)\"
else
export CFLAGS += -DRIOT_VERSION=\"$(RIOT_VERSION)\"
endif
# the binaries to link
BASELIBS += $(BINDIR)$(BOARD)_base.a
......
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