Wiki section "Building Only Kernel Modules" incomplete

Eric Sandeen sandeen at redhat.com
Wed Dec 24 04:23:10 UTC 2008


This is all fairly OT I suppose, but this seems to get it off the ground,
modulo all the build warnings.
 
If you're still having trouble, I'll give you a hand off-list if you like.
I like to keep my kbuild chops semi-sharp ;)


ifeq ($(ARCH),x86_64)
        FTLIBNAME=ftlib/ftlib.obj.64
	ARCH_FLAGS=-D_AMD64B -D_64BPLATFORM 
else
 ifeq ($(ARCH),i386)
        FTLIBNAME=ftlib/ftlib.obj.32
	ARCH_FLAGS=-D_X8632B -D_32BPLATFORM
 else
        $(error "This closed-source driver only supports x86 & x86-64.  You lose.")
 endif
endif

INCLUDE_DIR = -Iinclude/scsi -Idrivers/scsi -I$(src) -I$(src) -I$(src)/include -I$(src)/linux

EXTRA_CFLAGS += -Wno-multichar -D_LINUXDRIVER $(ARCH_FLAGS) $(INCLUDE_DIR) -D_OBSOLETE_PROC_

obj-m :=t3sas.o 
t3sas-objs := linux/osd_main.o linux/osd_cmpi.o linux/osd_cmpm.o linux/osd_ioctl.o linux/osd_timer.o $(FTLIBNAME)





More information about the kernel mailing list