Fix cyclic dependency after r326552.
The OBJS_DEPEND_GUESS mechanism was making vmx_genassym.o depend on all headers along with vmx_assym.h, though vmx_assym.h depends on having vmx_genassym.o present to generate. Moving the headers to DPSRCS is enough to resolve the issue as they will no longer be implicit dependencies for all objects. Because of this we need explicit OBJS_DEPEND_GUESS entries to ensure the headers are generated when needed for the *_support.o files that need them. X-MFC-With: r326552 MFC after: 2 weeks Sponsored by: Dell EMC
This commit is contained in:
parent
6e1c5d187c
commit
488adf43d4
@ -3,8 +3,8 @@
|
||||
KMOD= vmm
|
||||
|
||||
SRCS= opt_acpi.h opt_ddb.h device_if.h bus_if.h pci_if.h pcib_if.h acpi_if.h
|
||||
SRCS+= vmx_assym.h svm_assym.h
|
||||
DPSRCS= vmx_genassym.c svm_genassym.c
|
||||
DPSRCS+= vmx_assym.h svm_assym.h
|
||||
DPSRCS+= vmx_genassym.c svm_genassym.c
|
||||
|
||||
CFLAGS+= -DVMM_KEEP_STATS -DSMP
|
||||
CFLAGS+= -I${SRCTOP}/sys/amd64/vmm
|
||||
@ -57,6 +57,9 @@ SRCS+= vmcb.c \
|
||||
|
||||
CLEANFILES= vmx_assym.h vmx_genassym.o svm_assym.h svm_genassym.o
|
||||
|
||||
OBJS_DEPEND_GUESS.vmx_support.o+= vmx_assym.h
|
||||
OBJS_DEPEND_GUESS.svm_support.o+= svm_assym.h
|
||||
|
||||
vmx_assym.h: vmx_genassym.o
|
||||
sh ${SYSDIR}/kern/genassym.sh vmx_genassym.o > ${.TARGET}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user