Changeset 58271f6 in rtems


Ignore:
Timestamp:
05/21/00 15:23:02 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
1b69693
Parents:
f9c0574
Message:

Added code to determine RPM CPU type for the host OS. This is
needed to determine that on x86-linux, RPM builds "i386" RPMs
while on Sparc/Solaris?, it builds "sparc" RPMs. Since the
buildall script installs the binutils RPM to build the gccnewlib
RPM, it needs to know this.

Location:
scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/buildall.in

    rf9c0574 r58271f6  
    77CFG=./setup.cache
    88dst=@RPM_SPECSdir@
     9target=@target@
     10rpm_cpu=@RPM_CPU@
    911
    1012usage()
     
    136138    #    NOTE: This requires having binutils installed and we immediately
    137139    #          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
     140    base_binutils_rpm=${dst}/../RPMS/${rpm_cpu}/rtems-base-binutils-${binutils}-${binutils_rpm_release}.${rpm_cpu}.rpm
     141    binutils_rpm=${dst}/../RPMS/${rpm_cpu}/${target}-binutils-${binutils}-${binutils_rpm_release}.${rpm_cpu}.rpm
    140142    if [ ! -f ${binutils_rpm} ] ; then
    141143      echo There is no RPM for binutils for ${target}.
  • scripts/configure.in

    rf9c0574 r58271f6  
    3232AC_SUBST(RPM_SPECSdir)
    3333
     34AC_CANONICAL_HOST
     35
     36AC_MSG_CHECKING(for RPM CPU type)
     37changequote(,)dnl
     38case "${host}" in
     39  i[34567]86-*linux*)    RPM_CPU=i386 ;;
     40  i[34567]86-pc-cygwin*) RPM_CPU=i386 ;;
     41  sparc-sun-solaris*)    RPM_CPU=sparc ;;
     42  *)
     43    AC_MSG_ERROR(RPM CPU for ${target} is unknown)
     44    ;;
     45esac
     46changequote([,])dnl
     47AC_MSG_RESULT($RPM_CPU)
     48
    3449GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
    3550AC_SUBST(GCCNEWLIBVERS)
     
    4156AC_SUBST(RTEMS_VERSION)
    4257AC_SUBST(BSPVERS)
     58AC_SUBST(RPM_CPU)
    4359
    4460AC_OUTPUT(
Note: See TracChangeset for help on using the changeset viewer.