URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
[/] [minsoc/] [trunk/] [utils/] [setup/] [minsoc-install.sh] - Diff between revs 103 and 106
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 103 |
Rev 106 |
Line 40... |
Line 40... |
else
|
else
|
errormsg "$1 is not installed, install it and re-run this installation script."
|
errormsg "$1 is not installed, install it and re-run this installation script."
|
fi
|
fi
|
}
|
}
|
|
|
|
|
|
#Setting environment
|
|
ENV=`uname -o`
|
|
if [ "$ENV" != "GNU/Linux" ] && [ "$ENV" != "Cygwin" ]
|
|
then
|
|
errormsg "Environment $ENV not supported by this script."
|
|
fi
|
|
cecho "Building tools for ${ENV} system"
|
|
|
|
is_arch64=`uname -m | grep 64`
|
|
if [ -z $is_arch64 ]
|
|
then
|
|
KERNEL_ARCH="32"
|
|
else
|
|
KERNEL_ARCH="64"
|
|
fi
|
|
|
|
|
# User check!
|
# User check!
|
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;
|
Line 85... |
Line 103... |
then
|
then
|
errormsg "Directory doesn't exist. Please create it";
|
errormsg "Directory doesn't exist. Please create it";
|
fi;
|
fi;
|
|
|
|
|
#Setting environment
|
|
ENV=`uname -o`
|
|
if [ "$ENV" != "GNU/Linux" ] && [ "$ENV" != "Cygwin" ]
|
|
then
|
|
errormsg "Environment $ENV not supported by this script."
|
|
fi
|
|
cecho "Building tools for ${ENV} system"
|
|
|
|
is_arch64=`uname -m | grep 64`
|
|
if [ -z $is_arch64 ]
|
|
then
|
|
KERNEL_ARCH="32"
|
|
else
|
|
KERNEL_ARCH="64"
|
|
fi
|
|
|
|
|
|
#Creating directory structure
|
#Creating directory structure
|
cecho "\nCreating directory structure"
|
cecho "\nCreating directory structure"
|
cd ${DIR_TO_INSTALL}
|
cd ${DIR_TO_INSTALL}
|
execcmd "Creating directory ./download for downloaded packages" "mkdir -p download"
|
execcmd "Creating directory ./download for downloaded packages" "mkdir -p download"
|
execcmd "Creating directory ./tools for package binaries" "mkdir -p tools"
|
execcmd "Creating directory ./tools for package binaries" "mkdir -p tools"
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.