lkml.org 
[lkml]   [2007]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: GPL vs non-GPL device drivers
linux-os (Dick Johnson) wrote:
> Have you tried it recently? Attached is a compressed session

Yes, I have, most recently in 2.6.20. It works fine.

> showing 2.6.16.24 compiling fine. Then the same thing is attempted
> with 2.6.19. It fails with some "improper configuration" errors.
> This script shows that I execute the demanded commands
> as 'make oldconfig' and 'make prepare'. Then I try to compile
> again resulting, again with the exact same errors.
> This was reported on the Linux kernel list and somebody stated,
> with much authority BTW, "we don't support out of tree
> drivers anymore."

Who told you that? There's documentation in the kernel tree in
Documentation/kbuild/modules.txt that describes how to set this up properly.

Looking at your output, without knowing what the makefile contents are,
it's impossible to determine what's going wrong. Likely the makefile is
trying to do things that the kernel build system should be doing. For a
simple module called mymodule with files file1.c, file2.c, file3.c you
need only a makefile like this:

ifneq ($(KERNELRELEASE),)

# kbuild part of makefile
obj-m := mymodule.o
mymodule-y := file1.o file2.o file3.o

else

# Normal Makefile
KERNELDIR := /lib/modules/`uname -r`/build
all::
$(MAKE) -C $(KERNELDIR) M=`pwd` $@

endif

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-02-17 00:11    [W:0.094 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site