summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2016-04-10 05:58:19 +0000
committergrehan <grehan@FreeBSD.org>2016-04-10 05:58:19 +0000
commit7356f0ddafc2f59d2b3a663316ee44dde8c50f35 (patch)
treebaa9c6f5fc807f2c920fe3e6bf11483df258ade5
parent28641629e2c5d8c48ff001cd890033f51d365508 (diff)
downloadFreeBSD-src-7356f0ddafc2f59d2b3a663316ee44dde8c50f35.zip
FreeBSD-src-7356f0ddafc2f59d2b3a663316ee44dde8c50f35.tar.gz
Allow the location of the kernel source tree to be overridden.
This makes it easier for the bhyve executable to be built out of the tree.
-rw-r--r--usr.sbin/bhyve/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile
index 0e1a85e..37e1c67 100644
--- a/usr.sbin/bhyve/Makefile
+++ b/usr.sbin/bhyve/Makefile
@@ -8,6 +8,8 @@ DEBUG_FLAGS= -g -O0
MAN= bhyve.8
+SYSDIR?=${.CURDIR}/../..
+
SRCS= \
atkbdc.c \
acpi.c \
@@ -42,7 +44,7 @@ SRCS= \
xmsr.c \
spinup_ap.c
-.PATH: ${.CURDIR}/../../sys/amd64/vmm
+.PATH: ${SYSDIR}/sys/amd64/vmm
SRCS+= vmm_instruction_emul.c
LIBADD= vmmapi md pthread
OpenPOWER on IntegriCloud