source: trunk/environment.sh @ 77

Last change on this file since 77 was 59, checked in by rosiere, 17 years ago

Add Load store queue -> but not terminated and tested
Add article to sympa 2007 -> but no started

File size: 1.3 KB
RevLine 
[2]1#!/bin/sh
2
[15]3declare OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'`
4
5case ${OS_FOUND} in
[59]6#    "SunOS-sun4X")
7#       export TARGET_ARCH=gccsparcOS5
8#       export EXE_SUFFIX=
9#       ;;
[2]10    "Linux-iX86")
11        export TARGET_ARCH=linux
12        export EXE_SUFFIX=
13        ;;
[59]14#    "FreeBSD-iX86")
15#       export TARGET_ARCH=freebsd
16#       export EXE_SUFFIX=
17#       ;;
18#    "CYGWIN_NT-5.1-iX86")
19#       export TARGET_ARCH=cygwin
20#       export EXE_SUFFIX=.exe
21#       ;;     
[2]22    *) 
23     echo "Unknown OS found"
24esac
25
[15]26# Export environement
27export  MORPHEO_TOPLEVEL=${PWD}
28export  MORPHEO_PLATFORMS=${MORPHEO_TOPLEVEL}/Platforms
29export  MORPHEO_SOFTWARE=${MORPHEO_TOPLEVEL}/Softwares
30export  MORPHEO_IPS=${MORPHEO_TOPLEVEL}/IPs/systemC
31export  MORPHEO_SCRIPT=${MORPHEO_IPS}/processor/Morpheo/Script
[2]32
[15]33echo ""
[59]34echo "OS found : ${OS_FOUND}"
[2]35echo ""
[59]36echo " * Modification of environement's variable : "
37echo "   - MORPHEO_TOPLEVEL    is set to ${MORPHEO_TOPLEVEL} "
38echo "   - MORPHEO_PLATFORMS   is set to ${MORPHEO_PLATFORMS}"
39echo "   - MORPHEO_SOFTWARE    is set to ${MORPHEO_SOFTWARE} "
40echo "   - MORPHEO_IPS         is set to ${MORPHEO_IPS}      "
41echo "   - MORPHEO_SCRIPT      is set to ${MORPHEO_SCRIPT}   "
[15]42
43# No multiple add
44echo ${PATH} |grep -q ${MORPHEO_SCRIPT};
45
46if test $? -eq 1; then
47export  PATH=${PATH}:${MORPHEO_SCRIPT}
[59]48echo "   - PATH                add       ${MORPHEO_SCRIPT}   "
[15]49fi;
50
51echo ""
Note: See TracBrowser for help on using the repository browser.