LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-20-2011, 11:04 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 623

Rep: Reputation: 31
Am I obliged to compile the kernel to compile a module?


Hi,
I write a module.c and want to add to the kernel.

I downloaded the corresponding source ( linux-3.0.tar.bz2), and put it in in /usr/src/linux-3.0
in the makefile for my modle I tried

make -C /usr/src/linux-3.0 M=$(PWD) modules

It failed , it looked for something like /lib/modules/3.0/build

How to create this directory (build) ?

Am I obliged to compile the kernel ?

thanks for help
 
Old 08-20-2011, 01:17 PM   #2
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 623

Original Poster
Rep: Reputation: 31
Solved

Quote:
Originally Posted by abd_bela View Post
Hi,
I write a module.c and want to add to the kernel.

I downloaded the corresponding source ( linux-3.0.tar.bz2), and put it in in /usr/src/linux-3.0
in the makefile for my modle I tried

make -C /usr/src/linux-3.0 M=$(PWD) modules

It failed , it looked for something like /lib/modules/3.0/build

How to create this directory (build) ?

Am I obliged to compile the kernel ?

thanks for help
Need to install the include header fron linux-headers
hanks
 
  


Reply


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
Compile and load kernel module automatically after boot? (Intel NIC module) touser Linux - Newbie 3 08-29-2009 09:45 PM
what to compile into kernel and what as module tramni1980 Slackware 5 07-13-2009 02:57 AM
how to compile the kernel module swift_a2002 Linux - Kernel 11 05-11-2007 07:07 AM
Compile a kernel module Ralc Linux - Newbie 5 03-11-2006 09:51 AM
can't Compile a module under Kernel 2.4.20-8 srsairam Linux - Software 3 11-09-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:59 AM.

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