Line 5... |
Line 5... |
# ===== CONFIGURATIONS =====
|
# ===== CONFIGURATIONS =====
|
# ==========================
|
# ==========================
|
|
|
# Where should I put the dir. minsoc?
|
# Where should I put the dir. minsoc?
|
# ex. /home/conx/Thesis/
|
# ex. /home/conx/Thesis/
|
DIR_TO_INSTALL="/home/conx/Thesis/tmp/"
|
DIR_TO_INSTALL=""
|
|
|
# This variable should be set to trunk
|
# This variable should be set to trunk
|
# or to stable.
|
# or to stable.
|
VERSION="trunk"
|
VERSION=""
|
|
|
# This variable should take one of
|
# This variable should take one of
|
# the following values depending
|
# the following values depending
|
# to your system: linux, cygwin, freebsd
|
# to your system: linux, cygwin, freebsd
|
ENV="linux"
|
ENV=""
|
|
|
# !!! DO NOT EDIT BELLOW THIS LINE !!!
|
# !!! DO NOT EDIT BELLOW THIS LINE !!!
|
# ===================================
|
# ===================================
|
|
|
# ===== SCRIPT ======
|
# ===== SCRIPT ======
|
Line 84... |
Line 84... |
execcmd "Checkout openrisc" "svn co -q http://opencores.org/ocsvn/openrisc/openrisc/trunk/or1200 or1200"
|
execcmd "Checkout openrisc" "svn co -q http://opencores.org/ocsvn/openrisc/openrisc/trunk/or1200 or1200"
|
execcmd "Checkout uart" "svn co -q http://opencores.org/ocsvn/uart16550/uart16550/trunk uart16550"
|
execcmd "Checkout uart" "svn co -q http://opencores.org/ocsvn/uart16550/uart16550/trunk uart16550"
|
|
|
cecho "I will now start to compile everything that's needed";
|
cecho "I will now start to compile everything that's needed";
|
|
|
cd ../../sw/utils
|
cd $DIR_TO_INSTALL/minsoc/sw/utils
|
|
|
|
echo $PWD
|
|
|
execcmd "Make utils" "make"
|
execcmd "Make utils" "make"
|
|
|
cd ../support
|
cd ../support
|
|
|
Line 96... |
Line 98... |
|
|
cd ../drivers
|
cd ../drivers
|
|
|
execcmd "Make drivers" "make"
|
execcmd "Make drivers" "make"
|
|
|
cd ../gpio
|
|
|
|
execcmd "Make GPIO" "make"
|
|
|
|
cd ../uart
|
cd ../uart
|
|
|
execcmd "Make UART" "make"
|
execcmd "Make UART" "make"
|
|
|
# adv_jtag_bridge install
|
# adv_jtag_bridge install
|
cd ${DIR_TO_INSTALL}/minsoc/rtl/verilog/adv_debug_sys/Software/adv_jtag_bridge
|
cd ${DIR_TO_INSTALL}/minsoc/rtl/verilog/adv_debug_sys/Software/adv_jtag_bridge
|
|
|
#cecho "Installing FTDI headers! You will be asked to give root pass"
|
cecho "Installing FTDI headers! You will be asked to give root pass"
|
|
|
#execcmd "Install FTDI headers" "su -c \"aptitude install libftdi-dev\""; #FIXME
|
execcmd "Install FTDI headers" "su -c \"aptitude install libftdi-dev\""; #FIXME
|
|
|
if [ `grep "INCLUDE_JSP_SERVER=true" Makefile` != "" ]
|
if [ `grep "INCLUDE_JSP_SERVER=true" Makefile` != "" ]
|
then
|
then
|
cecho "Switching off the adv_jtag_bridge JSP_SERVER option";
|
cecho "Switching off the adv_jtag_bridge JSP_SERVER option";
|
sed 's/INCLUDE_JSP_SERVER=true/INCLUDE_JSP_SERVER=false/' Makefile > TMPFILE && mv TMPFILE Makefile
|
sed 's/INCLUDE_JSP_SERVER=true/INCLUDE_JSP_SERVER=false/' Makefile > TMPFILE && mv TMPFILE Makefile
|