Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Add support for installing a copy of dtb files to t...



details:   https://anonhg.NetBSD.org/src/rev/2c64d4413243
branches:  trunk
changeset: 1021510:2c64d4413243
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jun 02 10:28:21 2021 +0000

description:
Add support for installing a copy of dtb files to the base dtb directory
when DTBSUBDIR is defined.

diffstat:

 share/mk/bsd.dtb.mk |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 2eee52a3474b -r 2c64d4413243 share/mk/bsd.dtb.mk
--- a/share/mk/bsd.dtb.mk       Wed Jun 02 09:23:32 2021 +0000
+++ b/share/mk/bsd.dtb.mk       Wed Jun 02 10:28:21 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.dtb.mk,v 1.2 2020/05/19 08:59:36 rin Exp $
+#      $NetBSD: bsd.dtb.mk,v 1.3 2021/06/02 10:28:21 jmcneill Exp $
 
 .include <bsd.init.mk>
 .include <bsd.own.mk>
@@ -71,11 +71,24 @@
        ${INSTALL_FILE} -o ${DTBOWN} -g ${DTBGRP} -m ${DTBMODE} \
            ${.OBJDIR}/${_dtb} ${DESTDIR}${DTBINSTDIR}
 .endfor
+.if defined(DTSSUBDIR)
+.for _dtb in ${DTB_NOSUBDIR}
+       ${_MKSHMSG_INSTALL} ${_dtb}
+       ${_MKSHECHO} "${INSTALL_FILE} -o ${DTBOWN} -g ${DTBGRP} -m ${DTBMODE} \
+           ${.OBJDIR}/${_dtb} ${DESTDIR}${DTBDIR}"
+       ${INSTALL_FILE} -o ${DTBOWN} -g ${DTBGRP} -m ${DTBMODE} \
+           ${.OBJDIR}/${_dtb} ${DESTDIR}${DTBDIR}
+.endfor
+.endif
 
 dtblist:
 .if defined(DTSSUBDIR)
        @echo ".${DTBINSTDIR}\t\tdtb-base-boot\tdtb" | \
            ${TOOL_SED} 's/\\t/ /g'
+.for _dtb in ${DTB_NOSUBDIR}
+       @echo ".${DTBDIR}/${_dtb}\t\tdtb-base-boot\tdtb" | \
+           ${TOOL_SED} 's/\\t/ /g'
+.endfor
 .endif
 .for _dtb in ${DTB}
        @echo ".${DTBINSTDIR}/${_dtb}\t\tdtb-base-boot\tdtb" | \



Home | Main Index | Thread Index | Old Index