aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2018-08-20 10:39:53 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2018-08-20 10:39:53 +0000
commit4acc8a67bad0a91dd9dbe07f2904a5dfdf313817 (patch)
tree70a6c867af59750d67a36afa548c0d6cfbce944c /tools
parent078018e0ac7f389525fdcdabe3080fb73bc61827 (diff)
Don't create directories in ${WORLDTMP}/legacy with mtree
This has two advantages: 1) We no longer create lots of empty directories that are not needed 2) This is a requirement for building on non-FreeBSD hosts since mtree will only exist after the bootstrap-tools phase there. Aproved By: jhb (mentor) Differential Revision: https://reviews.freebsd.org/D16773
Notes
Notes: svn path=/head/; revision=338098
Diffstat (limited to 'tools')
-rw-r--r--tools/build/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile
index 1b6522b41632..0e6d77716852 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -59,4 +59,17 @@ SUBDIR= cross-build
# Needed to build config (since it uses libnv)
SYSINCS+= ${SRCTOP}/sys/sys/nv.h ${SRCTOP}/sys/sys/cnv.h
+
+# Create all the directories that are needed during the legacy, bootstrap-tools
+# and cross-tools stages. We do this here using mkdir since mtree may not exist
+# yet (this happens if we are crossbuilding from Linux/Mac).
+installdirs:
+.for _dir in bin sbin usr/bin usr/sbin usr/lib usr/include lib/geom lib/casper
+ mkdir -p "${DESTDIR}/${_dir}"
+.endfor
+
+.for _group in ${INCSGROUPS:NINCS}
+ mkdir -p "${DESTDIR}/${${_group}DIR}"
+.endfor
+
.include <bsd.lib.mk>