Re: How to compile a module for several kernels

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

 



On Tue, Sep 18, 2001 at 01:04:35AM +0200, Erik Mouw wrote:

> > /me coughs
> > 
> > I wish that were really true ;)
> 
> A piece of code I wrote for linux-2.4.0 still compiles for 2.4.9, while
> I can't insmod the 2.4.0 module into 2.4.9.

Then you don't use e.g. up_and_exit()

> I hope you're not promoting
> the use of binary-only modules... ;)

heh

> Why? /lib/modules/`uname -r`/build/ just *points* to the kernel source
> of the kernel you're running right now:

yes, and it defaults to that, but it is more flexible, and can check for
CONFIG_ options etc.

regards
john

-- 
"What, so the microchips are in the MCU ?"
	- Sam Burton learning about the PC architecture
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux