Changeset 5ceb567e in rtems


Ignore:
Timestamp:
08/27/06 12:44:08 (17 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e25ff2c
Parents:
4f5d2dfc
Message:

Build the autotools for each RTEMS target.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/mingw/build-rpms.sh

    r4f5d2dfc r5ceb567e  
    1414#
    1515
     16source=$(dirname $0)
     17
    1618terminate()
    1719{
     
    3335base_tool_list="binutils gcc"
    3436
    35 target_list="arm avr h8300 i386 m68k mips powerpc sh sparc tic4x"
     37target_list=$(cat $source/targets)
    3638host_list="cygwin freebsd5.2 freebsd6.0 freebsd6.1 mingw32"
    3739
    38 rtems_tool_list="$base_tool_list"
     40rtems_tool_list="autoconf automake $base_tool_list"
    3941linux_tool_list="autoconf automake $base_tool_list"
    4042cygwin_tool_list="w32api libs autoconf automake $base_tool_list"
     
    6365local_rpm_database=yes
    6466clean=yes
    65 source=$(pwd)
    6667
    6768while [ $# -gt 0 ];
     
    347348  for s in ${rtems_tool_list}
    348349  do
    349    rpmbuild_cmd="-ba $prefix/rtems$version/$t/$rpm_prefix$t-rtems$version-$s.spec --target=$pth"
     350   case $s in
     351    autoconf|automake)
     352     # Hack around the prefix in the spec files for autotools.
     353     ba="-ba $prefix/autotools/$rpm_prefix$s-rtems.spec"
     354     ;;
     355    *)
     356     ba="-ba $prefix/rtems$version/$t/$rpm_prefix$t-rtems$version-$s.spec"
     357   esac
     358
     359   rpmbuild_cmd="$ba --target=$pth"
    350360
    351361   if [ $canadian_cross = yes ]; then
    352362    ccl=${h}_cc_name
    353363    echo "rpmbuild --define '_build $processor-redhat-linux' " \
    354          "--define '_host $pth' $rpm_database $rpmbuild_cmd "
     364         "--define '_host $pth' " \
     365         "--define '_defaultdocdir $prefix/share/doc' " \
     366         "$rpm_database $rpmbuild_cmd "
    355367    $rpmbuild --define "_build $processor-redhat-linux" \
    356368              --define "_host $pth" \
     369              --define "_defaultdocdir $prefix/share/doc" \
    357370              --define "__cc $p-${!ccl}-$h-gcc" \
    358371              $rpm_database $rpmbuild_cmd
    359372    check "building host cross target: $rpm_prefix$t-rtems$version-$s"
    360373   else
    361     echo "rpmbuild $rpm_database $rpmbuild_cmd"
    362     $rpmbuild $rpm_database $rpmbuild_cmd
     374    echo "rpmbuild --define '_defaultdocdir $prefix/share/doc' "\
     375         "$rpm_database $rpmbuild_cmd"
     376    $rpmbuild --define "_defaultdocdir $prefix/share/doc" \
     377              $rpm_database $rpmbuild_cmd
    363378    check "building host cross target: $rpm_prefix$t-rtems$version-$s"
    364379   fi
Note: See TracChangeset for help on using the changeset viewer.