LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-25-2006, 08:51 AM   #1
amolgupta
Member
 
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
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

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

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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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