MAKE_DTB: dependencies on device tree source files
Fixes the dependencies issue for DTB image build.

Use -MT $(DTBS) -MMD -MF $(DTSDEP) to generate the precompilation
dependencies on DTS file(s).
"-MT $(DTBS)" builds a dependency for the target DTS file.
"-MMD" includes header file dependencies but not on system header files.
"-MF $(DTSDEP)" generates a Makefile script to define the dependencies
 which is included afterward.

This change renames existing variable DEP into DTBDEP.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
1 parent 07a2fd6 commit 077b3e9afc92927d9f81a188c244737435fe3189
@Yann Gautier Yann Gautier authored on 4 Sep 2018
Showing 1 changed file
View
make_helpers/build_macros.mk