mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: add LOG_LEVEL to overridable variables
This commit is contained in:
parent
a66693d111
commit
166ed18939
@ -141,6 +141,14 @@ ifeq ($(DEVELHELP),1)
|
||||
CFLAGS += -DDEVELHELP
|
||||
endif
|
||||
|
||||
# Override LOG_LEVEL if variable is set and if CFLAGS doesn't already contain
|
||||
# a LOG_LEVEL config
|
||||
ifdef LOG_LEVEL
|
||||
ifneq (,$(filter -DLOG_LEVEL=%,$(CFLAGS)))
|
||||
CFLAGS += -DLOG_LEVEL=$(LOG_LEVEL)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Fail on warnings. Can be overridden by `make WERROR=0`.
|
||||
WERROR ?= 1
|
||||
export WERROR
|
||||
|
@ -95,3 +95,5 @@ export UNZIP_HERE # Use `cd $(SOME_FOLDER) && $(UNZIP_HERE) $(SOME_FI
|
||||
|
||||
export LAZYSPONGE # Command saving stdin to a file only on content update.
|
||||
export LAZYSPONGE_FLAGS # Parameters supplied to LAZYSPONGE.
|
||||
|
||||
# LOG_LEVEL # Logging level as integer (NONE: 0, ERROR: 1, WARNING: 2, INFO: 3, DEBUG: 4, default: 3)
|
||||
|
Loading…
Reference in New Issue
Block a user