mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: introduce RIOT_VERSION_OVERRIDE
Allows overriding of -DRIOT_VERSION regardless of the version actually used. Necessary for reproducable compiles.
This commit is contained in:
parent
2226d14e12
commit
5a598b64b4
@ -152,7 +152,12 @@ ifeq ($(origin RIOT_VERSION), undefined)
|
|||||||
RIOT_VERSION := "UNKNOWN (builddir: $(RIOTBASE))"
|
RIOT_VERSION := "UNKNOWN (builddir: $(RIOTBASE))"
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(RIOT_VERSION_OVERRIDE))
|
||||||
|
export CFLAGS += -DRIOT_VERSION=\"$(RIOT_VERSION_OVERRIDE)\"
|
||||||
|
else
|
||||||
export CFLAGS += -DRIOT_VERSION=\"$(RIOT_VERSION)\"
|
export CFLAGS += -DRIOT_VERSION=\"$(RIOT_VERSION)\"
|
||||||
|
endif
|
||||||
|
|
||||||
# the binaries to link
|
# the binaries to link
|
||||||
BASELIBS += $(BINDIR)$(BOARD)_base.a
|
BASELIBS += $(BINDIR)$(BOARD)_base.a
|
||||||
|
Loading…
Reference in New Issue
Block a user