Date: Sun, 14 Jul 2024 18:30:14 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7cd91315911d - main - vmm: Conditionalize addition of opt_*.h headers Message-ID: <202407141830.46EIUEsY018314@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=7cd91315911d3413ccf527228d4b8c060b681fba commit 7cd91315911d3413ccf527228d4b8c060b681fba Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-07-14 16:12:01 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-07-14 18:29:14 +0000 vmm: Conditionalize addition of opt_*.h headers These are only included in the amd64 vmm code, so it doesn't make sense to list them unconditionally. PR: 280171 Reviewed by: wosch, imp, emaste Differential Revision: https://reviews.freebsd.org/D45964 --- sys/modules/vmm/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/modules/vmm/Makefile b/sys/modules/vmm/Makefile index 8f6eb915290a..96155753f1de 100644 --- a/sys/modules/vmm/Makefile +++ b/sys/modules/vmm/Makefile @@ -3,8 +3,13 @@ KMOD= vmm -SRCS= opt_acpi.h opt_bhyve_snapshot.h opt_ddb.h \ - acpi_if.h bus_if.h device_if.h pci_if.h pcib_if.h vnode_if.h +.if ${MACHINE_CPUARCH} == "amd64" +SRCS+= opt_acpi.h \ + opt_bhyve_snapshot.h \ + opt_ddb.h +.endif + +SRCS+= acpi_if.h bus_if.h device_if.h pci_if.h pcib_if.h vnode_if.h CFLAGS+= -DVMM_KEEP_STATS CFLAGS+= -I${SRCTOP}/sys/${MACHINE}/vmm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407141830.46EIUEsY018314>