lkml.org 
[lkml]   [2004]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: missing build functionality?
From
Date
On Tue, 23 Nov 2004 12:33:39 PST, Bruce Korb said:

> Anyway, I do not see an obvious way to construct an object archive library
> that I wish to use for multiple drivers. There are two problems. This:
>
> > ifeq ($(ARCH),ia64)
> > CFLAGS_KERNEL =
> > endif
>
> because I am making the archive for a loadable driver.

The usual solution for 2 modules that share an archive would be to create
*three* modules driver-a, driver-b, and driver-core - and then have the
appropriate depmod magic so a 'modprobe driver-a' does an insmode driver-core,
as does a 'modprobe driver-b'.

Otherwise, you're just loading the entire library into memory twice,
once for each driver...
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.082 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site