Message ID | 20180816055908.1011619-1-amitay@ozlabs.org |
---|---|
State | Accepted |
Headers | show |
Series | build: Add explicit dependency for device-tree headers | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | master/apply_patch Successfully applied |
snowpatch_ozlabs/build-multiarch | success | Test build-multiarch on branch master |
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
This ensures that device tree headers are built only when required. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)