URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Subversion Repositories minsoc
[/] [minsoc/] [trunk/] [backend/] [spartan3e_starter_kit_eth/] [configure] - Rev 86
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/bash#NON STANDARD SCRIPT, USE ANOTHER AS TEMPLATE, NON STANDARD PART IS MARKED AS COMMENT#new boards have to udpate thisBOARD=spartan3e_starter_kit_eth #this has to have the name of the directory this file is inDEVICE_PART='xc3s500e-4-fg320'CONSTRAINT_FILE='spartan3e_starter_kit_eth.ucf'#~new boards update#system workingsMINSOC_DIR=`pwd`/../..BACKEND_DIR=$MINSOC_DIR/backendSYN_DIR=$MINSOC_DIR/synSYNSRC_DIR=$MINSOC_DIR/prj/xilinxSYNSUPPORT_DIR=$SYN_DIR/buildSupportMAKEFILE_DIR=$SYN_DIR/xilinxSYN_FILES=(ethmac.xst uart_top.xst adbg_top.xst or1200_top.xst minsoc_top.xst)MAKEFILE=MakefileFIND_PART='DEVICE_PART'FIND_CONSTRAINT='CONSTRAINT_FILE'BOARD_DIR=$BACKEND_DIR/$BOARDBOARD_FILES=(board.h orp.ld minsoc_defines.v minsoc_bench_defines.v gcc-opt.mk $CONSTRAINT_FILE)in_minsoc=`pwd | grep minsoc/backend/${BOARD}$`if [ -z $in_minsoc ]thenecho ""echo " !!!WARNING!!!"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 ""echo "Possibly your minsoc directory is named differently, minsoc_trunk for example."echo "Its name must be minsoc only."echo ""fi#NON STANDARD SCRIPT PARTecho "THIS SCRIPT HAS A NON-STANDARD BEGINNING."echo "__________________________________________________________________________"echo "Ethernet on Spartan3E Starter Kit requires another configuration for or1200."echo "For minsoc release-1.0 or1200_r1 will be used."echo "This will need or1200_defines.v of or1200_r1 with same configuration."echo ""echo "Copying or1200_defines.v, to or1200 implementation directory..."echo "(minsoc/rtl/verilog/or1200/rtl/verilog)"echo "__________________________________________________________________________"cp $BOARD_DIR/or1200_defines.v $MINSOC_DIR/rtl/verilog/or1200/rtl/verilogecho ""echo "REGULAR SCRIPT STARTS NOW"echo "__________________________________________________________________________"#~NON STANDARD SCRIPT PARTecho ""echo "Configuring SoC board's specific files for firmware compilation, "echo "testbench generation and synthesis."echo "Firmware and testbench looks for board specific files under minsoc/backend."echo "Synthesis work under minsoc/syn."echo ""echo ""if [ $CONSTRAINT_FILE == 'NONE' ]thenecho "Skipping synthesis preparation. Standard implementation can only be simulated."elseecho "Device part for files under minsoc/prj/xilinx will be patched and stored "echo "temporarily."echo "Afterwards, they are copied to minsoc/syn/buildSupport."echo "__________________________________________________________________________"echo ""for file in "${SYN_FILES[@]}"doecho "Updating synthesis file, $file..."echo "Copying $file to synthesis directory..."echo ""sed "s/$FIND_PART/$DEVICE_PART/g" $SYNSRC_DIR/$file > TMPFILEsed "s/$FIND_CONSTRAINT/$CONSTRAINT_FILE/g" TMPFILE > TMPFILE2 && mv TMPFILE2 $SYNSUPPORT_DIR/$filerm TMPFILEdoneecho "Updating Makefile file..."echo "Copying Makefile to synthesis directory..."echo ""sed "s/$FIND_PART/$DEVICE_PART/g" $MAKEFILE_DIR/$MAKEFILE > TMPFILEsed "s/$FIND_CONSTRAINT/$CONSTRAINT_FILE/g" TMPFILE > TMPFILE2 && mv TMPFILE2 $SYN_DIR/$MAKEFILErm TMPFILEfiecho ""echo ""echo "Copying board specific SoC files to backend directory."echo "__________________________________________________________________________"echo ""for file in "${BOARD_FILES[@]}"doif [ $file != NONE ]thenecho "Copying $file, to backend directory..."cp $BOARD_DIR/$file $BACKEND_DIRfidoneecho ""echo ""
Go to most recent revision | Compare with Previous | Blame | View Log
