Changeset 15 for trunk/environment.sh
- Timestamp:
- Apr 5, 2007, 4:17:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/environment.sh
r2 r15 1 1 #!/bin/sh 2 2 3 OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'` 4 case $OS_FOUND in 3 declare OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'` 4 5 case ${OS_FOUND} in 5 6 "SunOS-sun4X") 6 7 export TARGET_ARCH=gccsparcOS5 … … 23 24 esac 24 25 25 export SOC=$PWD 26 export PLATFORMS=$SOC/Platforms 27 export SOFT=$SOC/Softwares 28 export TOOLS=$SOC/Tools 29 export IPS=$SOC/IPs/systemC 26 # Export environement 27 export MORPHEO_TOPLEVEL=${PWD} 28 export MORPHEO_PLATFORMS=${MORPHEO_TOPLEVEL}/Platforms 29 export MORPHEO_SOFTWARE=${MORPHEO_TOPLEVEL}/Softwares 30 export MORPHEO_IPS=${MORPHEO_TOPLEVEL}/IPs/systemC 31 export MORPHEO_SCRIPT=${MORPHEO_IPS}/processor/Morpheo/Script 30 32 31 export PATH=$PATH:$IPS/processor/M_CPU/Script:$TOOLS/or1k/bin:$TOOLS/soclib/tools/bin-$TARGET_ARCH 32 33 echo 33 echo "" 34 34 echo "OS found : $OS_FOUND" 35 35 echo "" 36 echo "SOC is set to $SOC" 37 echo "PLATFORMS is set to $PLATFORMS" 38 echo "SOFT is set to $SOFT" 39 echo "TOOLS is set to $TOOLS" 40 echo "IPS is set to $IPS" 41 echo 36 echo "Modification of environement's variable : " 37 echo " - MORPHEO_TOPLEVEL is set to ${MORPHEO_TOPLEVEL} " 38 echo " - MORPHEO_PLATFORMS is set to ${MORPHEO_PLATFORMS}" 39 echo " - MORPHEO_SOFTWARE is set to ${MORPHEO_SOFTWARE} " 40 echo " - MORPHEO_IPS is set to ${MORPHEO_IPS} " 41 echo " - MORPHEO_SCRIPT is set to ${MORPHEO_SCRIPT} " 42 43 # No multiple add 44 echo ${PATH} |grep -q ${MORPHEO_SCRIPT}; 45 46 if test $? -eq 1; then 47 export PATH=${PATH}:${MORPHEO_SCRIPT} 48 echo " - PATH add ${MORPHEO_SCRIPT} " 49 fi; 50 51 echo ""
Note: See TracChangeset
for help on using the changeset viewer.