Wednesday Aug 27, 2008
Wednesday Jul 16, 2008
By user9148476 on Jul 16, 2008
#!/bin/sh # # Script to build minimal set of ON necesary to compile FMD, # agents, diagnosis engines, etc. # # Revision history (reverse chronological order) # # 2008.07.15 Initial draft, based on snv_94/teamware ## Basic sanity check for a proper env if [ "X$SRC" = "X" ]; then /usr/bin/echo "Workspace apparently not setup (\\$SRC is NULL)" exit 1 fi ## Variable setup UNAME_P=`/usr/bin/uname -p` ISA="amd64" if [ "$UNAME_P" = "sparc" ]; then ISA="sparcv9" fi ## Create necessary proto directories PROTO_DIR="usr/lib usr/lib/fm usr/lib/scsi usr/include/scsi usr/include/fm \\ usr/share/lib/xml/dtd usr/lib/$ISA usr/lib/fm/$ISA usr/lib/scsi/$ISA \\ lib/svc/method" for x in $PROTO_DIR; do /usr/bin/mkdir -p $SRC/../../proto/root_$UNAME_P/$x /usr/bin/mkdir -p $SRC/../../proto/root_$UNAME_P-nd/$x done ## SPARC prerequisites if [ "$UNAME_P" = "sparc" ]; then /usr/bin/mkdir -p $SRC/../../proto/root_$UNAME_P/usr/platform/sun4v/include/sys cd $SRC/lib/libpri make install_h make install cd $SRC/lib/fm/libmdesc make install cd $SRC/lib/fm/libldom make install fi ## Common prerequisites cd $SRC/lib/libdscp make install_h make install ## Build usr/src/lib/fm and usr/src/cmd/fm cd $SRC/lib/fm make make install cd $SRC/cmd/fm make
I've done rudimentary tests on both SPARC and x86 and it works well. I'd expect over time as more FMA modules are delivered, the prerequisite proto directories and libraries will change. In the more immediate future, the move to Mercurial will likely trigger a tweak.
08/27/2008 Update: The script as it appears above has been updated. The URL of the script, linked above, has (and will always have) the latest version.
- Oracle Solaris 10 Update 9: FMA Fixes
- nmap 5.35DC1 Compile on OpenSolaris
- What Topology Map(s) is FMA Using?
- SPARC and Oracle Solaris
- ONNV Firefox Search Engine
- nmap 5.30 (BETA1) Compile on OpenSolaris
- Intel CPU/Memory HotPlug for OpenSolaris
- skipfish on OpenSolaris
- SATA Disk Diagnosis Hits x86 OpenSolaris
- OpenSolaris IPS Workspace Build & Test Run