source: trunk/environment.sh @ 14

Last change on this file since 14 was 2, checked in by kane, 18 years ago

Import Morpheo

File size: 901 bytes
Line 
1#!/bin/sh
2
3OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'`
4case $OS_FOUND in
5    "SunOS-sun4X")
6        export TARGET_ARCH=gccsparcOS5
7        export EXE_SUFFIX=
8        ;;
9    "Linux-iX86")
10        export TARGET_ARCH=linux
11        export EXE_SUFFIX=
12        ;;
13    "FreeBSD-iX86")
14        export TARGET_ARCH=freebsd
15        export EXE_SUFFIX=
16        ;;
17    "CYGWIN_NT-5.1-iX86")
18        export TARGET_ARCH=cygwin
19        export EXE_SUFFIX=.exe
20        ;;     
21    *) 
22     echo "Unknown OS found"
23esac
24
25export SOC=$PWD
26export PLATFORMS=$SOC/Platforms
27export SOFT=$SOC/Softwares
28export TOOLS=$SOC/Tools
29export IPS=$SOC/IPs/systemC
30
31export PATH=$PATH:$IPS/processor/M_CPU/Script:$TOOLS/or1k/bin:$TOOLS/soclib/tools/bin-$TARGET_ARCH
32
33echo
34echo "OS found : $OS_FOUND"
35echo ""
36echo "SOC         is set to $SOC"
37echo "PLATFORMS   is set to $PLATFORMS"
38echo "SOFT        is set to $SOFT"
39echo "TOOLS       is set to $TOOLS"
40echo "IPS         is set to $IPS"
41echo
Note: See TracBrowser for help on using the repository browser.