[Pdbg] [PATCH] build: Add explicit dependency for device-tree headers
Amitay Isaacs
amitay at ozlabs.org
Thu Aug 16 15:59:08 AEST 2018
This ensures that device tree headers are built only when required.
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 643bc99..0966a0a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -55,8 +55,6 @@ DT = fake.dts $(DT_ARM) $(DT_PPC)
DT_objects = $(DT:.dts=.dtb.o)
DT_headers = $(DT:.dts=.dt.h)
-BUILT_SOURCES = $(DT) $(DT_headers)
-
optcmd_test_SOURCES = src/optcmd.c src/parsers.c src/tests/optcmd_test.c
optcmd_test_CFLAGS = -Wall -g
@@ -80,6 +78,8 @@ pdbg_SOURCES = \
src/parsers.h \
src/progress.h
+src/main.c: $(DT_headers)
+
pdbg_LDADD = $(DT_objects) libpdbg.la libfdt.la libccan.a \
-L.libs -lrt
--
2.17.1
More information about the Pdbg
mailing list