lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 16 Feb 2007 17:08:35 -0600
From:	Robert Hancock <hancockr@...w.ca>
To:	"linux-os (Dick Johnson)" <linux-os@...logic.com>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>,
	Manu Abraham <abraham.manu@...il.com>
Subject: Re: 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@...pamshaw.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ