the x86 xen and non-xen modules are identical,

so remove the unneeded extra copies.
Xen kernels now use the same modules as native kernels.
This commit is contained in:
chs 2020-07-04 21:02:15 +00:00
parent 124a6fcf7c
commit af5290a884
9 changed files with 7 additions and 70 deletions

View File

@ -1,7 +1,4 @@
# $NetBSD: md.amd64,v 1.86 2020/03/12 15:04:13 pgoyette Exp $
#
# NOTE that there are two sets of files here:
# @MODULEDIR@ and amd64-xen
# $NetBSD: md.amd64,v 1.87 2020/07/04 21:02:16 chs Exp $
#
./@MODULEDIR@/acpiacad modules-base-kernel kmod
./@MODULEDIR@/acpiacad/acpiacad.kmod modules-base-kernel kmod

View File

@ -1,8 +1,5 @@
# $NetBSD: md.i386,v 1.86 2020/02/29 18:46:12 skrll Exp $
# $NetBSD: md.i386,v 1.87 2020/07/04 21:02:16 chs Exp $
#
# NOTE that there are two sets of files here: @MODULEDIR@ and i386pae-xen
#
./@MODULEDIR@/acpiacad modules-base-kernel kmod
./@MODULEDIR@/acpiacad/acpiacad.kmod modules-base-kernel kmod
./@MODULEDIR@/acpibat modules-base-kernel kmod

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.1199 2020/06/06 22:06:42 joerg Exp $
# $NetBSD: bsd.own.mk,v 1.1200 2020/07/04 21:02:16 chs Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@ -1006,8 +1006,7 @@ MKCOMPATTESTS:= no
MKCOMPATX11:= no
.endif
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" \
|| ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" \
.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" \
|| (${MACHINE} == "evbppc" && ${MACHINE_ARCH} == "powerpc")
MKCOMPATMODULES?= yes
.else

View File

@ -1,4 +1,4 @@
/* $NetBSD: x86_machdep.c,v 1.143 2020/05/21 21:12:30 ad Exp $ */
/* $NetBSD: x86_machdep.c,v 1.144 2020/07/04 21:02:16 chs Exp $ */
/*-
* Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.143 2020/05/21 21:12:30 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.144 2020/07/04 21:02:16 chs Exp $");
#include "opt_modular.h"
#include "opt_physmem.h"
@ -100,10 +100,6 @@ static char x86_cpu_idle_text[16];
#include <xen/xen.h>
#include <xen/hypervisor.h>
#endif
#ifdef XENPV
char module_machine_amd64_xen[] = "amd64-xen";
char module_machine_i386pae_xen[] = "i386pae-xen";
#endif
#ifndef XENPV
void (*delay_func)(unsigned int) = i8254_delay;
@ -224,15 +220,6 @@ module_init_md(void)
struct btinfo_modulelist *biml;
struct bi_modulelist_entry *bi, *bimax;
/* setup module path for XEN kernels */
#ifdef XENPV
#ifdef __x86_64__
module_machine = module_machine_amd64_xen;
#else
module_machine = module_machine_i386pae_xen;
#endif
#endif
biml = lookup_bootinfo(BTINFO_MODULELIST);
if (biml == NULL) {
aprint_debug("No module info at boot\n");

View File

@ -1,15 +1,7 @@
# $NetBSD: archdirs.mk,v 1.5 2020/06/27 06:50:00 rin Exp $
# $NetBSD: archdirs.mk,v 1.6 2020/07/04 21:02:16 chs Exp $
# list of subdirs used per-platform
.if ${MACHINE} == "amd64"
ARCHDIR_SUBDIR= x86/amd64-xen
.endif
.if ${MACHINE} == "i386"
ARCHDIR_SUBDIR= x86/i386pae-xen
.endif
.if ${MACHINE_ARCH} == "powerpc"
ARCHDIR_SUBDIR= powerpc/powerpc-ibm4xx powerpc/powerpc-booke
.endif

View File

@ -1,5 +0,0 @@
# $NetBSD: Makefile,v 1.1 2014/08/11 03:43:25 jnemeth Exp $
BSD_MK_COMPAT_FILE=${.CURDIR}/bsd.amd64-xen.mk
.include "../../compatsubdir.mk"

View File

@ -1,12 +0,0 @@
# $NetBSD: bsd.amd64-xen.mk,v 1.2 2019/01/27 02:08:43 pgoyette Exp $
.ifndef _BSD_AMD64_XEN_MK_
_BSD_AMD64_XEN_MK_=1
KMODULEARCHDIR:= amd64-xen
XEN= 1
#CPPFLAGS+= -DXEN
.endif # _BSD_AMD64_XEN_MK_

View File

@ -1,5 +0,0 @@
# $NetBSD: Makefile,v 1.1 2014/08/11 03:43:26 jnemeth Exp $
BSD_MK_COMPAT_FILE=${.CURDIR}/bsd.i386pae-xen.mk
.include "../../compatsubdir.mk"

View File

@ -1,13 +0,0 @@
# $NetBSD: bsd.i386pae-xen.mk,v 1.2 2019/01/27 02:08:44 pgoyette Exp $
.ifndef _BSD_I386PAE_XEN_MK_
_BSD_I386PAE_XEN_MK_=1
KMODULEARCHDIR:= i386pae-xen
XEN= 1
PAE= 1
#CPPFLAGS+= -DPAE -DXEN
.endif # _BSD_I386PAE_XEN_MK_