Skip to content

Commit

Permalink
squash! Makefile.include: remove RIOT_VERSION_OVERRIDE
Browse files Browse the repository at this point in the history
Add deprecation warning.
  • Loading branch information
cladmi committed Jul 8, 2019
1 parent 4c69437 commit 6fe0d21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,11 @@ $(RIOTBUILD_CONFIG_HEADER_C): FORCE

CFLAGS_WITH_MACROS := $(CFLAGS)

# Deprecate using RIOT_VERSION_OVERRIDE but currently keep the behavior
ifneq (,$(RIOT_VERSION_OVERRIDE))
$(warning 'RIOT_VERSION_OVERRIDE' is deprecated, it can now be set with 'RIOT_VERSION' directly.)
RIOT_VERSION = $(RIOT_VERSION_OVERRIDE)
endif
export CFLAGS_WITH_MACROS += -DRIOT_VERSION=\"$(RIOT_VERSION)\"

CFLAGS := $(patsubst -D%,,$(CFLAGS))
Expand Down

0 comments on commit 6fe0d21

Please sign in to comment.