Changeset df49c60 in rtems for scripts/buildall.in


Ignore:
Timestamp:
Jun 12, 2000, 3:00:15 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
edeed26
Parents:
0ab65474
Message:

Merged from 4.5.0-beta3a

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/buildall.in

    r0ab65474 rdf49c60  
    77CFG=./setup.cache
    88dst=@RPM_SPECSdir@
     9target=@target@
     10rpm_cpu=@RPM_CPU@
    911
    1012usage()
     
    1214  echo "$0 [options] <target_alias>"
    1315  echo "  options:"
     16  echo "    -b                  -- build binutils"
     17  echo "    -g                  -- build gcc/newlib"
     18  echo "    -d                  -- build gdb"
     19  echo "    -t                  -- enable test/debug mode"
    1420  echo "    -cfg <setup.cache>"
    1521  echo "    -o <rpm-spec-dir>"
     
    1723}
    1824
     25testing=no
     26do_binutils=no
     27do_gccnewlib=no
     28do_gdb=no
     29
    1930while test $# -ge 1; do
    2031  case $1 in
     32    -b) do_binutils=yes  ; shift;;
     33    -g) do_gccnewlib=yes ; shift;;
     34    -d) do_gdb=yes       ; shift;;
     35    -t) do_test=yes      ; shift;;
    2136    -cfg)
    2237      test $# -ge 2 || usage
     
    4156  esac
    4257done
     58
     59if test ${do_binutils} = no -a ${do_gccnewlib} = no -a ${do_gdb} = no ; then
     60  echo "You must request building binutils, gcc/newlib, or gdb."
     61  usage
     62fi
     63
    4364
    4465# This is the full list .. hppa1.1 does not build now.
     
    6283buildroot=/tmp
    6384
    64 testing=no
    65 do_binutils=yes
    66 do_gccnewlib=yes
    67 do_gdb=yes
    68 
    6985#
    7086#  Now get started
     
    7894fi
    7995
    80 installed_count=`rpm -qa | grep rtems | wc -l`
     96installed_count=`rpm -q -g rtems | wc -l`
    8197if [ ${installed_count} -ne 0 ] ; then
    8298  echo This script should be run with NO rtems RPMs installed.
     
    136152    #    NOTE: This requires having binutils installed and we immediately
    137153    #          remove it once finished.
    138     base_binutils_rpm=${dst}/../RPMS/i386/rtems-base-binutils-${binutils}-${binutils_rpm_release}.i386.rpm
    139     binutils_rpm=${dst}/../RPMS/i386/${target}-binutils-${binutils}-${binutils_rpm_release}.i386.rpm
     154    base_binutils_rpm=${dst}/../RPMS/${rpm_cpu}/rtems-base-binutils-${binutils}-${binutils_rpm_release}.${rpm_cpu}.rpm
     155    binutils_rpm=${dst}/../RPMS/${rpm_cpu}/${target}-binutils-${binutils}-${binutils_rpm_release}.${rpm_cpu}.rpm
    140156    if [ ! -f ${binutils_rpm} ] ; then
    141157      echo There is no RPM for binutils for ${target}.
Note: See TracChangeset for help on using the changeset viewer.