summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/devd/Makefile7
-rw-r--r--libexec/Makefile7
-rw-r--r--libexec/Makefile.amd645
-rw-r--r--libexec/Makefile.i3865
-rw-r--r--share/mk/src.opts.mk8
5 files changed, 16 insertions, 16 deletions
diff --git a/etc/devd/Makefile b/etc/devd/Makefile
index 6d1031e..27dfb92 100644
--- a/etc/devd/Makefile
+++ b/etc/devd/Makefile
@@ -8,6 +8,9 @@ FILES+= apple.conf
.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
FILES+= asus.conf
+.if ${MK_HYPERV} != "no"
+FILES+= hyperv.conf
+.endif
.endif
.if ${MK_USB} != "no"
@@ -18,10 +21,6 @@ FILES+= uath.conf ulpt.conf usb.conf
FILES+= zfs.conf
.endif
-.if ${MK_HYPERV} != "no"
-FILES+= hyperv.conf
-.endif
-
NO_OBJ=
FILESDIR= /etc/devd
FILESMODE= 644
diff --git a/libexec/Makefile b/libexec/Makefile
index 74cc6d8..7d1c1f8 100644
--- a/libexec/Makefile
+++ b/libexec/Makefile
@@ -13,7 +13,6 @@ SUBDIR= ${_atf} \
fingerd \
ftpd \
getty \
- ${_hyperv} \
${_mail.local} \
${_mknetid} \
${_pppoed} \
@@ -55,10 +54,6 @@ _dma= dma
_dma-mbox-create= dma-mbox-create
.endif
-.if ${MK_HYPERV} != "no"
-_hyperv= hyperv
-.endif
-
.if ${MK_NIS} != "no"
_mknetid= mknetid
_ypxfr= ypxfr
@@ -95,4 +90,6 @@ _atf= atf
_tests= tests
.endif
+.include <bsd.arch.inc.mk>
+
.include <bsd.subdir.mk>
diff --git a/libexec/Makefile.amd64 b/libexec/Makefile.amd64
new file mode 100644
index 0000000..1092a29
--- /dev/null
+++ b/libexec/Makefile.amd64
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+.if ${MK_HYPERV} != "no"
+SUBDIR+= hyperv
+.endif
diff --git a/libexec/Makefile.i386 b/libexec/Makefile.i386
new file mode 100644
index 0000000..1092a29
--- /dev/null
+++ b/libexec/Makefile.i386
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+.if ${MK_HYPERV} != "no"
+SUBDIR+= hyperv
+.endif
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index a852d3d..91ed3c0 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -90,6 +90,7 @@ __DEFAULT_YES_OPTIONS = \
GPL_DTC \
GROFF \
HTML \
+ HYPERV \
ICONV \
INET \
INET6 \
@@ -211,13 +212,6 @@ __DEFAULT_NO_OPTIONS+=CLANG_IS_CC CLANG CLANG_BOOTSTRAP
__DEFAULT_YES_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX
.endif
-# HyperV is only available for x86 and amd64.
-.if ${__T} == "amd64" || ${__T} == "i386"
-__DEFAULT_YES_OPTIONS+=HYPERV
-.else
-__DEFAULT_NO_OPTIONS+=HYPERV
-.endif
-
.include <bsd.mkopt.mk>
#
OpenPOWER on IntegriCloud