Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building kernel modules



I am trying to make the ide-tape.ko module using the 
instructions provided in the Fc6 release notes.

Thus:

or example, to build the foo.ko module, create the following 
Makefile in the directory containing the foo.c file:

obj-m := foo.o

KDIR  := /lib/modules/$(shell uname -r)/build
PWD   := $(shell pwd)

default:
     $(MAKE) -C $(KDIR) M=$(PWD) modules
####################################################
substituting ide-tap.o for foo.o I issue "make ide-tape.ko"

Oops,
I figured it out and did it. I have to issue "make" with no 
target.
Now the question is do I just copy the .ko file to 
/lib/modules/"kernelversion"/kernel/drivers/ide/ or do I 
have to issue the "make modules install" command to register 
the new module? This would seem pretty convoluted since it 
requires being in the build root dir of the kernel-devel. I 
guess I'll find out if it works.

till next
	Jim K-R

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org