lkml.org 
[lkml]   [1997]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Why does this break under SMP?
>That's part of it.  Another part is that flags like this *NEED* to
>make it into a header file (similar to module version numbers), so
>that users don't have to specify a gazillion flags when compiling an
>out-of-kernel-tree module. The current situation is really
>unacceptable. -DMODVERSIONS is another such item; basically anything
>that ends up getting specified with -D...

I've solved that puzzle with some Makefile magic which uses the
_kernel_ Makefiles for compiling out-of-kernel-tree modules.

Gerd

####################################################################
KERNEL_LOCATION=/usr/src/linux

M_OBJS = ch.o
EXTRA_CFLAGS = -I$(KERNEL_LOCATION)/drivers/scsi

here:
DIR=`pwd`; (cd $(KERNEL_LOCATION); make SUBDIRS=$$DIR modules)

include $(KERNEL_LOCATION)/Rules.make

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.063 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site