[Pdbg] [PATCH 14/18] Makefile: Separate the list of device tree sources
Amitay Isaacs
amitay at ozlabs.org
Wed May 16 16:17:32 AEST 2018
From: Amitay Isaacs <amitay at gmail.com>
Signed-off-by: Amitay Isaacs <amitay at gmail.com>
---
Makefile.am | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 8760184..cff3529 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,13 +8,17 @@ bin_PROGRAMS = pdbg
ACLOCAL_AMFLAGS = -Im4
AM_CFLAGS = -I$(top_srcdir)/ccan/array_size -Wall -Werror -O2
+DT = fake.dts \
+ p8-fsi.dts p8-i2c.dts p8-host.dts \
+ p9w-fsi.dts p9r-fsi.dts p9z-fsi.dts p9-kernel.dts p9-host.dts
+
+DT_objects = $(DT:.dts=.dtb.o)
+
pdbg_SOURCES = \
src/main.c src/cfam.c src/scom.c src/reg.c src/mem.c src/thread.c \
src/ring.c src/htm.c src/options_ at ARCH@.c
-pdbg_LDADD = fake.dtb.o p8-fsi.dtb.o p8-i2c.dtb.o p9w-fsi.dtb.o p8-host.dtb.o \
- p9z-fsi.dtb.o p9r-fsi.dtb.o p9-kernel.dtb.o libpdbg.la libfdt.la \
- p9-host.dtb.o \
+pdbg_LDADD = $(DT_objects) libpdbg.la libfdt.la \
-L.libs
pdbg_LDFLAGS = -Wl,--whole-archive,-lpdbg,--no-whole-archive
--
2.17.0
More information about the Pdbg
mailing list