2016-08-17 15:08:22 +00:00
|
|
|
# Functionality common to both top-level project makefile
|
|
|
|
# and component makefiles
|
|
|
|
#
|
|
|
|
|
|
|
|
# Include project config file, if it exists.
|
|
|
|
#
|
|
|
|
# (Note that we only rebuild auto.conf automatically for some targets,
|
|
|
|
# see project_config.mk for details.)
|
|
|
|
-include $(PROJECT_PATH)/build/include/config/auto.conf
|
|
|
|
|
|
|
|
#Handling of V=1/VERBOSE=1 flag
|
2016-08-24 05:02:24 +00:00
|
|
|
#
|
|
|
|
# if V=1, $(summary) does nothing and $(details) will echo extra details
|
|
|
|
# if V is unset or not 1, $(summary) echoes a summary and $(details) does nothing
|
2016-08-17 15:08:22 +00:00
|
|
|
V ?= $(VERBOSE)
|
|
|
|
ifeq ("$(V)","1")
|
|
|
|
Q :=
|
2016-08-24 05:02:24 +00:00
|
|
|
summary := @true
|
|
|
|
details := @echo
|
2016-08-17 15:08:22 +00:00
|
|
|
else
|
|
|
|
Q := @
|
2016-08-24 05:02:24 +00:00
|
|
|
summary := @echo
|
|
|
|
details := @true
|
2016-08-17 15:08:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# General make utilities
|
|
|
|
|
|
|
|
# convenience variable for printing an 80 asterisk wide separator line
|
|
|
|
SEPARATOR:="*******************************************************************************"
|
|
|
|
|
|
|
|
# macro to remove quotes from an argument, ie $(call dequote (CONFIG_BLAH))
|
|
|
|
define dequote
|
|
|
|
$(subst ",,$(1))
|
|
|
|
endef
|
|
|
|
# " comment kept here to keep syntax highlighting happy
|