Build: add -MP option to add dummy rules to *.d files
This adds a phony target for each dependency other than the main file, causing each to depend on nothing. Without this, the incremental build will fail when a header file is removed. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
710ea1d01a
commit
1d274ab00f
|
@ -184,7 +184,7 @@ endef
|
|||
# Auxiliary macros to build TF images from sources
|
||||
################################################################################
|
||||
|
||||
MAKE_DEP = -Wp,-MD,$(DEP) -MT $$@
|
||||
MAKE_DEP = -Wp,-MD,$(DEP) -MT $$@ -MP
|
||||
|
||||
# MAKE_C builds a C source file and generates the dependency file
|
||||
# $(1) = output directory
|
||||
|
|
Loading…
Reference in New Issue