Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 0219d98a99
Fetching contributors…

Cannot retrieve contributors at this time

executable file 59 lines (51 sloc) 1.173 kB
#!/bin/bash
BASEDIR=`pwd`
LOGFILEHOST=$BASEDIR/tools.log
LOGFILE=$BASEDIR/software.log
echo "================================================================================"
echo "Building Milkymist SDK"
echo ""
echo "Log file (host): $LOGFILEHOST"
echo "Log file (target): $LOGFILE"
echo "================================================================================"
echo ""
BASEDIR=`pwd`
echo -n "Building host utilities..."
cd $BASEDIR/tools
echo >> $LOGFILEHOST
date >> $LOGFILEHOST
make >> $LOGFILEHOST 2>&1
if [ "$?" != 0 ] ; then
echo "FAILED"
exit 1
else
echo "OK"
fi
echo -n "Building base library..."
echo >> $LOGFILE
date >> $LOGFILE
cd $BASEDIR/software/libbase && make >> $LOGFILE 2>&1
if [ "$?" != 0 ] ; then
echo "FAILED"
exit 1
else
echo "OK"
fi
echo -n "Building math library..."
cd $BASEDIR/software/libmath && make >> $LOGFILE 2>&1
if [ "$?" != 0 ] ; then
echo "FAILED"
exit 1
else
echo "OK"
fi
echo -n "Building HAL..."
cd $BASEDIR/software/libhal && make >> $LOGFILE 2>&1
if [ "$?" != 0 ] ; then
echo "FAILED"
exit 1
else
echo "OK"
fi
cd $BASEDIR
echo "Build complete!"
Jump to Line
Something went wrong with that request. Please try again.