Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107119596
D39072.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D39072.id.diff
View Options
diff --git a/Makefile.inc1 b/Makefile.inc1
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2301,8 +2301,8 @@
# r245440 mtree -N support added
# r313404 requires sha384.h for libnetbsd, added to libmd in r292782
.if ${BOOTSTRAPPING} < 1100093
+_libnetbsd= lib/libnetbsd
_nmtree= lib/libmd \
- lib/libnetbsd \
usr.sbin/nmtree
${_bt}-lib/libnetbsd: ${_bt}-lib/libmd
@@ -2335,9 +2335,23 @@
_bootstrap_tools_links+=crunchgen
.endif
+.if ${MK_DISK_IMAGE_TOOLS_BOOTSTRAP} != "no"
+_etdump= usr.bin/etdump
+_makefs= usr.sbin/makefs
+
+_libnetbsd= lib/libnetbsd
+${_bt}-usr.sbin/makefs: ${_bt}-lib/libnetbsd
+
+.if defined(BOOTSTRAP_ALL_TOOLS)
+_libsbuf= lib/libsbuf
+${_bt}-usr.sbin/makefs: ${_bt}-lib/libsbuf
+.endif
+.endif
+
# 1300102: VHDX support
.if ${BOOTSTRAPPING} < 1201520 || \
- (${BOOTSTRAPPING} > 1300000 && ${BOOTSTRAPPING} < 1300102)
+ (${BOOTSTRAPPING} > 1300000 && ${BOOTSTRAPPING} < 1300102) || \
+ ${MK_DISK_IMAGE_TOOLS_BOOTSTRAP} != "no"
_mkimg= usr.bin/mkimg
.else
_bootstrap_tools_links+=mkimg
@@ -2538,6 +2552,10 @@
${_flua} \
${_crunchide} \
${_crunchgen} \
+ ${_etdump} \
+ ${_libnetbsd} \
+ ${_libsbuf} \
+ ${_makefs} \
${_mkimg} \
${_nmtree} \
${_vtfontcvt} \
diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5
--- a/share/man/man5/src.conf.5
+++ b/share/man/man5/src.conf.5
@@ -569,6 +569,13 @@
.Pa /etc/src-env.conf ,
not
.Pa /etc/src.conf .
+.It Va WITH_DISK_IMAGE_TOOLS_BOOTSTRAP
+Build
+.Xr etdump 1 ,
+.Xr makefs 8
+and
+.Xr mkimg 1
+as bootstrap tools.
.It Va WITHOUT_DMAGENT
Do not build dma Mail Transport Agent.
.It Va WITHOUT_DOCCOMPRESS
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -197,6 +197,7 @@
CLANG_EXTRAS \
CLANG_FORMAT \
DETECT_TZ_CHANGES \
+ DISK_IMAGE_TOOLS_BOOTSTRAP \
DTRACE_TESTS \
EXPERIMENTAL \
HESIOD \
diff --git a/tools/build/options/WITH_DISK_IMAGE_TOOLS_BOOTSTRAP b/tools/build/options/WITH_DISK_IMAGE_TOOLS_BOOTSTRAP
new file mode 100644
--- /dev/null
+++ b/tools/build/options/WITH_DISK_IMAGE_TOOLS_BOOTSTRAP
@@ -0,0 +1,6 @@
+Build
+.Xr etdump 1 ,
+.Xr makefs 8
+and
+.Xr mkimg 1
+as bootstrap tools.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 10:17 AM (9 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15752834
Default Alt Text
D39072.id.diff (2 KB)
Attached To
Mode
D39072: Add new DISK_IMAGE_TOOLS_BOOTSTRAP option
Attached
Detach File
Event Timeline
Log In to Comment