Changeset de819f6e in rtems


Ignore:
Timestamp:
Feb 10, 2003, 4:32:27 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
6ca0732
Parents:
1dc7164
Message:

2003-02-10 Joel Sherrill <joel@…>

  • gdb/gdb.add, gdb/mkspec.in, gdb/target-gdb.add: Use RPM logic to determine which targets have simulators, configure with appropriate arguments, and package the correct files.
Location:
scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • scripts/ChangeLog

    r1dc7164 rde819f6e  
     12003-02-10      Joel Sherrill <joel@OARcorp.com>
     2
     3        * gdb/gdb.add, gdb/mkspec.in, gdb/target-gdb.add: Use RPM logic to
     4        determine which targets have simulators, configure with appropriate
     5        arguments, and package the correct files.
     6
    172003-02-07      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • scripts/gdb/gdb.add

    r1dc7164 rde819f6e  
    3131NoSource:      0
    3232
     33#  Account as best possible for targets without simulators
     34#  and targets which require extra arguments.
     35%define _sim    1
     36
     37%if "@target_alias@" == "m68k-rtems"
     38%define _sim    0
     39%endif
     40%if "@target_alias@" == "i386-rtems"
     41%define _sim    0
     42%endif
     43
    3344
    3445%description
     
    4758
    4859%build
     60%if "%_sim" == "1"
     61 simargs="--enable-sim"
     62%endif
     63
     64%if "@target_alias@" == "powerpc-rtems"
     65 simargs="$simargs --enable-sim-timebase --enable-sim-hardware"
     66 #  Enabling this causes the program image to be huge and causes
     67 #  some gcc/hosts combinations to run out of memory.
     68 # simargs="$simargs --enable-sim-inline"
     69%endif
     70
    4971test -d build || mkdir build
    5072  cd build
     
    5274    --build=%_build --host=%_host \
    5375    --target=@target_alias@ \
    54     --verbose --prefix=%{_prefix} @extra_configure_arguments@ \
     76    --verbose --prefix=%{_prefix} $simargs \
    5577    --disable-nls
    5678
  • scripts/gdb/mkspec.in

    r1dc7164 rde819f6e  
    4949. ./$CFG
    5050
    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 
    6751sed -e "s%@Release\@%${gdb_rpm_release}%g" \
    6852    -e "s,@rpm_build_root\@,${rpm_build_root},g" \
  • scripts/gdb/target-gdb.add

    r1dc7164 rde819f6e  
    1818%defattr(-,attr,attr)
    1919%doc %{_prefix}/man/man1/@target_alias@-gdb.1*
     20%if "%_sim" == "1"
    2021%doc %{_prefix}/man/man1/@target_alias@-run.1*
     22%endif
    2123
    2224%dir %{_prefix}/bin
    2325%{_prefix}/bin/@target_alias@-gdb%{_exeext}
     26%if "%_sim" == "1"
    2427%{_prefix}/bin/@target_alias@-run%{_exeext}
     28%endif
    2529%if "@target_alias@" == "sparc-rtems"
    2630%{_prefix}/bin/@target_alias@-sis%{_exeext}
Note: See TracChangeset for help on using the changeset viewer.