From 135ef7fcdaa844b3df155f95a00f0cf1bf341cae Mon Sep 17 00:00:00 2001 From: pgoyette Date: Thu, 14 Apr 2022 16:50:26 +0000 Subject: Split some common stuff into scsi_subr module. This enables loading of the iscsi module whether or not there are any scsi things built into the kernel. Addresses the iscsi portion of kern/56772 --- sys/modules/Makefile | 5 +++-- sys/modules/scsi_subr/Makefile | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 sys/modules/scsi_subr/Makefile (limited to 'sys/modules') diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 65b27ed44ba..2a63ec5dec7 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.264 2022/04/01 21:09:24 pgoyette Exp $ +# $NetBSD: Makefile,v 1.265 2022/04/14 16:50:26 pgoyette Exp $ .include @@ -146,9 +146,10 @@ SUBDIR+= ptyfs SUBDIR+= puffs SUBDIR+= putter SUBDIR+= raid -SUBDIR+= scsiverbose SUBDIR+= scmd SUBDIR+= scmdi2c +SUBDIR+= scsi_subr +SUBDIR+= scsiverbose SUBDIR+= sdtemp SUBDIR+= secmodel_bsd44 SUBDIR+= secmodel_extensions diff --git a/sys/modules/scsi_subr/Makefile b/sys/modules/scsi_subr/Makefile new file mode 100644 index 00000000000..fa6a2bbf782 --- /dev/null +++ b/sys/modules/scsi_subr/Makefile @@ -0,0 +1,10 @@ +# $NetBSD: Makefile,v 1.1 2022/04/14 16:50:26 pgoyette Exp $ + +.include "../Makefile.inc" + +.PATH: ${S}/dev/scsipi/ + +KMOD= scsi_subr +SRCS= scsi_subr.c scsi_base.c + +.include -- cgit