Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-25-2006, 08:51 AM   #1
Registered: Feb 2005
Location: agra,india
Distribution: FC2
Posts: 158

Rep: Reputation: 30
are driver compiled indifferent way

are driver compiled indifferent way
if y then how
Old 02-25-2006, 12:23 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
ganerally for 2.6 kernel a Makefile like this should do it for a driver sourcefile my-module.c
obj-m    := my-module.o

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

	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why driver needs to be compiled against the running kernel? make Linux - General 2 04-13-2005 04:59 PM
Wher do I have to use a new driver I compiled? eantoranz Linux - General 5 04-07-2005 07:27 AM
Need SIS900.o compiled driver perez-cabanb Linux - Networking 0 01-04-2005 10:56 AM
WebCam driver not compiled for my kernel daftwight Linux - Newbie 2 01-13-2004 03:18 PM
compiled linuxant driver vmlinuz Slackware 4 06-21-2003 07:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration