aboutsummaryrefslogtreecommitdiff
path: root/make_helpers/build_macros.mk
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-12-22 15:23:05 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-05 11:39:19 +0900
commit1d274ab00fce999b9ce39849d1db984aa59ae015 (patch)
treefa60dc1484fb53ac7fc661f792170ad1ca0c6eb2 /make_helpers/build_macros.mk
parent710ea1d01a1031dab06af3835c76b510d45cd362 (diff)
downloadtrusted-firmware-a-1d274ab00fce999b9ce39849d1db984aa59ae015.tar.gz
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>
Diffstat (limited to 'make_helpers/build_macros.mk')
-rw-r--r--make_helpers/build_macros.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk
index 5de810b9db..bf9dc79494 100644
--- a/make_helpers/build_macros.mk
+++ b/make_helpers/build_macros.mk
@@ -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