2021-11-30 12:24:43 +01:00
|
|
|
# check that one, and only one log backend is being used
|
|
|
|
USED_LOG_BACKENDS := $(sort $(filter log_%,$(USEMODULE)))
|
|
|
|
|
|
|
|
ifeq (0,$(words $(USED_LOG_BACKENDS)))
|
|
|
|
$(error The log module is being used but no backend is provided.)
|
|
|
|
else ifeq (1,$(words $(USED_LOG_BACKENDS)))
|
|
|
|
# only one backend is provided, this is correct
|
|
|
|
else
|
|
|
|
$(info Only one log backend can be used at a time.)
|
|
|
|
$(error Currently selecting: $(USED_LOG_BACKENDS))
|
|
|
|
endif
|
|
|
|
|
2015-02-25 16:31:03 +01:00
|
|
|
ifneq (,$(filter log_printfnoformat,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/log/log_printfnoformat
|
2015-02-25 16:31:03 +01:00
|
|
|
endif
|
2019-05-23 13:58:16 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter log_color,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/log/log_color
|
|
|
|
endif
|