summaryrefslogtreecommitdiffstats
path: root/sys/modules/aac
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2002-09-25 05:00:25 +0000
committerscottl <scottl@FreeBSD.org>2002-09-25 05:00:25 +0000
commit045035c20378d1d2354602236ad6306659dddb1b (patch)
treec0790e3e3f4073d12878ea6839af83d9c695f26a /sys/modules/aac
parent7445e681de4ccf2cc753eebc731579ad962f86ad (diff)
downloadFreeBSD-src-045035c20378d1d2354602236ad6306659dddb1b.zip
FreeBSD-src-045035c20378d1d2354602236ad6306659dddb1b.tar.gz
The AAC_COMPAT_LINUX option was really annoying, since it made the
aac driver dependent on the linux emulation module. This was especially bad for the release engineers who tried to move the aac driver from the kernel onto the drivers floppy. The linux compat bits for this driver are now in their own driver, aac_linux. It can be loaded as a module or compiled into the kernel. For the latter case, the AAC_COMPAT_LINUX option is needed, along with the COMPAT_LINUX option. I've tested this in every configuration I can think of. This is an MFC candidate for 4.7. Idea from: rwatson MFC after: 3 days
Diffstat (limited to 'sys/modules/aac')
-rw-r--r--sys/modules/aac/Makefile4
-rw-r--r--sys/modules/aac/aac_linux/Makefile8
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/modules/aac/Makefile b/sys/modules/aac/Makefile
index 7e1a351..f4f0175 100644
--- a/sys/modules/aac/Makefile
+++ b/sys/modules/aac/Makefile
@@ -2,13 +2,13 @@
.PATH: ${.CURDIR}/../../dev/aac
+SUBDIR= aac_linux
+
KMOD= aac
SRCS= aac.c aac_pci.c aac_disk.c aac_cam.c
SRCS+= opt_scsi.h opt_cam.h opt_aac.h
SRCS+= device_if.h bus_if.h pci_if.h
-CFLAGS+= -DAAC_COMPAT_LINUX
-
# To enable debug output from the driver, uncomment these two lines.
#CFLAGS+= -DAAC_DEBUG=2
#SRCS+= aac_debug.c
diff --git a/sys/modules/aac/aac_linux/Makefile b/sys/modules/aac/aac_linux/Makefile
new file mode 100644
index 0000000..4247a22
--- /dev/null
+++ b/sys/modules/aac/aac_linux/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/aac
+
+KMOD= aac_linux
+SRCS= aac_linux.c
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud