Changeset ab25407c in rtems


Ignore:
Timestamp:
Oct 19, 1999, 10:02:39 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
38118d3
Parents:
c5b8d6d
Message:

Easier to insert tool version number.

Location:
scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/gccnewlib.spec.in

    rc5b8d6d rab25407c  
    2020Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
    2121
    22 Version:      @Version@
     22Version:      gcc-@gcc_version@-newlib-@newlib_version@
    2323Summary:      rtems gcc and newlib C Library for target @target_alias@
    24 Source0:        gcc-2.95.1.tar.gz
    25 Source1:        newlib-1.8.2.tar.gz
    26 Patch0:         gcc-2.95.1-rtems-19991015.diff
    27 Patch1:         newlib-1.8.2-rtems-19991015.diff
     24Source0:        gcc-@gcc_version@.tar.gz
     25Source1:        newlib-@newlib_version@.tar.gz
     26Patch0:         gcc-@gcc_version@-rtems-@gcc_patch_version@.diff
     27Patch1:         newlib-@newlib_version@-rtems-@newlib_patch_version@.diff
    2828
    2929Buildroot:    /tmp
     
    4040
    4141%prep
    42 # untar the sources inside @target_alias@-gcc-newlib -@Version@
     42# untar the sources inside @target_alias@-gcc-newlib
    4343%setup -c -n @target_alias@-gcc-newlib -a 0 -a 1
    4444
     
    4646%patch1 -p0
    4747
    48 ( cd gcc-2.95.1
     48( cd gcc-@gcc_version@
    4949
    5050  # Now link the C library into the source tree
    51   ln -s ../newlib-1.8.2/newlib .
     51  ln -s ../newlib-@newlib_version@/newlib .
    5252)
    5353
     
    5555test -d build || mkdir build
    5656( cd build
    57   ../gcc-2.95.1/configure --target=@target_alias@ \
     57  ../gcc-@gcc_version@/configure --target=@target_alias@ \
    5858    --with-gnu-as --with-gnu-ld --with-newlib --verbose \
    5959    --prefix=/opt/rtems
     
    7070    || mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
    7171
    72   srclimits=../gcc-2.95.1/newlib/libc/sys/rtems/include/limits.h
     72  srclimits=../gcc-@gcc_version@/newlib/libc/sys/rtems/include/limits.h
    7373  for dir in $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include \
    7474             $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
     
    112112/opt/rtems/bin/@target_alias@-gcc
    113113/opt/rtems/bin/@target_alias@-gcj
    114 /opt/rtems/lib/gcc-lib/@target_alias@/2.95.1
     114/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@
    115115/opt/rtems/@target_alias@/include*
    116116/opt/rtems/@target_alias@/sys-include
  • scripts/mkgccnewlibspec

    rc5b8d6d rab25407c  
    55
    66RTEMS_DIR=`dirname $0`
    7 RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
    8 sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
    97
    108target_alias=$1
    11 release=0
     9
     10# RPM release number
     11rpm_release=0
     12
     13# gcc version number
     14gcc_version=2.95.1
     15gcc_patch_version=19991015
     16
     17# newlib version number
     18newlib_version=1.8.2
     19newlib_patch_version=19991015
    1220
    1321# Some linux distributions use /usr/src/packages
     
    2533fi
    2634
    27 sed -e "s%@Version@%${RTEMS_VERSION}%g" \
    28 -e "s%@bsp@%${bsp}%g" \
    29 -e "s%@Release@%${release}%g" \
    30 -e "s%@target_alias@%${target_alias}%g" \
     35specfile=${dst}/$target_alias-gcc-${gcc_version}-newlib-${newlib_version}.spec
     36sed -e "s%@Release@%${rpm_release}%g" \
     37    -e "s%@target_alias@%${target_alias}%g" \
     38    -e "s%@gcc_version@%${gcc_version}%g" \
     39    -e "s%@gcc_patch_version@%${gcc_patch_version}%g" \
     40    -e "s%@newlib_version@%${newlib_version}%g" \
     41    -e "s%@newlib_patch_version@%${newlib_patch_version}%g" \
    3142< ${RTEMS_DIR}/gccnewlib.spec.in \
    32 > ${dst}/$target_alias-gcc_newlib.spec
     43> ${specfile}
    3344
    34 echo Generated ${dst}/$target_alias-gcc_newlib.spec.
     45echo Generated ${specfile}.
Note: See TracChangeset for help on using the changeset viewer.