lkml.org 
[lkml]   [2000]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SCSI Makefile cleanup
david parsons wrote:
> Jeff Garzik wrote:
> > david parsons wrote:
> > > It might be worthwhile to add a requirements function call to the
> > > kernel, so you can have drivers explicitly load what they depend
> > > on before they start loading. Something like:

> > > need("aha1542");

> > > in the buslogic driver?

> > That would be wonderful... I really don't like defining driver load
> > order implicitly through Makefile link order. I imagine "need()" would
> > have to be some sort of trigger which ld (or a pre-ld script) uses to
> > figure out the link order for the static kernel image?

> That would work better than what I was thinking about:. I was
> actually thinking of maintaining some sort of (dare I say it?)
> kernel registry, but that would be massive overkill for these
> purposes.

In a discussion along a similar vein on linux-kernel a while back, I
learned that you can have tons of different ELF sections pretty easily.
At least in theory :) it shouldn't be too hard to stick each module into
its own ELF section, and then have a Perl script or similar re-order the
sections in the kernel's ld script, prior to the final link.

Different magic would be needed for depmod/kmod though, possibly just a
generic module parm exported and processed in userspace.

I'm no ELF wizard so there might be a better way...

Jeff



--
Jeff Garzik | Post-Linux-Expo TODO: Learn more
Building 1024 | French curse words from Pixel.
MandrakeSoft, Inc. |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.064 / U:1.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site