aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/vmm
diff options
context:
space:
mode:
authorNeel Natu <neel@FreeBSD.org>2014-10-20 02:57:30 +0000
committerNeel Natu <neel@FreeBSD.org>2014-10-20 02:57:30 +0000
commite1a172e1c29c3c3d3f9ade61a7c57d820cf0bca3 (patch)
treeb2c78a90b3492af4d40dfeb9faedeb6bb82208c4 /sys/modules/vmm
parent867b59607cc7f3b18bc5628b972ef337cf7da526 (diff)
parentb82e2e94e29dd67182879e31ae61cc258cd01327 (diff)
Notes
Diffstat (limited to 'sys/modules/vmm')
-rw-r--r--sys/modules/vmm/Makefile24
1 files changed, 13 insertions, 11 deletions
diff --git a/sys/modules/vmm/Makefile b/sys/modules/vmm/Makefile
index 5bb31f5a94d1..45025a82461e 100644
--- a/sys/modules/vmm/Makefile
+++ b/sys/modules/vmm/Makefile
@@ -3,6 +3,7 @@
KMOD= vmm
SRCS= opt_acpi.h opt_ddb.h device_if.h bus_if.h pci_if.h
+SRCS+= vmx_assym.h svm_assym.h
CFLAGS+= -DVMM_KEEP_STATS -DSMP
CFLAGS+= -I${.CURDIR}/../../amd64/vmm
@@ -39,6 +40,7 @@ SRCS+= iommu.c \
SRCS+= ept.c \
vmcs.c \
vmx_msr.c \
+ vmx_support.S \
vmx.c \
vtd.c
@@ -46,37 +48,37 @@ SRCS+= ept.c \
.PATH: ${.CURDIR}/../../amd64/vmm/amd
SRCS+= vmcb.c \
svm.c \
+ svm_support.S \
npt.c \
amdv.c \
svm_msr.c
-OBJS= vmx_support.o svm_support.o
+CLEANFILES= vmx_assym.h vmx_genassym.o svm_assym.h svm_genassym.o
-CLEANFILES= vmx_assym.s vmx_genassym.o svm_assym.s svm_genassym.o
-
-vmx_assym.s: vmx_genassym.o
+vmx_assym.h: vmx_genassym.o
.if exists(@)
-vmx_assym.s: @/kern/genassym.sh
+vmx_assym.h: @/kern/genassym.sh
.endif
sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET}
-svm_assym.s: svm_genassym.o
+svm_assym.h: svm_genassym.o
.if exists(@)
-svm_assym.s: @/kern/genassym.sh
+svm_assym.h: @/kern/genassym.sh
.endif
sh @/kern/genassym.sh svm_genassym.o > ${.TARGET}
-vmx_support.o: vmx_support.S vmx_assym.s
+vmx_support.o:
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
${.IMPSRC} -o ${.TARGET}
-svm_support.o: svm_support.S svm_assym.s
+svm_support.o:
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
${.IMPSRC} -o ${.TARGET}
-vmx_genassym.o: vmx_genassym.c @ machine x86
+vmx_genassym.o:
${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
-svm_genassym.o: svm_genassym.c @ machine x86
+svm_genassym.o:
${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
+
.include <bsd.kmod.mk>