[Prism54-devel] Patched kernel 2.6.0-test{x} makefile fails

Ed Herr ed.herr@charter.net
Tue, 4 Nov 2003 06:53:07 -0600


I don't know if this is a result of the make/gcc versions I am using  
but trying to build a kernel with prism54 patch applied fails unless I  
change the makefile in drivers/net/wireless. The error message is "No  
rule to make drivers/net/wireless/prism54/prism54.c" while making the  
kernel. The build distro and devel tool versions are as follows:

Distro: Debian Unstable
GCC: gcc version 3.3.2 (Debian)
Make: GNU Make 3.80
Kernel: linux-2.6.0-test9-bk7

In order to compile the driver with 2.6.0-test9 (patched with patch- 
2.6.0-test9-prism54-CVS-2003-11-03.bz2) I had to change the kernel  
makefile in drivers/net/wireless. Michael Bienia has a much better  
solution than the ugly kludge I put together (I am not very familiar  
with GNU make). It should compile successfully as a module (I have yet  
to be successful in compiling as a built-in... as the driver still is  
not totally stable this is just as well)
Here is his note:


"Changing the "obj-$(CONFIG_PRISM54)"-line in
drivers/net/wireless/Makefile to
obj-$(CONFIG_PRISM54)           += prism54/
worked for me (the "subdir-($CONFIG_PRISM54)"-line can be deleted).
My drivers/net/wireless/Makefile currently looks like:
|[...]
|obj-$(CONFIG_AIRO_CS)           += airo_cs.o airo.o
|
|obj-$(CONFIG_PRISM54)           += prism54/
|
|# 16-bit wireless PCMCIA client drivers
|[...]

Michael"


Cheers,
Ed