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/d451e8490a5c
branches:  trunk
changeset: 379479:d451e8490a5c
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 ddaa6eeeac6b -r d451e8490a5c 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 @@ dtbinstall: dtb
        ${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