From 7356f0ddafc2f59d2b3a663316ee44dde8c50f35 Mon Sep 17 00:00:00 2001 From: grehan Date: Sun, 10 Apr 2016 05:58:19 +0000 Subject: 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. --- usr.sbin/bhyve/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bhyve/Makefile') 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 -- cgit v1.1