[ubuntu-uk] Non-default driver

Rowan rowan.berkeley at googlemail.com
Mon Mar 2 16:36:06 GMT 2009


I reproduced the cases (and the spaces) as you gave them, Al.

There is no KVARS line at all in the Makefile. Here are the contents.

KVER          := $(shell uname -r)
KDIR          := /lib/modules/$(KVER)/build
KMISC         := /lib/modules/$(KVER)/kernel/drivers/net/
KEXT          := $(shell echo $(KVER) ¦ sed -ne 's/^2\.[567]\..*/k/p')o
KFLAG         := 2$(shell echo $(KVER) ¦ sed -ne 's/^2\.[4]\..*/4/p')x

modules:
ifeq ($(KFLAG),24x)
           $(MAKE) -f Makefile_linux24x

else
           $(MAKE) -C $(KDIR) SUBDIRS=$(PWD)/src modules
           strip --strip-debug r8168.$(KEXT)
endif

clean:
           rm -rf *.o *.ko *~core* .dep* .*.d .*.cmd *.mod.c *.a *.s 
.*.flags .tmp_versions Module.symvers Modules.symvers *.order

install:
           install -m 744 -c r8168.$(KEXT) $(KMISC)

ifneq ($(KFLAG),24x)
r8168-objs :=  r8168_n.o
obj -m += r8168.o
endif#($(KFLAG),24x)

Alan Pope wrote:
> 2009/3/2 Rowan <rowan.berkeley at googlemail.com>:
>   
>> I typed that in exactly as you gave it, Al, and got no output at all.
>>
>>     
>
> It's case sensitive. Alternatively you can press ALT+F2, and then in
> the box type "gksu nautilus /root" and then navigate to
> /root/lc2000/r8168-8.008.00/src and open the Makefile to see the
> "KVARS" line.
>
> Cheers,
> Al.
>
>   




More information about the ubuntu-uk mailing list