summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@ozlabs.org>2018-08-16 15:59:08 +1000
committerAlistair Popple <alistair@popple.id.au>2018-09-07 13:42:46 +1000
commitac3d0504402fdadf7e227da851114d10012623c5 (patch)
tree31c2e72301ae3ea06570ed3d17cca51c5a27c26a
parenta70adda7e3a65ee7d8b6063eb3cac2a094d027ad (diff)
downloadpdbg-ac3d0504402fdadf7e227da851114d10012623c5.tar.gz
pdbg-ac3d0504402fdadf7e227da851114d10012623c5.zip
build: Add explicit dependency for device-tree headers
This ensures that device tree headers are built only when required. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
-rw-r--r--Makefile.am4
1 files 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
OpenPOWER on IntegriCloud