Changeset d24a72f in rtems


Ignore:
Timestamp:
Jan 11, 2008, 10:38:36 PM (12 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.8
Children:
f2bcb61
Parents:
713d79e
Message:

2008-01-11 Chris Johns <chisj@…>

  • expat-version: New.
  • build-exes.sh: Fix the size calculation.
  • build-rpms.sh: Add expax support. Clean the BUILD, RPM and SRPM directories. Delete the RPM database if cleaning.
  • msys-path.nsi: Add comments.
  • rtems-tools.nsi: Fix the uninstall targets check.
  • target-section-text, targets: Add bfin target.
  • upload.sh: Upload only the specific version of files.
  • version: Build 17.
Location:
contrib/mingw
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • contrib/mingw/ChangeLog

    r713d79e rd24a72f  
    1 2007-0823       Chris Johns <chisj@rtems.org>
     12008-01-11      Chris Johns <chisj@rtems.org>
     2
     3        * expat-version: New.
     4
     5        * build-exes.sh: Fix the size calculation.
     6
     7        * build-rpms.sh: Add expax support. Clean the BUILD, RPM and SRPM
     8        directories. Delete the RPM database if cleaning.
     9
     10        * msys-path.nsi: Add comments.
     11
     12        * rtems-tools.nsi: Fix the uninstall targets check.
     13
     14        * target-section-text, targets: Add bfin target.
     15
     16        * upload.sh: Upload only the specific version of files.
     17
     18        * version: Build 17.
     19       
     202007-08-23      Chris Johns <chisj@rtems.org>
    221
    322        * mingw-path.nsi: Change the forward slashes to back slashes for
  • contrib/mingw/build-exes.sh

    r713d79e rd24a72f  
    199199  check "changing directory: $1"
    200200
    201   local size_in_k=$(du -c -k $(cat files.txt) | grep total | sed -e "s/\t.*//g")
    202   check "getting total size"
     201  local total=
     202  local f
     203  local size
     204  for f in $(cat files.txt)
     205  do
     206   size=$(ls -l "$f" | awk '{ print $5 }')
     207   check "getting size"
     208   total=$(expr $total + $size)
     209  done
     210  local size_in_k=$(expr $total / 1024)
    203211
    204212  cd $here
  • contrib/mingw/build-rpms.sh

    r713d79e rd24a72f  
    3636
    3737target_list=$(cat $source/targets)
    38 host_list="cygwin freebsd5.2 freebsd6.0 freebsd6.1 mingw32"
    39 
    40 rtems_tool_list="autoconf automake $base_tool_list gdb"
     38# host_list="cygwin freebsd5.2 freebsd6.0 freebsd6.1 mingw32"
     39host_list="mingw32"
     40
    4141linux_tool_list="autoconf automake $base_tool_list"
    4242cygwin_tool_list="w32api libs autoconf automake $base_tool_list"
     
    4444mingw32_tool_list="w32api libs autoconf automake $base_tool_list"
    4545
     46# We may build a different set of packages for different
     47# hosts depending on what builds.
     48rtems_tool_list="autoconf automake $base_tool_list"
     49linux_rtems_tool_list=$rtems_tool_list
     50mingw32_rtems_tool_list="$rtems_tool_list gdb"
     51
    4652cygwin_cc_name="pc"
    4753freebsd_cc_name="pc"
     
    5359mingw32_cpu_list="i686"
    5460
    55 rpm_topdir=$(rpm --eval "%{_topdir}")
     61expat_list="mingw32"
     62. $source/expat-version
    5663
    5764prefix=/opt/rtems-$version
     
    121128done
    122129
     130rpm_topdir=$(rpm --eval "%{_topdir}")
     131
    123132for t in $targets;
    124133do
     
    136145rpmbuild=${run_prefix}rpmbuild
    137146rpm=${run_prefix}rpm
     147tar=${run_prefix}tar
    138148
    139149if [ $local_rpm_database = yes ]; then
     
    142152  rpm_database=
    143153fi
     154
     155#
     156# We always build tools for the build host. We need them to
     157# build the libraries for the target processor.
     158#
     159hosts="linux $hosts"
    144160
    145161echo " Source: $source"
     
    167183check "cannot change to the prefix directory: $prefix"
    168184
     185#
     186# Clean the files from the current prefix. Remove the various RPM
     187# and SRPM files.
     188#
    169189if [ $clean = yes ]; then
    170190 echo "Cleaning: $(pwd)"
    171191 $rm -rf *
     192 $rm -rf $rpm_topdir/BUILD/*
     193 for h in $hosts;
     194 do
     195  for d in RPMS SRPMS
     196  do
     197   rm -rf $rpm_topdir/$h/$d
     198   check "removing rpm/srpm directory: $rpm_topdir/$h/$d"
     199   mkdir -p $rpm_topdir/$h/$d
     200   check "creating directory: $rpm_topdir/$h/$d"
     201  done
     202 done
    172203fi
    173204
     
    185216  $mkdir -p var/lib
    186217  check "making the local RPM database directory: var/lib"
     218 fi
     219 if [ $clean = yes ]; then
     220  $rm -rf var/lib/rpm/*
     221  check "Deleting the current database."
    187222 fi
    188223 if [ $clean = yes -o ! -e var/lib/rpmPackages ]; then
     
    263298 fi
    264299}
    265 
    266 #
    267 # We always build tools for the build host. We need them to
    268 # build the libraries for the target processor.
    269 #
    270 hosts="linux $hosts"
    271300
    272301echo "Configuring target: all"
     
    284313check "building the rpm spec files failed"
    285314
     315#
     316# Build for each type of host in your host list. The build host
     317# will always be present.
     318#
    286319for h in $hosts;
    287320do
     
    342375   done
    343376  fi
     377
     378  #
     379  # See if the host is listed in the expat list. If it is build the
     380  # expat library.
     381  #
     382  for eh in $expat_list
     383  do
     384   if [ $th == $eh ]; then
     385    _curpath=$PATH
     386    PATH=$prefix/bin:$PATH
     387    expat_build=${rpm_prefix}${th}-expat-${expat_version}
     388    $rm -rf ${rpm_topdir}/BUILD/$expat_build
     389    check "cleaning expat directory: ${rpm_topdir}/BUILD/$expat_build"
     390    $mkdir ${rpm_topdir}/BUILD/$expat_build
     391    check "make directory: ${rpm_topdir}/BUILD/$expat_build"
     392    _curdir=$(pwd)
     393    $cd ${rpm_topdir}/BUILD/$expat_build
     394    check "change to directory: ${rpm_topdir}/BUILD/$expat_build"
     395    $tar x${expat_tar_comp}f $rpm_topdir/SOURCES/expat-${expat_version}.tar.${expat_tar_ext}
     396    check "extract tar file: $rpm_topdir/SOURCES/expat-${expat_version}.tar.${expat_tar_ext}"
     397    $mkdir build
     398    check "make directory: build"
     399    $cd build
     400    check "change directory: build"
     401    ${run_prefix}../expat-${expat_version}/configure --build=$build --host=$p-pc-$th --prefix=$prefix
     402    check "configure failed: ../expat-${expat_version}/configure --build=$build --host=$p-pc-$th --prefix=$prefix"
     403    $make all install
     404    check "expat make all install"
     405    $cd $_curdir
     406    check "change directory: $_curdir"
     407    PATH=$_curpath
     408   fi
     409  done
    344410 done
    345411
    346412 for t in $targets;
    347413 do
    348   for s in ${rtems_tool_list}
     414  rtl=${h}_rtems_tool_list
     415  echo "RTEMS Tool List: ${!rtl}"
     416  for s in ${!rtl}
    349417  do
    350418   case $s in
  • contrib/mingw/msys-path.nsi

    r713d79e rd24a72f  
    121121Function MSYSFstabUpdate
    122122 Call MSYSDetectSilent
     123 ; Check the result.
    123124 Pop $R0
    124125 Push $R0
     
    133134 FileOpen $9 "$R0\etc\fstab" a
    134135 ifErrors 0 +3
     136   ; Create the file.
    135137   MessageBox MB_OK "Cannot open $R0\etc\fstab. MSYS mount point not added."
    136138   Goto Close
  • contrib/mingw/rtems-tools.nsi

    r713d79e rd24a72f  
    296296 Uninstall_Targets:
    297297  StrCmp $1 "" Uninstall_Targets_Done
    298   IntCmp $2 0 0 +3
     298  IntCmp $2 0 0 0 +3
    299299  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 \
    300300             "You have tools installed. Are you sure you want to uninstall all RTEMS Tools ?" IDYES +2
  • contrib/mingw/target-section-text

    r713d79e rd24a72f  
    11auto_section_text="Autoconf and Automake"
    22arm_section_text="ARM Targets"
     3bfin_section_text="Blackfin Targets"
    34h8300_section_text="H8300 16bit Target"
    45i386_section_text="Intel i386 Targets"
  • contrib/mingw/targets

    r713d79e rd24a72f  
    1 arm h8300 i386 m68k mips powerpc sh sparc
     1arm bfin h8300 i386 m68k mips powerpc sh sparc
  • contrib/mingw/upload.sh

    r713d79e rd24a72f  
    7373fi
    7474
    75 exebase=${prefix}/${version}/packages/mingw32/exe
    76 srcbase=${prefix}/${version}/packages/mingw32/SRPMS
     75exebase=${prefix}/packages/mingw32/exe
     76srcbase=${prefix}/packages/mingw32/SRPMS
    7777
    7878mkdir -p ${ftpbase}/${version}/build-${tool_build}/source
    7979check "creating: ${ftpbase}/${version}/build-${tool_build}/source"
    8080
    81 exes=$(find $exebase -name \*-${tool_build}.exe)
     81exes=$(find $exebase -name rtems${version}-\*-${tool_build}.exe)
    8282for e in $exes
    8383do
     
    9090check "change directory: ${ftpbase}/${version}/build-${tool_build}/source"
    9191
    92 for s in ${srcbase}/*.rpm
     92for s in ${srcbase}/*-rtems${version}-*.rpm
    9393do
    9494  echo "rpm2cpio $s | cpio --extract --quiet"
  • contrib/mingw/version

    r713d79e rd24a72f  
    11version=4.8
    2 tool_build=15
     2tool_build=17
Note: See TracChangeset for help on using the changeset viewer.