On Thu, Jul 16, 2009 at 01:57:16PM -0700, Bart Smaalders wrote:
> > # For kernel modules, default path resolution is
> > /platform/<platform>,
> > # /kernel, /usr/kernel. But how do we know what <platform> would be
> > for
> > # a given module? Does it do fallbacks to, say, sun4u?
> > if path.startswith("kernel") or path.startswith("usr/kernel") or \
> > (path.startswith("platform") and path.split("/")[2] == "kernel"):
> > if rp:
> > print "RUNPATH set for kernel module (%s): %s" % \
> > (path, rp)
> >
> > if path.startswith("platform"): # add this platform to
> > search path
> > rp.append("/platform/%s/kernel" % path.split("/")[1])
> > # Default kernel search path
> > rp.extend(("/kernel", "/usr/kernel"))
>
> This helps find dependencies in the platform modules; since the
> module is in a platform dir, we know which platform dir in which
> to search for dependencies.
Probably want to do the same for /usr/platform, no?
Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss