* Make my own modules for kernel 2.4.32
@ 2006-01-31 10:39 Massimo De Beni
2006-01-31 20:08 ` Willy Tarreau
0 siblings, 1 reply; 2+ messages in thread
From: Massimo De Beni @ 2006-01-31 10:39 UTC (permalink / raw)
To: linux-kernel
Hi all,
I'm a newbye to kernel 'modding' and I've a question that may seems
outdated... The situation is this:
I worked to get a Set Top Box to work with the latest stable 2.4
kernel, the way is clear but the box need some modules to be loaded at
boot in order to get the video and audio device to work (modules that
are not shipped in kernels 2.4...); now I'm building those modules
separatly, compiling directly the drivers source codes with 'make',
and then I insert the .o with 'insmod'.
I would create a better system in which one could compile those
modules directly on the 'make menuconfig' of the kernel, so I'm
modifying the various Makefiles && config files, but I'm a bit
confused... Any good hint?
Thanks in advance...!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Make my own modules for kernel 2.4.32
2006-01-31 10:39 Make my own modules for kernel 2.4.32 Massimo De Beni
@ 2006-01-31 20:08 ` Willy Tarreau
0 siblings, 0 replies; 2+ messages in thread
From: Willy Tarreau @ 2006-01-31 20:08 UTC (permalink / raw)
To: Massimo De Beni; +Cc: linux-kernel
Hi,
On Tue, Jan 31, 2006 at 11:39:25AM +0100, Massimo De Beni wrote:
> Hi all,
> I'm a newbye to kernel 'modding' and I've a question that may seems
> outdated... The situation is this:
> I worked to get a Set Top Box to work with the latest stable 2.4
> kernel, the way is clear but the box need some modules to be loaded at
> boot in order to get the video and audio device to work (modules that
> are not shipped in kernels 2.4...); now I'm building those modules
> separatly, compiling directly the drivers source codes with 'make',
> and then I insert the .o with 'insmod'.
> I would create a better system in which one could compile those
> modules directly on the 'make menuconfig' of the kernel, so I'm
> modifying the various Makefiles && config files, but I'm a bit
> confused... Any good hint?
You have to add an 'obj-m' entry to the Makefile located in the same
directory as your driver, and make it depend on an option which will
be enabled in some Config.in (in the same directory if possible).
You should look at any driver provided as a patch for the kernel, it
will be fairly easier for you to understand what they touch. And don't
forget one important thing : always ensure that the kernel still builds
with your module disabled. Also, don't forget to add an entry in the
Configure.help file.
> Thanks in advance...!
Regards,
Willy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-31 20:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-31 10:39 Make my own modules for kernel 2.4.32 Massimo De Beni
2006-01-31 20:08 ` Willy Tarreau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox