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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [scripts/] [setup] - Blame information for rev 639

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

Line No. Rev Author Line
1 30 unneback
#!/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
41
 
42
  echo -n "[0-9a-d] or any other key to quit >"
43
  read sel
44
  case $sel in
45
  0) echo -n "BINUTILS source >"
46
     read binutils_version ;;
47
  1) echo -n "BINUTILS patch version >"
48
     read binutils_patch_version ;;
49
  2) echo -n "BINUTILS RPM release >"
50
     read binutils_rpm_release ;;
51
  3) echo -n "GCC source >"
52
     read gcc_version ;;
53
  4) echo -n "GCC patch version>"
54
     read gcc_patch_version ;;
55
  5) echo -n "NEWLIB source >"
56
     read newlib_version ;;
57
  6) echo -n "NEWLIB patch version>"
58
     read newlib_patch_version ;;
59
  7) echo -n "GCC/NEWLIB RPM release >"
60
     read gccnewlib_rpm_release ;;
61
  8) echo -n "GDB source >"
62
     read gdb_version ;;
63
  9) echo -n "GDB patch version>"
64
     read gdb_patch_version ;;
65
  a) echo -n "GDB RPM release >"
66
     read gdb_rpm_release ;;
67
  b) echo -n "RTEMS source >"
68
     read rtems_version ;;
69
  c) echo -n "RTEMS RPM release >"
70
     read rtems_rpm_release ;;
71
  d) echo -n "RPM build root >"
72
     read rpm_build_root ;;
73
  *)
74
     return 0 ;;
75
  esac
76
done
77
}
78
 
79
 
80
save_setup()
81
{
82
echo -n "saving setup to $CFG .."
83
 
84
echo "# RTEMS tools setup" > $CFG
85
echo "binutils_version=$binutils_version" >> $CFG
86
echo "binutils_patch_version=$binutils_patch_version" >> $CFG
87
echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
88
echo "newlib_version=$newlib_version" >> $CFG
89
echo "newlib_patch_version=$newlib_patch_version" >> $CFG
90
echo "gcc_version=$gcc_version" >> $CFG
91
echo "gcc_patch_version=$gcc_patch_version" >> $CFG
92
echo "gccnewlib_rpm_release=$gccnewlib_rpm_release" >> $CFG
93
echo "gdb_version=$gdb_version" >> $CFG
94
echo "gdb_patch_version=$gdb_patch_version" >> $CFG
95
echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
96
echo "rtems_version=$rtems_version" >> $CFG
97
echo "rtems_rpm_release=$rtems_rpm_release" >> $CFG
98
echo "rpm_build_root=$rpm_build_root" >> $CFG
99
 
100
echo " done"
101
test -f Makefile || ./configure
102
}
103
 
104
menu_setup
105
 
106
echo
107
echo -n "Save setup [y|n] >"
108
read sel
109
case $sel in
110
''|y*|Y*) save_setup ;;
111
*) ;;
112
esac

powered by: WebSVN 2.1.0

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