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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [utils/] [setup/] [minsoc-install.sh] - Diff between revs 166 and 167

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 166 Rev 167
Line 168... Line 168...
    elif [ $KERNEL_ARCH == "64" ];
    elif [ $KERNEL_ARCH == "64" ];
    then
    then
        execcmd "Installing GNU Toolchain" "tar xf or32-elf-linux-x86_64.tar.bz2 -C $DIR_TO_INSTALL/tools";
        execcmd "Installing GNU Toolchain" "tar xf or32-elf-linux-x86_64.tar.bz2 -C $DIR_TO_INSTALL/tools";
    fi
    fi
fi
fi
PATH=$PATH:$DIR_TO_INSTALL/tools/or32-elf/bin
PATH="$PATH:$DIR_TO_INSTALL/tools/or32-elf/bin"
 
 
 
 
#Installing GDB
#Installing GDB
execcmd "cd gdb-6.8"
execcmd "cd gdb-6.8"
execcmd "patch -p1 < ../or32-gdb-6.8-patch-2.4"
execcmd "patch -p1 < ../or32-gdb-6.8-patch-2.4"
Line 181... Line 181...
execcmd "mkdir -p build"
execcmd "mkdir -p build"
execcmd "cd build"
execcmd "cd build"
execcmd "../configure --target=or32-elf --disable-werror --prefix=$DIR_TO_INSTALL/tools"
execcmd "../configure --target=or32-elf --disable-werror --prefix=$DIR_TO_INSTALL/tools"
execcmd "Compiling GDB" "make"
execcmd "Compiling GDB" "make"
make install 1>>${SCRIPT_DIR}/progress.log 2>>${SCRIPT_DIR}/error.log   #avoid Fedora failing due to missing Makeinfo
make install 1>>${SCRIPT_DIR}/progress.log 2>>${SCRIPT_DIR}/error.log   #avoid Fedora failing due to missing Makeinfo
PATH=$PATH:${DIR_TO_INSTALL}/tools/bin
PATH="$PATH:${DIR_TO_INSTALL}/tools/bin"
 
 
 
 
#Installing Advanced JTAG Bridge support libraries
#Installing Advanced JTAG Bridge support libraries
if [ "$ENV" != "Cygwin" ]
if [ "$ENV" != "Cygwin" ]
then
then
Line 194... Line 194...
    execcmd "Installing libusb-0.1" "make"
    execcmd "Installing libusb-0.1" "make"
    execcmd "make install"
    execcmd "make install"
fi
fi
 
 
execcmd "cd ${DIR_TO_INSTALL}/download/libftdi-0.19"
execcmd "cd ${DIR_TO_INSTALL}/download/libftdi-0.19"
execcmd "PATH=$PATH:${DIR_TO_INSTALL}/tools/bin ./configure --prefix=${DIR_TO_INSTALL}/tools CPPFLAGS=-I${DIR_TO_INSTALL}/tools/include"
execcmd "PATH=\"$PATH:${DIR_TO_INSTALL}/tools/bin\" ./configure --prefix=${DIR_TO_INSTALL}/tools CPPFLAGS=-I${DIR_TO_INSTALL}/tools/include"
execcmd "Compiling libftdi" "make"
execcmd "Compiling libftdi" "make"
execcmd "make install"
execcmd "make install"
 
 
 
 
#Installing Advanced JTAG Bridge
#Installing Advanced JTAG Bridge
Line 220... Line 220...
bash ${SCRIPT_DIR}/configure.sh
bash ${SCRIPT_DIR}/configure.sh
 
 
 
 
#Setting-up new variables
#Setting-up new variables
cecho "\nSystem configurations"
cecho "\nSystem configurations"
execcmd "Adding MinSoC tools to PATH" "echo \"PATH=\\\$PATH:$DIR_TO_INSTALL/tools/bin\" >> /home/$(whoami)/.bashrc;";
execcmd "Adding MinSoC tools to PATH" "echo \"PATH=\\\"\\\$PATH:$DIR_TO_INSTALL/tools/bin\\\"\" >> /home/$(whoami)/.bashrc;";
execcmd "Adding OpenRISC toolchain to PATH" "echo \"PATH=\\\$PATH:$DIR_TO_INSTALL/tools/or32-elf/bin/\" >> /home/$(whoami)/.bashrc;";
execcmd "Adding OpenRISC toolchain to PATH" "echo \"PATH=\\\"\\\$PATH:$DIR_TO_INSTALL/tools/or32-elf/bin/\\\"\" >> /home/$(whoami)/.bashrc;";
 
 
cecho "\nInstallation Complete!"
cecho "\nInstallation Complete!"
cecho "Before using the system, load the new environment variables doing this: source /home/$(whoami)/.bashrc"
cecho "Before using the system, load the new environment variables doing this: source /home/$(whoami)/.bashrc"
cecho "You may remove the ${DIR_TO_INSTALL}/download directory if you wish."
cecho "You may remove the ${DIR_TO_INSTALL}/download directory if you wish."
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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