How to compile the DPU software

CVS and compilation

If you are compiling in a directory other than ~xmmom, set the environment variables and the path as follows (the path should all be on one line). Because of the C-shell scripts run in the compilation of the software, these need to be in your .cshrc file and near the end so they don't get overridden by any
source XXXX
lines.
setenv MYXMMOM /tmp/xmmom
setenv XMMOMHOME /tmp/xmmom
setenv XMMOMSIMHOME /tmp/xmmom/sim
setenv XMMOMSDTHOME /tmp/xmmom/sdt
setenv XMMOMDPUHOME /tmp/xmmom/dpu
setenv XMMOMWDSPHOME /tmp/xmmom/dpu/development/white
setenv XMMOMRDSPHOME /tmp/xmmom/dpu/development/red
setenv XMMOMBDSPHOME /tmp/xmmom/dpu/development/blue
set path = ( /home/pjs1/bin /usr/local/bin /usr/local/X11R6/bin /usr/teTeX/bin/sparc-solaris2.5 /opt/sparc/bin /usr/bin /bin /usr/ucb /usr/local/sbin /sbin /usr/sbin /usr/X11R6/bin /usr/openwin/bin /usr/local/X11/bin /usr/local/dsp/bin /usr/local/gnu/bin /tmp/xmmom/dpu/util/bin )

dpu

To checkout and compile the DPU software:
cd $XMMOMHOME
cvs checkout dpu/util
cd dpu
mkdir development
cd development
cvs checkout red white blue include
mkdir eeprom
cd ../util/src
rehash
vi ../../development/include/sci_com.h
and change the wait states 1114 (near the bottom of this file) to 1116.

You may need to make some directories if this a checkout of anything other than curent.

pushd $XMMOMHOME
tar xvfz ~pjs1/dpu_dirs.tar.gz
popd
Then compile:
makedsp -c
... wait for a long time, if you have a slow Sun ...

simom

To checkout and compile the DPU simom software:
cd $XMMOMHOME
cvs checkout sim
cd sim/src/aparm/
make uninstall clean install
cd ..
./make_all new

Delivery

official

For an official delivery:
cd $XMMOMHOME/dpu/development/eeprom/
ls -l *.[0p] > document
md5sum *.[0p] >> document
cd /tmp
cvs checkout dpu/util
cd dpu
mkdir development
cd development
cvs checkout red white blue include
cd ..
tar cvfz /tmp/dpu.tar.gz dpu/
We need to create individual cvs status report files for inclusion into a software version document (e.g., SP/0170). To limit the information just to the interesting and necessary lines, we use egrep as follows:
cvs status red | egrep '(File|Work|Repo)' > red.cvs
cvs status white | egrep '(File|Work|Repo)' > white.cvs
cvs status blue | egrep '(File|Work|Repo)' > blue.cvs
cvs status include | egrep '(File|Work|Repo)' > include.cvs
cvs status dpu/util | egrep '(File|Work|Repo)' > util.cvs
mkdir -p fm_dorn2/eeprom
cp $XMMOMHOME/dpu/development/eeprom/*.0 fm_dorn2/eeprom

unofficial

For an unofficial delivery to ESOC (including the simulator and s-rec files) send the following in addition to the offical delivery files:
cvs status sim | egrep '(File|Work|Repo)' > sim.cvs
mkdir -p fm_dorn2/srec
find . -name '*.p' -exec cp {} fm_dorn2/srec/ \;
cd /tmp
cvs checkout sim
tar cvfz /tmp/sim.tar.gz sim/

Phil Smith
Cheng Ho
Jeonghee Rho