Line 10... |
Line 10... |
|
|
#system workings
|
#system workings
|
MINSOC_DIR=`pwd`/../..
|
MINSOC_DIR=`pwd`/../..
|
BACKEND_DIR=$MINSOC_DIR/backend
|
BACKEND_DIR=$MINSOC_DIR/backend
|
SYN_DIR=$MINSOC_DIR/syn
|
SYN_DIR=$MINSOC_DIR/syn
|
SYNSRC_DIR=$SYN_DIR/src
|
SYNSRC_DIR=$MINSOC_DIR/prj/xilinx
|
SYNSUPPORT_DIR=$SYN_DIR/buildSupport
|
SYNSUPPORT_DIR=$SYN_DIR/buildSupport
|
|
MAKEFILE_DIR=$SYN_DIR/xilinx
|
|
|
SYN_FILES=(eth_top.xst uart_top.xst adbg_top.xst or1200_top.xst minsoc_top.xst Makefile)
|
SYN_FILES=(ethmac.xst uart_top.xst adbg_top.xst or1200_top.xst minsoc_top.xst)
|
|
MAKEFILE=Makefile
|
|
|
FIND_PART='DEVICE_PART'
|
FIND_PART='DEVICE_PART'
|
FIND_CONSTRAINT='CONSTRAINT_FILE'
|
FIND_CONSTRAINT='CONSTRAINT_FILE'
|
|
|
BOARD_DIR=$BACKEND_DIR/$BOARD
|
BOARD_DIR=$BACKEND_DIR/$BOARD
|
Line 26... |
Line 28... |
in_minsoc=`pwd | grep minsoc/backend/${BOARD}$`
|
in_minsoc=`pwd | grep minsoc/backend/${BOARD}$`
|
if [ -z $in_minsoc ]
|
if [ -z $in_minsoc ]
|
then
|
then
|
echo ""
|
echo ""
|
echo " !!!WARNING!!!"
|
echo " !!!WARNING!!!"
|
echo "This script cannot be run out of a board directory inside minsoc/backend,"
|
echo "This script cannot be run if not in a board directory inside minsoc/backend,"
|
echo "because it relies on the directory structure of the minsoc system."
|
echo "because it relies on the directory structure of the minsoc system."
|
echo ""
|
echo ""
|
exit 1
|
echo "Possibly your minsoc directory is named differently, minsoc_trunk for example."
|
|
echo "Its name must be minsoc only."
|
|
echo ""
|
fi
|
fi
|
|
|
#NON STANDARD SCRIPT PART
|
#NON STANDARD SCRIPT PART
|
echo "THIS SCRIPT HAS A NON-STANDARD BEGINNING."
|
echo "THIS SCRIPT HAS A NON-STANDARD BEGINNING."
|
echo "__________________________________________________________________________"
|
echo "__________________________________________________________________________"
|
Line 75... |
Line 79... |
sed "s/$FIND_PART/$DEVICE_PART/g" $SYNSRC_DIR/$file > TMPFILE
|
sed "s/$FIND_PART/$DEVICE_PART/g" $SYNSRC_DIR/$file > TMPFILE
|
sed "s/$FIND_CONSTRAINT/$CONSTRAINT_FILE/g" TMPFILE > TMPFILE2 && mv TMPFILE2 $SYNSUPPORT_DIR/$file
|
sed "s/$FIND_CONSTRAINT/$CONSTRAINT_FILE/g" TMPFILE > TMPFILE2 && mv TMPFILE2 $SYNSUPPORT_DIR/$file
|
rm TMPFILE
|
rm TMPFILE
|
done
|
done
|
|
|
echo "Moving Makefile back from minsoc/syn/buildSupport to minsoc/syn..."
|
echo "Updating Makefile file..."
|
mv $SYNSUPPORT_DIR/Makefile $SYN_DIR
|
echo "Copying Makefile to synthesis directory..."
|
|
echo ""
|
|
sed "s/$FIND_PART/$DEVICE_PART/g" $MAKEFILE_DIR/$MAKEFILE > TMPFILE
|
|
sed "s/$FIND_CONSTRAINT/$CONSTRAINT_FILE/g" TMPFILE > TMPFILE2 && mv TMPFILE2 $SYN_DIR/$MAKEFILE
|
|
rm TMPFILE
|
fi
|
fi
|
echo ""
|
echo ""
|
echo ""
|
echo ""
|
|
|
|
|