On Wed, Jul 16, 2008 at 01:05:57PM -0700, Rao Shoaib wrote: > Jonathan Adams wrote: > >On Wed, Jul 16, 2008 at 12:43:40PM -0700, Rao Shoaib wrote: > > > >>I am having trouble building just the kmdbmod. It builds fine when I do > >>a full build but not if I just want to change something and build it. > >>Can someone tell me what is the trick to just build kmdbmod. > >> > > > >cd usr/src/cmd/mdb/$ARCH/$ISA/$MODULE > >dmake kmod/$MODULE > > > >? > > > > > that does not work at all > > [rshoaib.ipsg-v1:/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sun4u/modules] > > (135) % !make > make kmdbmod > make: Fatal error: Don't know how to make target `kmdbmod' > Current working directory > /disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sun4u/modules > [rshoaib.ipsg-v1:/disk2/rshoaib/volo-84-ipstream/usr/src/cmd/mdb/sun4u/modules] > > > > Building from usr/src/cmd/mdb/sun4u/v9/kmdb or doing make install from > usr/src/cmd/mdb gives the following error. > I have even verified that the compiler options to gcc are same both when > I do a full build and in the following case, so there is some other > magic that is happening when nightly is run.
Oh; I thought you were asking how to just rebuild a kmdb module, not the kmdbmod module. Unfortunately, kmdb requires quite a few binaries, headers, etc. from other parts of ON to build: lib/libdisasm lib/libumem headers, etc. If you are trying to build on a build machine that doesn't have recent ON bits on it, a pretty full build will be needed. A first cut: % ws /path/to/workspace % bldenv -d /path/to/environment % cd usr/src % dmake setup % cd cmd/sgs % dmake -k install % cd ../../lib % dmake -k % cd ../cmd/mdb % dmake -k install I'm not sure if that will always work. Cheers, - jonathan