Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2021 11:05:55 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0cace0bb0ae0 - main - Add mkimg to the list of bootstrap tools
Message-ID:  <202101071105.107B5tcv011360@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=0cace0bb0ae0158d8a770a88570fa93d47ffc980

commit 0cace0bb0ae0158d8a770a88570fa93d47ffc980
Author:     Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
AuthorDate: 2021-01-06 17:08:52 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-01-07 09:26:21 +0000

    Add mkimg to the list of bootstrap tools
    
    Having this as part of the bootstrap tools is useful to build disk images
    to boot in QEMU (especially when building on a Linux/macOS host where
    mkimg is not available). We have been bootstrapping mkimg in CheriBSD for
    a long time (using LOCAL_XTOOL_DIRS) but I believe this is also useful
    upstream.
    
    Reviewed By:    emaste, brooks
    Differential Revision: https://reviews.freebsd.org/D27602
---
 Makefile.inc1 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index 1bf174419da0..4527c22208c5 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2287,6 +2287,14 @@ _bootstrap_tools_links+=kbdcontrol
 .endif
 .endif
 
+# 1300102: VHDX support
+.if ${BOOTSTRAPPING} < 1201520 || \
+	(${BOOTSTRAPPING} > 1300000 && ${BOOTSTRAPPING} < 1300102)
+_mkimg=	usr.bin/mkimg
+.else
+_bootstrap_tools_links+=mkimg
+.endif
+
 _yacc=		usr.bin/yacc
 
 .if ${MK_BSNMP} != "no"
@@ -2462,6 +2470,7 @@ bootstrap-tools: ${_bt}-links .PHONY
     ${_flua} \
     ${_crunchide} \
     ${_crunchgen} \
+    ${_mkimg} \
     ${_nmtree} \
     ${_vtfontcvt} \
     ${_localedef} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101071105.107B5tcv011360>