>>>>> "stevel" == Stephen Lau <stevel at sun.com> writes:

stevel> The uts sub-tree is a little special since it's the kernel.
stevel> What you probably want to do is try the Cap-Eye Install for
stevel> building the kernel:

stevel> http://opensolaris.org/os/community/on/devref_toc/devref_5/

Install.sh assumes that you've already built the kernel.

Xu> But when I navigated to usr/src/uts/common/inet and ran "dmake all"
Xu> it emitted the following errors: 
[...]
Xu> dmake: Fatal error: Don't know how to make target `all'
Xu> 
Xu> Why ?

The short answer is that you're trying to do the build in the wrong
directory.

Here's a somewhat longer explanation:

For the kernel, if you really want to build a single kernel module
(e.g., a driver, or the NFS client), you need to cd into the "build
directory" for that module, which is typically in usr/src/uts/intel or
usr/src/uts/i86pc.  (If you're building for SPARC, look in
usr/src/uts/sparc or usr/src/uts/sun4u).  For example, the build
directory for the NFS client is usr/src/uts/intel/nfs, and the build
directory for the audioixp driver is usr/src/uts/i86pc/audioixp.

But I don't recommend building just a single kernel module.  There are a
lot of private interfaces in the kernel, and it's very easy for modules
to get out of sync with each other.  When I'm doing kernel development
work, I almost always build the entire kernel as a unit.

To build the entire kernel, cd to usr/src/uts and run "dmake all" from
there.

Xu, if you're still stuck, let us know.

cheers,
mike

Reply via email to