source: rtems/scripts/gdb/mkspec.in @ c86d8e7f

4.104.114.84.95
Last change on this file since c86d8e7f was c86d8e7f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/29/03 at 14:06:02

2003-01-29 Ralf Corsepius <corsepiu@…>

  • ChangeLog?: Fix yesterday's entry.
  • gdb/target-gdb.add: %defattr(-,root,root). Use %{_prefix} instead of /opt/rtems. Misc. minor changes.
  • gdb/gdb.add: Use %{_prefix} instead of /opt/rtems. Remove stray unpackaged files. Use %{_defaultbuildroot} instead of hard-coded values. configure --disable-nls. Misc. minor changes. Add BuildPreReq?: ncurses-devel.
  • gdb/base-gdb.add: %defattr(-,root,root). Use %{_prefix} instead of /opt/rtems. Misc. minor changes.
  • gdb/mkspec.in: New.
  • gdb/Makefile.am: Reflect addition of gdb/mkspec.in.
  • gcc3newlib/mkspec.in: Fix usage.
  • gcc3newlib/gccnewlib.add: Use %{_defaultbuildroot} instead of hard-coded values. Update copyright notice.
  • mkgdbspec.in: Removed.
  • Makefile.am: Remove mkgdbspec.
  • configure.ac: Remove mkgdbspec. Add gdb/mkspec.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1#!/bin/sh
2#
3#  Usage: mkspec CPU
4#
5
6RTEMS_DIR=`dirname $0`/@top_srcdir@
7
8CFG=../setup.cache
9exe_ext=@EXEEXT@
10
11specsrc=${RTEMS_DIR}/gdb/gdb.spec.in
12
13usage()
14{
15  echo "$0 [options] <target_alias>"
16  echo "  options:"
17  echo "    -cfg <setup.cache>"
18  echo "    -a <alternate specs.in>"
19  exit 1 ;
20}
21
22while test $# -ge 2; do
23case $1 in
24-cfg)
25  shift
26  CFG=$1
27  shift
28  ;;
29-a)        # alternate specs file
30  shift
31  specsrc=$1
32  shift
33  ;;
34-*)
35  echo "invalid option $1";
36  usage
37  ;;
38esac
39done
40
41if test ! $# -eq 1;
42then
43  echo "Invalid number of arguments"
44  usage
45fi
46
47# target to build for
48target_alias=$1
49
50. ./$CFG
51
52case ${target_alias} in
53  arm* | d10v* | d30v* | erc32* | fr30* | h8300* | h8500* | hppa1.1* | \
54  i960* | m32r* | mcore* | mips* | mn10200* | mn10300* | sh* | sparc*| \
55  v850* | w65* | z8k*)
56    extra_configure_arguments="--enable-sim"
57    ;;
58  powerpc*)
59    extra_configure_arguments="--enable-sim --enable-sim-powerpc --enable-sim-timebase --enable-sim-hardware"
60    #  Enabling this causes the program image to be huge and causes
61    #  some gcc/hosts combinations to run out of memory.
62    #          --enable-sim-inline
63    ;;
64  *)
65    ;;
66esac
67
68sed -e "s%@Release\@%${gdb_rpm_release}%g" \
69    -e "s,@rpm_build_root\@,${rpm_build_root},g" \
70    -e "s%@prefix\@%@prefix@%g" \
71    -e "s%@target_alias\@%${target_alias}%g" \
72    -e "s%@gdb_version\@%${gdb_version}%g" \
73    -e "s%@gdb_patch_version\@%${gdb_patch_version}%g" \
74    -e "s%@extra_configure_arguments\@%${extra_configure_arguments}%g" \
75    -e "s%@exe_ext\@%${exe_ext}%g" \
76< ${specsrc}
Note: See TracBrowser for help on using the repository browser.