svn commit: r275067 - in projects/building-blocks: share/examples share/man/man4 share/mk tools/build/mk tools/build/options usr.sbin
Garrett Cooper
ngie at FreeBSD.org
Tue Nov 25 19:20:27 UTC 2014
Author: ngie
Date: Tue Nov 25 19:20:25 2014
New Revision: 275067
URL: https://svnweb.freebsd.org/changeset/base/275067
Log:
Make building/installing bhyve optional via MK_BHYVE on amd64
Disable building/installing bhyve from src.opts.mk on unsupported
architectures (!amd64)
Added:
projects/building-blocks/tools/build/options/WITHOUT_BHYVE (contents, props changed)
projects/building-blocks/tools/build/options/WITH_BHYVE (contents, props changed)
Modified:
projects/building-blocks/share/examples/Makefile
projects/building-blocks/share/man/man4/Makefile
projects/building-blocks/share/mk/src.opts.mk
projects/building-blocks/tools/build/mk/OptionalObsoleteFiles.inc
projects/building-blocks/usr.sbin/Makefile.amd64
Modified: projects/building-blocks/share/examples/Makefile
==============================================================================
--- projects/building-blocks/share/examples/Makefile Tue Nov 25 19:17:12 2014 (r275066)
+++ projects/building-blocks/share/examples/Makefile Tue Nov 25 19:20:25 2014 (r275067)
@@ -7,7 +7,6 @@
LDIRS= BSD_daemon \
FreeBSD_version \
IPv6 \
- bhyve \
bootforth \
csh \
diskless \
@@ -42,7 +41,6 @@ XFILES= BSD_daemon/FreeBSD.pfa \
FreeBSD_version/Makefile \
FreeBSD_version/README \
IPv6/USAGE \
- bhyve/vmrun.sh \
bootforth/README \
bootforth/boot.4th \
bootforth/frames.4th \
@@ -207,6 +205,11 @@ NO_OBJ=
# in environments where it's not possible to keep /sys publicly readable)
SHARED?= copies
+.if ${MK_BHYVE} != "no"
+LDIRS+= bhyve
+XFILES+= bhyve/vmrun.sh
+.endif
+
beforeinstall: ${SHARED} etc-examples
.ORDER: ${SHARED} etc-examples
Modified: projects/building-blocks/share/man/man4/Makefile
==============================================================================
--- projects/building-blocks/share/man/man4/Makefile Tue Nov 25 19:17:12 2014 (r275066)
+++ projects/building-blocks/share/man/man4/Makefile Tue Nov 25 19:20:25 2014 (r275067)
@@ -835,7 +835,6 @@ _xnb.4= xnb.4
.endif
.if ${MACHINE_CPUARCH} == "amd64"
-_bhyve.4= bhyve.4
_if_ntb.4= if_ntb.4
_ntb.4= ntb.4
_ntb_hw.4= ntb_hw.4
@@ -858,6 +857,10 @@ _nvram2env.4= nvram2env.4
SUBDIR= man4.${MACHINE_CPUARCH}
.endif
+.if ${MK_BHYVE} != "no"
+_bhyve.4= bhyve.4
+.endif
+
.if ${MK_TESTS} != "no"
ATF= ${.CURDIR}/../../../contrib/atf
.PATH: ${ATF}/doc
Modified: projects/building-blocks/share/mk/src.opts.mk
==============================================================================
--- projects/building-blocks/share/mk/src.opts.mk Tue Nov 25 19:17:12 2014 (r275066)
+++ projects/building-blocks/share/mk/src.opts.mk Tue Nov 25 19:20:25 2014 (r275067)
@@ -212,6 +212,13 @@ __DEFAULT_NO_OPTIONS+=CLANG_IS_CC CLANG
__DEFAULT_YES_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX
.endif
+# bhyve is only supported on amd64
+.if ${__T} == "amd64"
+__DEFAULT_YES_OPTIONS+=BHYVE
+.else
+MK_BHYVE:= no
+.endif
+
# hyperv is only supported on amd64 and i386/i386
.if ${__T} == "amd64" || (${__T} == "i386" && ${__TT} == "i386")
__DEFAULT_YES_OPTIONS+=HYPERV
Modified: projects/building-blocks/tools/build/mk/OptionalObsoleteFiles.inc
==============================================================================
--- projects/building-blocks/tools/build/mk/OptionalObsoleteFiles.inc Tue Nov 25 19:17:12 2014 (r275066)
+++ projects/building-blocks/tools/build/mk/OptionalObsoleteFiles.inc Tue Nov 25 19:20:25 2014 (r275067)
@@ -144,6 +144,14 @@ OLD_FILES+=usr/share/man/man8/authpf.8.g
OLD_FILES+=usr/share/man/man8/authpf-noip.8.gz
.endif
+.if ${MK_BHYVE} == no
+OLD_FILES+=usr/sbin/bhyve
+OLD_FILES+=usr/sbin/bhyvectl
+OLD_FILES+=usr/sbin/bhyveload
+OLD_FILES+=usr/share/man/man8/bhyve.8.gz
+OLD_FILES+=usr/share/man/man8/bhyveload.8.gz
+.endif
+
.if ${MK_BLUETOOTH} == no
OLD_FILES+=etc/bluetooth/hcsecd.conf
OLD_FILES+=etc/bluetooth/hosts
Added: projects/building-blocks/tools/build/options/WITHOUT_BHYVE
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/building-blocks/tools/build/options/WITHOUT_BHYVE Tue Nov 25 19:20:25 2014 (r275067)
@@ -0,0 +1,4 @@
+.\" $FreeBSD$
+Set to not build or install
+.Xr bhyve 8 ,
+associated utilities, and examples.
Added: projects/building-blocks/tools/build/options/WITH_BHYVE
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/building-blocks/tools/build/options/WITH_BHYVE Tue Nov 25 19:20:25 2014 (r275067)
@@ -0,0 +1,4 @@
+.\" $FreeBSD$
+Set to build and install
+.Xr bhyve 8 ,
+associated utilities, and examples.
Modified: projects/building-blocks/usr.sbin/Makefile.amd64
==============================================================================
--- projects/building-blocks/usr.sbin/Makefile.amd64 Tue Nov 25 19:17:12 2014 (r275066)
+++ projects/building-blocks/usr.sbin/Makefile.amd64 Tue Nov 25 19:20:25 2014 (r275067)
@@ -10,9 +10,11 @@ SUBDIR+= acpi
SUBDIR+= apm
.endif
SUBDIR+= asf
+.if ${MK_BHYVE} != "no"
SUBDIR+= bhyve
SUBDIR+= bhyvectl
SUBDIR+= bhyveload
+.endif
SUBDIR+= boot0cfg
.if ${MK_TOOLCHAIN} != "no"
SUBDIR+= btxld
More information about the svn-src-projects
mailing list