]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
Build: add -MP option to add dummy rules to *.d files
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 22 Dec 2016 06:23:05 +0000 (15:23 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 5 Jan 2017 02:39:19 +0000 (11:39 +0900)
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>
make_helpers/build_macros.mk

index 5de810b9db8589be4ee42fb165700c0eeeeb1aa3..bf9dc7949449780fdd4458686c368b72261ce354 100644 (file)
@@ -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