At the moment, I’m having trouble with a makefile that refers to a non existent directory.
Netgear provides a linux driver installation package that was made for Ubuntu according to their notes. Here is an extract:
System Requirements
The instructions about device driver installation specified in this document are Linux distribution independent. The device driver supports Linux kernel versions from 2.6.x to 3.5.0.23. This document uses screenshots from Ubuntu 12.04 to show the Network-Manager behavior…
I would like to try installing this USB Modem in 13.1 KDE. Here is the error from sudo make all:
linux-ppnb:/usr/src/GobiSerial # sudo make all
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order make -C /lib/modules/3.11.10-34-desktop/build SUBDIRS=/usr/src/GobiSerial modules
make: *** /lib/modules/3.11.10-34-desktop/build: No such file or directory. Stop. make: *** [all] Error 2
Because the makefile refers to a nonexistent “build” directory:
obj-m := GobiSerial.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
OUTPUTDIR=/lib/modules/`uname -r`/kernel/drivers/usb/serial/
all: clean
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
install: all
mkdir -p $(OUTPUTDIR)
cp -f GobiSerial.ko $(OUTPUTDIR)
depmod
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order
Please tell me, what adjustment do I make for OSS? Thanks in advance!
P.S. I have been examining the discussion at Netgear AC327U USB mobile broadband issues, so I will be referring to it.