Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'` |
---|
4 | case $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" |
---|
23 | esac |
---|
24 | |
---|
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 |
---|
30 | |
---|
31 | export PATH=$PATH:$IPS/processor/M_CPU/Script:$TOOLS/or1k/bin:$TOOLS/soclib/tools/bin-$TARGET_ARCH |
---|
32 | |
---|
33 | echo |
---|
34 | echo "OS found : $OS_FOUND" |
---|
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 |
---|
Note: See
TracBrowser
for help on using the repository browser.