OpenCores
URL https://opencores.org/ocsvn/minsoc/minsoc/trunk

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [backend/] [spartan3e_starter_kit_eth/] [configure] - Diff between revs 69 and 85

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 69 Rev 85
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 76... Line 80...
        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 ""
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.