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

Subversion Repositories minsoc

[/] [minsoc/] [tags/] [release-0.9/] [utils/] [contributions/] [setup/] [minsoc-install.sh] - Diff between revs 41 and 42

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 41 Rev 42
#!/bin/bash
#!/bin/bash
# Xanthopoulos Constantinos
# Xanthopoulos Constantinos
# Installing cable drivers for the impact to work
# Installing cable drivers for the impact to work
# under Debian Squeeze.
# under Debian Squeeze.
 
 
 
 
# ===== 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=""
DIR_TO_INSTALL=""
 
 
 
 
# ===== SCRIPT ======
# ===== SCRIPT ======
# ===================
# ===================
export DEBUG=0;
export DEBUG=0;
. conxshlib.sh
. conxshlib.sh
 
 
if [ `whoami` == "root" ];
if [ `whoami` == "root" ];
then
then
        errormsg "You shouldn't be root for this script to run.";
        errormsg "You shouldn't be root for this script to run.";
fi;
fi;
 
 
if [ ! -d $DIR_TO_INSTALL ]
if [ ! -d $DIR_TO_INSTALL ]
then
then
        errormsg "Directory doesn't exist. Please create it";
        errormsg "Directory doesn't exist. Please create it";
fi;
fi;
 
 
cd $DIR_TO_INSTALL
cd $DIR_TO_INSTALL
 
 
if [ ! -f "minsoc.tar.gz" ];
if [ ! -f "minsoc.tar.gz" ];
then
then
        execcmd "Download minsoc" "wget http://xanthopoulos.info/pub/minsoc.tar.gz"
        execcmd "Download minsoc" "wget http://xanthopoulos.info/pub/minsoc.tar.gz"
fi
fi
 
 
if [ -d "minsoc" ]
if [ -d "minsoc" ]
then
then
        rm minsoc -rf
        rm minsoc -rf
fi
fi
 
 
execcmd "Un-tar minsoc" "tar xf minsoc.tar.gz"
execcmd "Un-tar minsoc" "tar xf minsoc.tar.gz"
 
 
cecho "I will now start to compile everything that's needed";
cecho "I will now start to compile everything that's needed";
 
 
cd minsoc/sw/utils
cd minsoc/sw/utils
 
 
execcmd "Make utils" "make"
execcmd "Make utils" "make"
 
 
cd ../support
cd ../support
 
 
execcmd "Make support tools" "make"
execcmd "Make support tools" "make"
 
 
cd ../drivers
cd ../drivers
 
 
execcmd "Make drivers" "make"
execcmd "Make drivers" "make"
 
 
cd ../gpio
cd ../gpio
 
 
execcmd "Make GPIO" "make"
execcmd "Make GPIO" "make"
 
 
cd ../uart
cd ../uart
 
 
execcmd "Make UART" "make"
execcmd "Make UART" "make"
 
 
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\"";
execcmd "Install FTDI headers" "su -c \"aptitude install libftdi-dev\"";
 
 
execcmd "Make adv_jtag_bridge" "make"
execcmd "Make adv_jtag_bridge" "make"
 
 
cecho "Installation Finised"
cecho "Installation Finised"
 
 

powered by: WebSVN 2.1.0

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