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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [utils/] [contributions/] [setup/] [minsoc-install.sh] - Blame information for rev 41

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 41 rfajardo
#!/bin/bash
2
# Xanthopoulos Constantinos
3
# Installing cable drivers for the impact to work
4
# under Debian Squeeze.
5
 
6
 
7
# ===== CONFIGURATIONS =====
8
# ==========================
9
 
10
# Where should I put the dir. minsoc?
11
# ex. /home/conx/Thesis/
12
DIR_TO_INSTALL=""
13
 
14
 
15
# ===== SCRIPT ======
16
# ===================
17
export DEBUG=0;
18
. conxshlib.sh
19
 
20
if [ `whoami` == "root" ];
21
then
22
        errormsg "You shouldn't be root for this script to run.";
23
fi;
24
 
25
if [ ! -d $DIR_TO_INSTALL ]
26
then
27
        errormsg "Directory doesn't exist. Please create it";
28
fi;
29
 
30
cd $DIR_TO_INSTALL
31
 
32
if [ ! -f "minsoc.tar.gz" ];
33
then
34
        execcmd "Download minsoc" "wget http://xanthopoulos.info/pub/minsoc.tar.gz"
35
fi
36
 
37
if [ -d "minsoc" ]
38
then
39
        rm minsoc -rf
40
fi
41
 
42
execcmd "Un-tar minsoc" "tar xf minsoc.tar.gz"
43
 
44
cecho "I will now start to compile everything that's needed";
45
 
46
cd minsoc/sw/utils
47
 
48
execcmd "Make utils" "make"
49
 
50
cd ../support
51
 
52
execcmd "Make support tools" "make"
53
 
54
cd ../drivers
55
 
56
execcmd "Make drivers" "make"
57
 
58
cd ../gpio
59
 
60
execcmd "Make GPIO" "make"
61
 
62
cd ../uart
63
 
64
execcmd "Make UART" "make"
65
 
66
cd ${DIR_TO_INSTALL}/minsoc/rtl/verilog/adv_debug_sys/Software/adv_jtag_bridge
67
 
68
cecho "Installing FTDI headers! You will be asked to give root pass"
69
 
70
execcmd "Install FTDI headers" "su -c \"aptitude install libftdi-dev\"";
71
 
72
execcmd "Make adv_jtag_bridge" "make"
73
 
74
cecho "Installation Finised"

powered by: WebSVN 2.1.0

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