[SLUG] Compile the driver source files!
Mark Feather
akwe-xavante at firenet.uk.com
Sun Jul 27 17:20:01 BST 2003
I don't think you need to run ./Makefile at all. Try running the command
'make'
or 'make -f Makefile' in the directory containing the makefile.
Thanks to those of you that are helping, i have run the command "make" and
what happens is displayed below.
linux:/temp/dlkfet-4.16 # ls -al
total 200
drwxrwxrwx 2 root root 4096 Jul 23 22:48 .
drwxrwxrwx 3 root root 4096 Jul 23 19:18 ..
-rwxrwxrwx 1 root root 225 Jun 24 2002 .depend
-rwxrwxrwx 1 root root 67 Jun 24 2002 .depend.mak
-rwxrwxrwx 1 root root 5135 Jun 24 2002 Makefile
-rwxrwxrwx 1 root root 7973 Jun 24 2002 kcompat.h
-rwxrwxrwx 1 root root 11210 Jan 14 2003 linux.txt
-rwxrwxrwx 1 root root 38296 Jun 26 2002 rhine.h
-rwxrwxrwx 1 root root 3131 Jun 26 2002 rhine_cfg.h
-rwxrwxrwx 1 root root 70285 Jun 26 2002 rhine_main.c
-rwxrwxrwx 1 root root 4315 Jun 24 2002 rhine_proc.c
-rwxrwxrwx 1 root root 2324 Jun 24 2002 rhine_proc.h
-rwxrwxrwx 1 root root 10475 Jun 24 2002 rhine_vmns.c
-rwxrwxrwx 1 root root 2419 Jun 24 2002 rhine_vmns.h
-rwxrwxrwx 1 root root 8117 Jun 24 2002 vmns_drv.h
linux:/temp/dlkfet-4.16 # make
Makefile:27: *** Linux kernel source not found. Stop.
linux:/temp/dlkfet-4.16 #
The first 28 lines of "Makefile" read:
VMNS = 1
OBJS := rhine_main.o rhine_proc.o
SRC = rhine_main.c rhine_proc.c
TARGET = rhinefet.o
KSP := /lib/modules/$(shell uname -r)/build \
/usr/src/linux-$(shell uname -r) \
/usr/src/linux-$(shell uname -r | sed 's/-.*//') \
/usr/src/kernel-headers-$(shell uname -r) \
/usr/src/kernel-source-$(shell uname -r) \
/usr/src/linux-$(shell uname -r | sed
's/\([0-9]*\.[0-9]*\)\..*/\1/') \
/usr/src/linux
ifeq ($(VMNS),1)
OBJS+=rhine_vmns.o
SRC+=rhine_vmns.c
endif
test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
KSP := $(foreach dir, $(KSP), $(test_dir))
KSRC := $(firstword $(KSP))
#KSRC :=/usr/src/ksrc/RedHat/7.2/linux-2.4.7-10alt-ent
ifeq (,$(KSRC))
$(error Linux kernel source not found)
endif
I am using SuSE, i'm guessing here but is the file looking in the wrong
places for info its looking for!? If so where should it be looking in SuSE
and do i need to alter these few lines to suite my distro?
A Wild Guess!
Mark
More information about the Scarborough
mailing list