Author: imp
Date: Mon Feb  9 16:04:08 2015
New Revision: 278460
URL: https://svnweb.freebsd.org/changeset/base/278460

Log:
  We need to create /boot/dtb since some use cases don't create a full
  root with BSD.root.mtree, so it often times will not exist. Rather
  than force the latter for an installkernel, just create the directory
  with a comment about why.
  
  Submitted by: Guy Yur

Modified:
  head/sys/conf/dtb.mk

Modified: head/sys/conf/dtb.mk
==============================================================================
--- head/sys/conf/dtb.mk        Mon Feb  9 16:04:01 2015        (r278459)
+++ head/sys/conf/dtb.mk        Mon Feb  9 16:04:08 2015        (r278460)
@@ -67,6 +67,10 @@ CLEANFILES+=${_dts:R:S/$/.dtb/}
 realinstall: _dtbinstall
 .ORDER: beforeinstall _kmodinstall
 _dtbinstall:
+# Need to create this because installkernel doens't invoke mtree with 
BSD.root.mtree
+# to make sure the tree is setup properly. This may break ownership of 
${DTBDIR}
+# for no-root build.
+       mkdir -p ${DESTDIR}${DTBDIR}
 .for _dtb in ${DTB}
        ${INSTALL} -o ${DTBOWN} -g ${DTBGRP} -m ${DTBMODE} \
            ${_INSTALLFLAGS} ${_dtb} ${DESTDIR}${DTBDIR}
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to