4.104.114.84.95
Last change
on this file since 9c8ee7b was
9c8ee7b,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/31/03 at 05:32:20
|
2003-01-31 Ralf Corsepius <corsepiu@…>
- gdb/gdb.add: Remove header, broken cdn-X configuration,
%clean, Replace @exe_ext@ with %{_exeext}.
- gdb/mkspec.in: Remove exe_ext.
- gdb/target-gdb.add: Replace @exe_ext@ with %{_exeext}.
- gdb/Makefile.am: Use $(top_builddir)/common/common.add,
$(top_builddir)/common/clean.add, header.add.
- gcc3newlib/base-gcj.add: Replace @exe_ext@ with %{_exeext}.
- cpukit/mkspec.in: Remove exe_ext.
- binutils/Makefile.am: Use $(top_builddir)/common/common.add,
$(top_builddir)/common/clean.add, header.add.
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # Usage: mkspec CPU |
---|
4 | # |
---|
5 | |
---|
6 | RTEMS_DIR=`dirname $0`/@top_srcdir@ |
---|
7 | |
---|
8 | CFG=../setup.cache |
---|
9 | |
---|
10 | specsrc=${RTEMS_DIR}/gdb/gdb.spec.in |
---|
11 | |
---|
12 | usage() |
---|
13 | { |
---|
14 | echo "$0 [options] <target_alias>" |
---|
15 | echo " options:" |
---|
16 | echo " -cfg <setup.cache>" |
---|
17 | echo " -a <alternate specs.in>" |
---|
18 | exit 1 ; |
---|
19 | } |
---|
20 | |
---|
21 | while test $# -ge 2; do |
---|
22 | case $1 in |
---|
23 | -cfg) |
---|
24 | shift |
---|
25 | CFG=$1 |
---|
26 | shift |
---|
27 | ;; |
---|
28 | -a) # alternate specs file |
---|
29 | shift |
---|
30 | specsrc=$1 |
---|
31 | shift |
---|
32 | ;; |
---|
33 | -*) |
---|
34 | echo "invalid option $1"; |
---|
35 | usage |
---|
36 | ;; |
---|
37 | esac |
---|
38 | done |
---|
39 | |
---|
40 | if test ! $# -eq 1; |
---|
41 | then |
---|
42 | echo "Invalid number of arguments" |
---|
43 | usage |
---|
44 | fi |
---|
45 | |
---|
46 | # target to build for |
---|
47 | target_alias=$1 |
---|
48 | |
---|
49 | . ./$CFG |
---|
50 | |
---|
51 | case ${target_alias} in |
---|
52 | arm* | d10v* | d30v* | erc32* | fr30* | h8300* | h8500* | hppa1.1* | \ |
---|
53 | i960* | m32r* | mcore* | mips* | mn10200* | mn10300* | sh* | sparc*| \ |
---|
54 | v850* | w65* | z8k*) |
---|
55 | extra_configure_arguments="--enable-sim" |
---|
56 | ;; |
---|
57 | powerpc*) |
---|
58 | extra_configure_arguments="--enable-sim --enable-sim-powerpc --enable-sim-timebase --enable-sim-hardware" |
---|
59 | # Enabling this causes the program image to be huge and causes |
---|
60 | # some gcc/hosts combinations to run out of memory. |
---|
61 | # --enable-sim-inline |
---|
62 | ;; |
---|
63 | *) |
---|
64 | ;; |
---|
65 | esac |
---|
66 | |
---|
67 | sed -e "s%@Release\@%${gdb_rpm_release}%g" \ |
---|
68 | -e "s,@rpm_build_root\@,${rpm_build_root},g" \ |
---|
69 | -e "s%@prefix\@%@prefix@%g" \ |
---|
70 | -e "s%@target_alias\@%${target_alias}%g" \ |
---|
71 | -e "s%@gdb_version\@%${gdb_version}%g" \ |
---|
72 | -e "s%@gdb_patch_version\@%${gdb_patch_version}%g" \ |
---|
73 | -e "s%@extra_configure_arguments\@%${extra_configure_arguments}%g" \ |
---|
74 | < ${specsrc} |
---|
Note: See
TracBrowser
for help on using the repository browser.