Author: brooks
Date: Tue Sep 18 16:06:24 2018
New Revision: 338752
URL: https://svnweb.freebsd.org/changeset/base/338752

Log:
  Only enable HyperV support by default on x86.
  
  Without this we get spurious output during boot as we try to run
  nonexistant HyperV scripts on non-x86 models.
  
  Reviewed by:  kib
  Approved by:  re (gjb)
  Differential Revision:        https://reviews.freebsd.org/D17211

Added:
  head/tools/build/options/WITH_HYPERV   (contents, props changed)
Modified:
  head/share/mk/src.opts.mk

Modified: head/share/mk/src.opts.mk
==============================================================================
--- head/share/mk/src.opts.mk   Tue Sep 18 15:31:24 2018        (r338751)
+++ head/share/mk/src.opts.mk   Tue Sep 18 16:06:24 2018        (r338752)
@@ -111,7 +111,6 @@ __DEFAULT_YES_OPTIONS = \
     GPIO \
     HAST \
     HTML \
-    HYPERV \
     ICONV \
     INET \
     INET6 \
@@ -371,6 +370,13 @@ __DEFAULT_YES_OPTIONS+=MLX5TOOL
 .else
 __DEFAULT_NO_OPTIONS+=CXGBETOOL
 __DEFAULT_NO_OPTIONS+=MLX5TOOL
+.endif
+
+# HyperV is currently x86-only
+.if ${__T} == "amd64" || ${__T} == "i386"
+__DEFAULT_YES_OPTIONS+=HYPERV
+.else
+__DEFAULT_NO_OPTIONS+=HYPERV
 .endif
 
 # NVME is only x86 and powerpc64

Added: head/tools/build/options/WITH_HYPERV
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/build/options/WITH_HYPERV        Tue Sep 18 16:06:24 2018        
(r338752)
@@ -0,0 +1,2 @@
+.\" $FreeBSD$
+Set to build or install HyperV utilities.
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to