On Wed, Mar 29, 2006 at 08:51:50AM -0800, Haris wrote:
> I am a newbie in OpenSolaris. I've build the source tree using
> nightly and also install the new kernel succesfully using
> Install. What I want to do now is to make some modifications in the
> kernel code, but I am not sure which build process should I use
> after I make these minor changes. I guess if I use use nightly again
> it will take too much time. Can I use separate makes in the source
> files that I change or this is not recommended? What do you
> recommend?
It depends what you're changing. You can safely use nightly -i to do
an incremental build, which will (probably) take much less time than
the clobber build. Or you can just use bldenv and run dmake setup
install from usr/src. If you're changing the kernel, you'll want to
rebuild in usr/src/uts/{intel,sun4u,sun4v}/genunix and
usr/src/uts/{i86pc,sun4u,sun4u/<platform>}/unix. Depending on what
you've changed, you may have to refresh your proto area's headers and
rebuild userland components and/or build other kernel modules as well.
In general nightly -i is the safer option, but if your changes are
limited in scope it will be faster to rebuild only what you've
changed. This is especially true if you're changing only a single
module's code rather than something in the kernel proper.
See http://www.opensolaris.org/os/community/onnv/devref_toc/devref_4/
and other documents at opensolaris.org.
--
Keith M Wesolowski "Sir, we're surrounded!"
Solaris Kernel Team "Excellent; we can attack in any direction!"
_______________________________________________
opensolaris-help mailing list
[email protected]