From 045035c20378d1d2354602236ad6306659dddb1b Mon Sep 17 00:00:00 2001 From: scottl Date: Wed, 25 Sep 2002 05:00:25 +0000 Subject: 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 --- sys/modules/aac/Makefile | 4 ++-- sys/modules/aac/aac_linux/Makefile | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 sys/modules/aac/aac_linux/Makefile (limited to 'sys/modules/aac') 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 -- cgit v1.1