OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [scripts/] [setup] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#!/bin/bash
2
 
3
CFG=setup.cache
4
 
5
# RTEMS tools setup
6
 
7
if test ! -f ./$CFG;
8
then
9
 echo -n "restoring default setup.cache .."
10
 cp ./setup.def ./$CFG
11
 echo " done"
12
fi
13
 
14
echo -n "loading setup from ./$CFG .."
15
. ./$CFG
16
echo " done"
17
echo
18
 
19
menu_setup()
20
{
21
while true;
22
do
23
  echo
24
  echo "       Source packages setup"
25
  echo
26
  echo "0 binutils version        : $binutils_version"
27
  echo "1 binutils patch version  : $binutils_patch_version"
28
  echo "2 binutils rpm release    : $binutils_rpm_release"
29
  echo "3 gcc version             : $gcc_version"
30
  echo "4 gcc patch version       : $gcc_patch_version"
31
  echo "5 newlib version          : $newlib_version"
32
  echo "6 newlib patch version    : $newlib_patch_version"
33
  echo "7 gcc/newlib rpm release  : $gccnewlib_rpm_release"
34
  echo "8 gdb version             : $gdb_version"
35
  echo "9 gdb patch version       : $gdb_patch_version"
36
  echo "a gdb rpm release         : $gdb_rpm_release"
37
  echo "b rtems version           : $rtems_version"
38
  echo "c rtems rpm release       : $rtems_rpm_release"
39
  echo "d rpm build root          : $rpm_build_root"
40
  echo "e gcc3 version             : $gcc3_version"
41
  echo "f gcc3 patch version       : $gcc3_patch_version"
42
  echo "g gcc3 newlib version      : $gcc3newlib_version"
43
  echo "h gcc3 newlib patch version: $gcc3newlib_patch_version"
44
  echo "i gcc3/newlib rpm release  : $gcc3newlib_rpm_release"
45
  echo
46
 
47
  echo -n "[0-9a-d] or any other key to quit >"
48
  read sel
49
  case $sel in
50
  0) echo -n "BINUTILS source >"
51
     read binutils_version ;;
52
  1) echo -n "BINUTILS patch version >"
53
     read binutils_patch_version ;;
54
  2) echo -n "BINUTILS RPM release >"
55
     read binutils_rpm_release ;;
56
  3) echo -n "GCC source >"
57
     read gcc_version ;;
58
  4) echo -n "GCC patch version>"
59
     read gcc_patch_version ;;
60
  5) echo -n "NEWLIB source >"
61
     read newlib_version ;;
62
  6) echo -n "NEWLIB patch version>"
63
     read newlib_patch_version ;;
64
  7) echo -n "GCC/NEWLIB RPM release >"
65
     read gccnewlib_rpm_release ;;
66
  8) echo -n "GDB source >"
67
     read gdb_version ;;
68
  9) echo -n "GDB patch version>"
69
     read gdb_patch_version ;;
70
  a) echo -n "GDB RPM release >"
71
     read gdb_rpm_release ;;
72
  b) echo -n "RTEMS source >"
73
     read rtems_version ;;
74
  c) echo -n "RTEMS RPM release >"
75
     read rtems_rpm_release ;;
76
  d) echo -n "RPM build root >"
77
     read rpm_build_root ;;
78
  e) echo -n "GCC3 source >"
79
     read gcc3_version ;;
80
  f) echo -n "GCC3 patch version>"
81
     read gcc3_patch_version ;;
82
  g) echo -n "NEWLIB source >"
83
     read gcc3newlib_version ;;
84
  h) echo -n "NEWLIB patch version>"
85
     read gcc3newlib_patch_version ;;
86
  i) echo -n "GCC3/NEWLIB RPM release >"
87
     read gcc3newlib_rpm_release ;;
88
  *)
89
     return 0 ;;
90
  esac
91
done
92
}
93
 
94
 
95
save_setup()
96
{
97
echo -n "saving setup to $CFG .."
98
 
99
echo "# RTEMS tools setup" > $CFG
100
echo "binutils_version=$binutils_version" >> $CFG
101
echo "binutils_patch_version=$binutils_patch_version" >> $CFG
102
echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
103
echo "newlib_version=$newlib_version" >> $CFG
104
echo "newlib_patch_version=$newlib_patch_version" >> $CFG
105
echo "gcc_version=$gcc_version" >> $CFG
106
echo "gcc_patch_version=$gcc_patch_version" >> $CFG
107
echo "gccnewlib_rpm_release=$gccnewlib_rpm_release" >> $CFG
108
echo "gdb_version=$gdb_version" >> $CFG
109
echo "gdb_patch_version=$gdb_patch_version" >> $CFG
110
echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
111
echo "rtems_version=$rtems_version" >> $CFG
112
echo "rtems_rpm_release=$rtems_rpm_release" >> $CFG
113
echo "rpm_build_root=$rpm_build_root" >> $CFG
114
echo "gcc3newlib_version=$gcc3newlib_version" >> $CFG
115
echo "gcc3newlib_patch_version=$gcc3newlib_patch_version" >> $CFG
116
echo "gcc3_version=$gcc3_version" >> $CFG
117
echo "gcc3_patch_version=$gcc3_patch_version" >> $CFG
118
echo "gcc3newlib_rpm_release=$gcc3newlib_rpm_release" >> $CFG
119
 
120
echo " done"
121
test -f Makefile || ./configure
122
}
123
 
124
menu_setup
125
 
126
echo
127
echo -n "Save setup [y|n] >"
128
read sel
129
case $sel in
130
''|y*|Y*) save_setup ;;
131
*) ;;
132
esac

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.