LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel Driver compilation (https://www.linuxquestions.org/questions/linux-software-2/kernel-driver-compilation-232608/)

amish_geek 09-19-2004 03:12 PM

Kernel Driver compilation
 
I'm trying to compile the et61xx51 driver into my kernel so I can use my webcam.

I am using kernel 'linux-2.6.4-52' on Suse 9.1

When I try to compile the driver, I get this:

Code:

linux:/usr/src/et61xx51 # make
  Building ET61XX51 driver for 2.5/2.6 kernel.
  PLEASE IGNORE THE "Overriding SUBDIRS" WARNING
  Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/et61xx51 modules
make[1]: Entering directory `/usr/src/linux-2.6.4-52'
  CHK    include/linux/version.h
*** Warning: Overriding SUBDIRS on the command line can cause
***          inconsistencies
make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CHK    include/asm-i386/asm_offsets.h
make[2]: *** No rule to make target `/usr/src/et61xx51/et61x.c', needed by `/usr/src/et61xx51/et61x.o'.  Stop.
make[1]: *** [/usr/src/et61xx51] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.4-52'
make: *** [default] Error 2
linux:/usr/src/et61xx51 #

I have never had much luck when dealing with kernels. Can someone please help me figure out what is going wrong and what needs to be done to get this to compile?

rjlee 09-20-2004 08:18 AM

/usr/src/et61xx51/et61x.c is missing. This probably means that you unpacked the et61xx51 driver source in the wrong place; I would guess that it wants to be unpacked in /usr/src/.

If so, you may be able to fix this by changing the Makefile


All times are GMT -5. The time now is 07:08 PM.