Changeset 1410dc36 in rtems


Ignore:
Timestamp:
Oct 20, 1999, 3:21:11 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
10629f7
Parents:
7815d96
Message:

Committing changes before Ralf's changed.

Location:
scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • scripts/binutils.spec.in

    r7815d96 r1410dc36  
    6565
    6666%files
     67%dir /opt/rtems
     68%dir /opt/rtems/bin
     69%dir /opt/rtems/info
     70%dir /opt/rtems/lib
     71%dir /opt/rtems/@target_alias@
     72%dir /opt/rtems/@target_alias@/bin
     73%dir /opt/rtems/@target_alias@/include
     74%dir /opt/rtems/@target_alias@/sys-include
     75%dir /opt/rtems/@target_alias@/lib
     76%dir /opt/rtems/@target_alias@/lib/ldscripts
     77%dir /opt/rtems/man
     78%dir /opt/rtems/man/man1
     79
    6780%doc /opt/rtems/info/as.info*
    6881%doc /opt/rtems/info/bfd.info*
  • scripts/buildall

    r7815d96 r1410dc36  
    1717
    1818# This is what we are building this time
    19 TARGETS=${ALL_TARGETS}
    20 #TARGETS="sh-rtems"
     19#TARGETS=${ALL_TARGETS}
     20TARGETS="sh-rtems"
    2121
    2222testing=no
     23
     24binutils=990901
     25gcc=2.95.1
     26gdb=4.18
     27newlib=1.8.2
     28buildroot=/opt/tmp
     29
     30#
     31#  Now get started
     32#
     33start=`date`
     34
    2335
    2436echo PATH=$PATH
     
    2638if [ ${testing} = yes ] ; then
    2739  ECHO=echo
     40fi
     41
     42installed_count=`rpm -qa | grep rtems | wc -l`
     43if [ ${installed_count} -ne 0 ] ; then
     44  echo This script should be run with NO rtems RPMs installed.
     45  echo It appears that the following rtems RPMs are installed:
     46  echo
     47  rpm -qa | grep rtems
     48  echo
     49  echo Please remove these and restart this script.
     50  exit 1
    2851fi
    2952
     
    5275test -d log || mkdir log
    5376
    54 binutils=990901
    55 gcc=2.95.1
    56 gdb=4.18
    57 newlib=1.8.2
    5877
    59 #  do all the binutils
     78#  do all the tools
    6079for target in ${TARGETS}
    6180do
    62   echo "rpm -ba --buildroot=/opt/tmp \
    63      ${dst}/${target}-binutils-${binutils}.spec >log/${target}-binutils 2>&1"
     81  logfile=log/${target}-binutils
     82  specfile=${dst}/${target}-binutils-${binutils}.spec
     83  echo "rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1"
    6484  if [ ${testing} = no ] ; then
    65     rpm -ba --buildroot=/opt/tmp \
    66        ${dst}/${target}-binutils-${binutils}.spec >log/${target}-binutils 2>&1
     85    rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1
    6786  fi
    6887  ${ECHO} rm -rf ${dst}/../BUILD/${target}-binutils*
    69   ${ECHO} rm -rf /opt/tmp/opt
     88  ${ECHO} rm -rf ${buildroot}/opt
    7089
    7190  # now build gdb
    72   echo "rpm -ba --buildroot=/opt/tmp \
    73      ${dst}/${target}-gdb-${gdb}.spec >log/${target}-gdb 2>&1"
     91  logfile=log/${target}-gdb
     92  specfile=${dst}/${target}-gdb-${gdb}.spec
     93  echo "rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1"
    7494  if [ ${testing} = no ] ; then
    75     rpm -ba --buildroot=/opt/tmp \
    76        ${dst}/${target}-gdb-${gdb}.spec >log/${target}-gdb 2>&1
     95    rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1
    7796  fi
    7897  ${ECHO} rm -rf ${dst}/../BUILD/${target}-gdb*
    79   ${ECHO} rm -rf /opt/tmp/opt
     98  ${ECHO} rm -rf ${buildroot}/opt
    8099
    81100  # now build gcc/newlib
     
    84103  ${ECHO} rpm -i ${dst}/../RPMS/i386/${target}-binutils-${binutils}-0.i386.rpm
    85104
    86   echo "rpm -ba --buildroot=/opt/tmp \
    87      ${dst}/${target}-gcc-${gcc}-newlib-${newlib}.spec >log/${target}-gccnewlib 2>&1"
     105  logfile=log/${target}-gccnewlib
     106  specfile=${dst}/${target}-gcc-${gcc}-newlib-${newlib}.spec
     107  echo "rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1"
    88108  if [ ${testing} = no ] ; then
    89     rpm -ba --buildroot=/opt/tmp \
    90        ${dst}/${target}-gcc-${gcc}-newlib-${newlib}.spec >log/${target}-gccnewlib 2>&1
     109    rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1
    91110  fi
    92111  ${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc*
    93   ${ECHO} rm -rf /opt/tmp/opt
     112  ${ECHO} rm -rf ${buildroot}/opt
    94113
    95114  echo uninstalling binutils for ${target}
     
    99118done
    100119
     120staging_dir=/usr3/rtems_cds/test_cd/linux
     121
     122${ECHO} mkdir ${staging_dir}
     123${ECHO} mkdir ${staging_dir}/RPMS
     124${ECHO} mkdir ${staging_dir}/SRPMS
     125
    101126echo Moving RPMs to CD staging directory
    102127for file in `ls -1 ${dst}/../RPMS/i386/*.rpm 2>/dev/null`
    103128do
    104   ${ECHO} mv ${file} /usr3/rtems_cds/test_cd/RPMS
     129  ${ECHO} mv ${file} ${staging_dir}/RPMS
    105130done
    106131
     
    108133for file in `ls -1 ${dst}/../SRPMS/*.rpm 2>/dev/null`
    109134do
    110   ${ECHO} mv ${file} /usr3/rtems_cds/test_cd/SRPMS
     135  ${ECHO} mv ${file} ${staging_dir}/SRPMS
    111136done
    112137
     138# Now we are done
     139
     140stop=`date`
     141
     142echo
     143echo "Started:  " $start
     144echo "Finished: " $stop
    113145exit 0
  • scripts/gccnewlib.spec.in

    r7815d96 r1410dc36  
    9797
    9898%files
     99%dir /opt/rtems
     100%dir /opt/rtems/bin
     101%dir /opt/rtems/info
     102%dir /opt/rtems/lib
     103%dir /opt/rtems/lib/gcc-lib
     104%dir /opt/rtems/lib/gcc-lib/@target_alias@
     105%dir /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@
     106%dir /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include
     107%dir /opt/rtems/@target_alias@
     108%dir /opt/rtems/@target_alias@/include
     109%dir /opt/rtems/@target_alias@/sys-include
     110%dir /opt/rtems/@target_alias@/lib
     111%dir /opt/rtems/man
     112%dir /opt/rtems/man/man1
     113
    99114%doc /opt/rtems/info/chill.info*
    100115%doc /opt/rtems/info/cpp.info*
  • scripts/gdb.spec.in

    r7815d96 r1410dc36  
    6565
    6666%files
     67%dir /opt/rtems
     68%dir /opt/rtems/bin
     69%dir /opt/rtems/include
     70%dir /opt/rtems/info
     71%dir /opt/rtems/lib
     72%dir /opt/rtems/man
     73%dir /opt/rtems/man/man1
     74
    6775%doc /opt/rtems/info/gdb.info*
    6876%doc /opt/rtems/info/mmalloc.info*
Note: See TracChangeset for help on using the changeset viewer.