Changeset 15 for trunk/environment.sh


Ignore:
Timestamp:
Apr 5, 2007, 4:17:30 PM (18 years ago)
Author:
rosiere
Message:

Interface normalisé
Début du banc de registres multi niveaux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/environment.sh

    r2 r15  
    11#!/bin/sh
    22
    3 OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'`
    4 case $OS_FOUND in
     3declare OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'`
     4
     5case ${OS_FOUND} in
    56    "SunOS-sun4X")
    67        export TARGET_ARCH=gccsparcOS5
     
    2324esac
    2425
    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
     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
    3032
    31 export PATH=$PATH:$IPS/processor/M_CPU/Script:$TOOLS/or1k/bin:$TOOLS/soclib/tools/bin-$TARGET_ARCH
    32 
    33 echo
     33echo ""
    3434echo "OS found : $OS_FOUND"
    3535echo ""
    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
     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}   "
     42
     43# No multiple add
     44echo ${PATH} |grep -q ${MORPHEO_SCRIPT};
     45
     46if test $? -eq 1; then
     47export  PATH=${PATH}:${MORPHEO_SCRIPT}
     48echo " - PATH                add       ${MORPHEO_SCRIPT}   "
     49fi;
     50
     51echo ""
Note: See TracChangeset for help on using the changeset viewer.