+2021-04-08 Luis Machado <luis.machado@linaro.org>
+
+ * Makefile.in (moxie-gdb.dtb): Add maintainer mode dependency.
+ (install-dtb): Install prebuilt dtb file.
+ * moxie-gdb.dtb: New prebuilt file.
+
2021-04-02 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4, configure: Regenerate.
## COMMON_PRE_CONFIG_FRAG
+DTC = @DTC@
+
dtbdir = @datadir@/gdb/dtb
SIM_OBJS = \
all: moxie-gdb.dtb
-moxie-gdb.dtb: moxie-gdb.dts
- dtc -O dtb -o moxie-gdb.dtb ${srcdir}/moxie-gdb.dts
+moxie-gdb.dtb: @MAINTAINER_MODE_TRUE@ moxie-gdb.dts
+ @echo Regenerating moxie-gdb.dtb
+ if test "x$(DTC)" != x; then \
+ $(DTC) -O dtb -o moxie-gdb.dtb ${srcdir}/moxie-gdb.dts || exit 1; \
+ $(SHELL) $(srcroot)/move-if-change moxie-gdb.dtb ${srcdir}/moxie-gdb.dtb || exit 1; \
+ else \
+ echo "Could not update the moxie-gdb.dtb file because the device "; \
+ echo "tree compiler tool (dtc) is missing. Install the tool to "; \
+ echo "update the device tree blob."; \
+ fi
install-dtb: moxie-gdb.dtb
$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(dtbdir)
- $(INSTALL_DATA) moxie-gdb.dtb $(DESTDIR)$(dtbdir)/moxie-gdb.dtb
+ $(INSTALL_DATA) $(srcdir)/moxie-gdb.dtb $(DESTDIR)$(dtbdir)/moxie-gdb.dtb