From 5ccf6ce169cb3b492c7ec9ee9d13f8b285cc262f Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Sun, 10 Apr 2016 05:58:19 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile index 0e1a85ed5a37..37e1c6710161 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