Changeset 4c46630 in rtems for scripts/gccnewlib


Ignore:
Timestamp:
Jan 31, 2000, 3:15:10 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d7269fb
Parents:
d2bc265
Message:

Patch rtems-rc-20000118-1.diff from Ralf Corsepius <corsepiu@…>
that contains:

  • cleanups to configuration files
  • A reworked gccnewlib.spec.in: I have reformated it for enhanced readability and added more rtems-base packages. It now should be free of any installation conflicts (If there still remain some, they should be regarded as bugs).
  • A fix to the bin2boot RTEMS_BSP issue (make RTEMS_BSP="pc386 pc486" now works).
  • removes libbsp/bare/wrapup
  • Further cleanups
Location:
scripts/gccnewlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/gccnewlib/Makefile.am

    rd2bc265 r4c46630  
     1##
    12## $Id$
     3##
    24
    35AUTOMAKE_OPTIONS = foreign
  • scripts/gccnewlib/gccnewlib.spec.in

    rd2bc265 r4c46630  
    22# spec file for building gcc for rtems
    33#
    4 # Copyright  (c)  1999 OARCorp, Huntsville, AL
     4# Copyright  (c) 1999,2000 OARCorp, Huntsville, AL
    55#
    66# please send bugfixes or comments to joel@OARcorp.com
     
    1515Copyright:    1999 OARCorp
    1616
    17 Provides:       rtems-base-gcc @target_alias@-gcc @target_alias@-chill
    18 Provides:       @target_alias@-gcj @target_alias@-g77 @target_alias@-objc
     17Provides:       rtems-base-gcc @target_alias@-gcc
     18Provides:       rtems-base-chill @target_alias@-chill
     19Provides:       rtems-base-gcj @target_alias@-gcj
     20Provides:       rtems-base-g77 @target_alias@-g77
     21Provides:       @target_alias@-objc
    1922Requires:       @target_alias@-binutils
    2023
     
    5457
    5558 You can get them yourself from the Internet and copy them to
    56  your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
     59 your /usr/src/[redhat|packages]/SOURCES directory ($RPM_SOURCE_DIR).
    5760 Or you can try the ftp options of rpm :-)
    58 
    59 %package -n rtems-base-gcc
    60 Summary:      base package for rtems gcc and newlib C Library
    61 Group: rtems
    62 
    63 %description -n rtems-base-gcc
    64 
    65 RTEMS is an open source operating system for embedded systems.
    66 
    67 This is the files for gcc and newlib that are shared by all targets.
    68 
    69 %package -n @target_alias@-gcc
    70 Summary:      rtems gcc and newlib C Library for @target_alias@
    71 Group: rtems
    72 Requires: @target_alias@-binutils rtems-base-gcc
    73 
    74 %description -n @target_alias@-gcc
    75 RTEMS is an open source operating system for embedded systems.
    76 
    77 This is gcc and newlib C Library for @target_alias@.
    78 
    79 %package -n @target_alias@-chill
    80 Summary:      gcc/chill compiler for @target_alias@
    81 Group: rtems
    82 Requires: @target_alias@-gcc
    83 
    84 %description -n @target_alias@-chill
    85 RTEMS is an open source operating system for embedded systems.
    86 
    87 This is the gcc/chill compiler and support files for @target_alias@
    88 
    89 %package -n @target_alias@-gcj
    90 Summary:      gcc/java compiler (gcj) for @target_alias@
    91 Group: rtems
    92 Requires: @target_alias@-gcc
    93 
    94 %description -n @target_alias@-gcj
    95 RTEMS is an open source operating system for embedded systems.
    96 
    97 This is the gcc/java compiler for @target_alias@
    98 
    99 %package -n @target_alias@-g77
    100 Summary:      gcc/g77 compiler for @target_alias@
    101 Group: rtems
    102 Requires: @target_alias@-gcc
    103 
    104 %description -n @target_alias@-g77
    105 RTEMS is an open source operating system for embedded systems.
    106 
    107 This is the gcc/g77 compiler for @target_alias@
    108 
    109 %package -n @target_alias@-objc
    110 Summary:      gcc/objc compiler for @target_alias@
    111 Group: rtems
    112 Requires: @target_alias@-objc
    113 
    114 %description -n @target_alias@-objc
    115 RTEMS is an open source operating system for embedded systems.
    116 
    117 This is the gcc/objc compiler for @target_alias@
    11861
    11962%prep
     
    199142  done
    200143
     144# ==============================================================
     145# rtems-base-gcc
     146# ==============================================================
     147%package -n rtems-base-gcc
     148Summary:      base package for rtems gcc and newlib C Library
     149Group: rtems
     150
     151%description -n rtems-base-gcc
     152
     153RTEMS is an open source operating system for embedded systems.
     154
     155This is the files for gcc and newlib that are shared by all targets.
     156
    201157%files -n rtems-base-gcc
    202158%dir /opt/rtems/info
    203 # %doc /opt/rtems/info/dir
    204 %doc /opt/rtems/info/cpp.info*
    205 %doc /opt/rtems/info/gcc.info*
    206 %doc /opt/rtems/info/libc.info*
    207 %doc /opt/rtems/info/libm.info*
     159%doc /opt/rtems/info/cpp.info*.gz
     160%doc /opt/rtems/info/gcc.info*.gz
     161%doc /opt/rtems/info/libc.info*.gz
     162%doc /opt/rtems/info/libm.info*.gz
    208163
    209164%dir /opt/rtems/bin
     
    218173/opt/rtems/include/g++-3
    219174
     175%post -n rtems-base-gcc
     176  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     177  then
     178    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     179    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     180    test -n "$f" && for i in $f; do
     181      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     182    done
     183  fi
     184
     185%postun -n rtems-base-gcc
     186  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     187  then
     188    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     189    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     190    test -n "$f" && for i in $f; do
     191      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     192    done
     193  fi
     194
     195# ==============================================================
     196# @target_alias@-gcc
     197# ==============================================================
     198%package -n @target_alias@-gcc
     199Summary:      rtems gcc and newlib C Library for @target_alias@
     200Group: rtems
     201Requires: @target_alias@-binutils rtems-base-gcc
     202
     203%description -n @target_alias@-gcc
     204RTEMS is an open source operating system for embedded systems.
     205
     206This is gcc and newlib C Library for @target_alias@.
     207
    220208%files -n @target_alias@-gcc -f build/files.gcc
    221 
    222209%doc /opt/rtems/man/man1/@target_alias@-gcc.1
    223210%doc /opt/rtems/man/man1/@target_alias@-g++.1
     
    233220/opt/rtems/@target_alias@
    234221
    235 %post -n @target_alias@-gcc
    236   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    237   then
    238     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    239     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    240     test -n "$f" && for i in $f; do
    241       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    242     done
    243   fi
    244 
    245 %postun -n @target_alias@-gcc
    246   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    247   then
    248     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    249     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    250     test -n "$f" && for i in $f; do
    251       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    252     done
    253   fi
    254 
     222# ==============================================================
     223# rtems-base-chill
     224# ==============================================================
     225%package -n rtems-base-chill
     226Summary:      base package for rtems gcc/chill compiler.
     227Group: rtems
     228Requires: rtems-base-gcc
     229
     230%description -n rtems-base-chill
     231RTEMS is an open source operating system for embedded systems.
     232
     233This is the files for gcc/chill that are shared by all targets.
     234
     235%files -n rtems-base-chill
     236%dir /opt/rtems/info
     237%doc /opt/rtems/info/chill.info*.gz
     238
     239%post -n rtems-base-chill
     240  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     241  then
     242    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     243    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     244    test -n "$f" && for i in $f; do
     245      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     246    done
     247  fi
     248
     249%postun -n rtems-base-chill
     250  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     251  then
     252    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     253    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     254    test -n "$f" && for i in $f; do
     255      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     256    done
     257  fi
     258
     259# ==============================================================
     260# @target_alias@-chill
     261# ==============================================================
     262%package -n @target_alias@-chill
     263Summary:      gcc/chill compiler for @target_alias@
     264Group: rtems
     265Requires: rtems-base-chill @target_alias@-gcc
     266
     267%description -n @target_alias@-chill
     268RTEMS is an open source operating system for embedded systems.
     269
     270This is the gcc/chill compiler and support files for @target_alias@
    255271
    256272%files -n @target_alias@-chill -f build/files.chill
     
    258274/opt/rtems/bin/@target_alias@-chill
    259275
    260 %dir /opt/rtems/info
    261 %doc /opt/rtems/info/dir
    262 %doc /opt/rtems/info/chill.info*
    263 
    264 %post -n @target_alias@-chill
    265   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    266   then
    267     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    268     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    269     test -n "$f" && for i in $f; do
    270       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    271     done
    272   fi
    273 
    274 %postun -n @target_alias@-chill
    275   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    276   then
    277     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    278     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    279     test -n "$f" && for i in $f; do
    280       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    281     done
    282   fi
    283 
    284 
    285 %files -n @target_alias@-gcj -f build/files.gcj
     276# ==============================================================
     277# rtems-base-gcj
     278# ==============================================================
     279%package -n rtems-base-gcj
     280Summary:      base package for rtems gcc/java compiler (gcj).
     281Group: rtems
     282Requires: rtems-base-gcc
     283
     284%description -n rtems-base-gcj
     285RTEMS is an open source operating system for embedded systems.
     286
     287This is the files for gcc/java (gcj) that are shared by all targets.
     288
     289%files -n rtems-base-gcj
    286290%dir /opt/rtems/bin
    287291/opt/rtems/bin/jcf-dump@exe_ext@
    288292/opt/rtems/bin/jv-scan@exe_ext@
    289293/opt/rtems/bin/gcjh@exe_ext@
     294
     295# ==============================================================
     296# @target_alias@-gcj
     297# ==============================================================
     298%package -n @target_alias@-gcj
     299Summary:      gcc/java compiler (gcj) for @target_alias@
     300Group: rtems
     301Requires: rtems-base-gcj @target_alias@-gcc
     302
     303%description -n @target_alias@-gcj
     304RTEMS is an open source operating system for embedded systems.
     305
     306This is the gcc/java compiler for @target_alias@
     307
     308%files -n @target_alias@-gcj -f build/files.gcj
     309%dir /opt/rtems/bin
    290310/opt/rtems/bin/@target_alias@-gcj@exe_ext@
    291311
     
    293313/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jvgenmain
    294314
    295 
    296 %files -n @target_alias@-g77 -f build/files.g77
    297 %dir /opt/rtems/bin
    298 /opt/rtems/bin/@target_alias@-g77@exe_ext@
    299 
     315# ==============================================================
     316# rtems-base-g77
     317# ==============================================================
     318%package -n rtems-base-g77
     319Summary:      rtems base package for gcc/g77 compiler
     320Group: rtems
     321Requires: rtems-base-gcc
     322
     323%description -n rtems-base-g77
     324RTEMS is an open source operating system for embedded systems.
     325
     326This is the files for gcc/g77 that are shared by all targets.
     327
     328%files -n rtems-base-g77
    300329%dir /opt/rtems/info
    301 %doc /opt/rtems/info/g77.info*
     330%doc /opt/rtems/info/g77.info*.gz
    302331
    303332%dir /opt/rtems/man
     
    305334%doc /opt/rtems/man/man1/@target_alias@-g77.1
    306335
     336%post -n rtems-base-g77
     337  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     338  then
     339    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     340    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     341    test -n "$f" && for i in $f; do
     342      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     343    done
     344  fi
     345
     346%postun -n rtems-base-g77
     347  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     348  then
     349    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     350    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     351    test -n "$f" && for i in $f; do
     352      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     353    done
     354  fi
     355
     356# ==============================================================
     357# @target_alias@-g77
     358# ==============================================================
     359%package -n @target_alias@-g77
     360Summary:      gcc/g77 compiler for @target_alias@
     361Group: rtems
     362Requires: rtems-base-g77 @target_alias@-gcc
     363
     364%description -n @target_alias@-g77
     365RTEMS is an open source operating system for embedded systems.
     366
     367This is the gcc/g77 compiler for @target_alias@
     368
     369%files -n @target_alias@-g77 -f build/files.g77
     370%dir /opt/rtems/bin
     371/opt/rtems/bin/@target_alias@-g77@exe_ext@
     372
    307373/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/f771@exe_ext@
    308374
    309 %post -n @target_alias@-g77
    310   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    311   then
    312     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    313     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    314     test -n "$f" && for i in $f; do
    315       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    316     done
    317   fi
    318 
    319 %postun -n @target_alias@-g77
    320   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    321   then
    322     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    323     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    324     test -n "$f" && for i in $f; do
    325       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    326     done
    327   fi
    328 
     375# ==============================================================
     376# @target_alias@-objc
     377# ==============================================================
     378%package -n @target_alias@-objc
     379Summary:      gcc/objc compiler for @target_alias@
     380Group: rtems
     381Requires: @target_alias@-gcc
     382
     383%description -n @target_alias@-objc
     384RTEMS is an open source operating system for embedded systems.
     385
     386This is the gcc/objc compiler for @target_alias@
    329387
    330388%files -n @target_alias@-objc -f build/files.objc
Note: See TracChangeset for help on using the changeset viewer.