URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Subversion Repositories minsoc
Compare Revisions
- This comparison shows the changes necessary to convert path
/minsoc/trunk
- from Rev 45 to Rev 44
- ↔ Reverse comparison
Rev 45 → Rev 44
/utils/contributions/setup/TODO.txt
File deleted
/utils/contributions/setup/minsoc-install.sh
1,8 → 1,7
#!/bin/bash |
# Author: Constantinos Xanthopoulos |
# This script install MinSOC tree |
# under a specific directory. |
# Xanthopoulos Constantinos |
|
|
# ===== CONFIGURATIONS ===== |
# ========================== |
|
28,51 → 27,50
# Debug ? |
export DEBUG=0; |
. beautify.sh |
. func.sh |
|
# User check! |
if [ `whoami` = "root" ]; |
if [ `whoami` == "root" ]; |
then |
errormsg "You shouldn't be root for this script to run."; |
fi; |
|
# Wizard |
if [ -z ${DIR_TO_INSTALL} ] |
if [ $DIR_TO_INSTALL == "" ] |
then |
cnecho "Give full path (ex. /home/foo/): "; |
read DIR_TO_INSTALL; |
read $DIR_TO_INSTALL; |
fi |
|
# Directory exists? |
if [ ! -d ${DIR_TO_INSTALL} ] |
if [ ! -d $DIR_TO_INSTALL ] |
then |
errormsg "Directory doesn't exist. Please create it"; |
fi; |
|
cd ${DIR_TO_INSTALL} |
cd $DIR_TO_INSTALL |
|
# Which Version? |
if [ -z ${VERSION} ] |
|
if [ $VERSION == "" ] |
then |
while [ "$VERSION" != "trunk" -a "$VERSION" != "stable" ] |
while [ $VERSION != "trunk" -a $VERSION != "stable"] |
do |
cnecho "Select MinSOC Version [stable/trunk]: " |
read VERSION; |
cecho "Which version you want to install [stable/trunk]?" |
read $VERSION; |
done |
fi |
|
if [ -z ${ENV} ] |
if [ $ENV == "" ] |
then |
while [ "$ENV" != "linux" -a "$ENV" != "cygwin" -a "$ENV" != "freebsd" ] |
while [ $ENV != "linux" -a $ENV != "cygwin" -a $ENV != "freebsd" ] |
do |
cnecho "Select build environment [linux/cygwin/freebsd]: " |
read ENV; |
cecho "In which environement are you installing MinSOC [linux/cygwin/freebsd]?" |
read $ENV; |
done |
fi |
|
|
|
# Checkout MinSOC |
if [ "${VERSION}" = "trunk" ] |
if [ $VERSION == "trunk" ] |
then |
execcmd "Download minsoc" "svn co -q http://opencores.org/ocsvn/minsoc/minsoc/trunk/ minsoc" |
else |
88,7 → 86,7
|
cecho "I will now start to compile everything that's needed"; |
|
cd ${DIR_TO_INSTALL}/minsoc/sw/utils |
cd $DIR_TO_INSTALL/minsoc/sw/utils |
|
echo $PWD |
|
110,10 → 108,9
# adv_jtag_bridge install |
cd ${DIR_TO_INSTALL}/minsoc/rtl/verilog/adv_debug_sys/Software/adv_jtag_bridge |
|
# FIXME: install FTDI headers for all build environments |
#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\""; #FIXME |
|
if [ `grep "INCLUDE_JSP_SERVER=true" Makefile` != "" ] |
then |
121,7 → 118,7
sed 's/INCLUDE_JSP_SERVER=true/INCLUDE_JSP_SERVER=false/' Makefile > TMPFILE && mv TMPFILE Makefile |
fi |
|
if [ "${ENV}" != "cygwin" ] |
if [ $ENV != "cygwin" ] |
then |
cecho "Setting the right build environment"; |
sed "s/BUILD_ENVIRONMENT=cygwin/BUILD_ENVIRONMENT=${ENV}/" Makefile > TMPFILE && mv TMPFILE Makefile |
/utils/contributions/setup/beautify.sh
7,11 → 7,6
echo -e "\033[1m\033[33m$1\033[0m" |
} |
|
function cnecho |
{ |
echo -e -n "\033[0m\033[33m$1\033[0m" |
} |
|
function errormsg |
{ |
echo -e "\033[1m\033[31mError: $1\033[0m\n"; |