715 else
716 isadir="sparc"
717 b64srcdir="v9"
718 b64tgtdir="sparcv9"
719 b32srcdir="v7"
720 b32tgtdir="."
721 fi
722
723 typeset foundkmdb=no
724 typeset kmdbpath=
725 typeset destdir=
726
727 platdir=$INSTALL_FILES/platform/$KARCH/$GLOMNAME
728 if [[ $GLOM = "yes" ]] ; then
729 machdir=$platdir
730 else
731 machdir=$INSTALL_FILES/kernel
732 fi
733
734 srctrees=$SRC
735 if [[ -d $SRC/../closed && "$CLOSED_IS_PRESENT" != no ]]; then
736 srctrees="$srctrees $SRC/../closed"
737 else
738 if [ -z "$ON_CRYPTO_BINS" ]; then
739 echo "Warning: ON_CRYPTO_BINS not set; pre-signed" \
740 "crypto not provided."
741 fi
742 fi
743 if [[ $WANT64 = "yes" ]] ; then
744 # kmdbmod for sparc and x86 are built and installed
745 # in different places
746 if [[ $(mach) = "i386" ]] ; then
747 kmdbpath=$SRC/cmd/mdb/$isadir/$b64srcdir/kmdb/kmdbmod
748 destdir=$machdir/misc/$b64tgtdir
749 else
750 kmdbpath=$SRC/cmd/mdb/$KARCH/$b64srcdir/kmdb/kmdbmod
751 destdir=$platdir/misc/$b64tgtdir
752 fi
753
754 if kmdb_copy_kmdbmod $kmdbpath $destdir ; then
755 foundkmdb="yes"
756
757 for tree in $srctrees; do
758 kmdb_copy_machkmods \
759 $tree/cmd/mdb/$isadir/$b64srcdir \
760 $machdir/kmdb/$b64tgtdir
761 kmdb_copy_karchkmods $tree/cmd/mdb/$KARCH \
762 $platdir/kmdb/$b64tgtdir $b64srcdir
|
715 else
716 isadir="sparc"
717 b64srcdir="v9"
718 b64tgtdir="sparcv9"
719 b32srcdir="v7"
720 b32tgtdir="."
721 fi
722
723 typeset foundkmdb=no
724 typeset kmdbpath=
725 typeset destdir=
726
727 platdir=$INSTALL_FILES/platform/$KARCH/$GLOMNAME
728 if [[ $GLOM = "yes" ]] ; then
729 machdir=$platdir
730 else
731 machdir=$INSTALL_FILES/kernel
732 fi
733
734 srctrees=$SRC
735 if [ -z "$ON_CRYPTO_BINS" ]; then
736 echo "Warning: ON_CRYPTO_BINS not set; pre-signed" \
737 "crypto not provided."
738 fi
739 if [[ $WANT64 = "yes" ]] ; then
740 # kmdbmod for sparc and x86 are built and installed
741 # in different places
742 if [[ $(mach) = "i386" ]] ; then
743 kmdbpath=$SRC/cmd/mdb/$isadir/$b64srcdir/kmdb/kmdbmod
744 destdir=$machdir/misc/$b64tgtdir
745 else
746 kmdbpath=$SRC/cmd/mdb/$KARCH/$b64srcdir/kmdb/kmdbmod
747 destdir=$platdir/misc/$b64tgtdir
748 fi
749
750 if kmdb_copy_kmdbmod $kmdbpath $destdir ; then
751 foundkmdb="yes"
752
753 for tree in $srctrees; do
754 kmdb_copy_machkmods \
755 $tree/cmd/mdb/$isadir/$b64srcdir \
756 $machdir/kmdb/$b64tgtdir
757 kmdb_copy_karchkmods $tree/cmd/mdb/$KARCH \
758 $platdir/kmdb/$b64tgtdir $b64srcdir
|