Permalink
Browse files

Merge "Delete old host toolchain"

  • Loading branch information...
2 parents ed9602a + 7f4ce66 commit f787b1d0a777b32770ac1f6bcf3e83d5e31f8b64 Jean-Baptiste Queru committed with Android (Google) Code Review Apr 23, 2012
Showing with 0 additions and 22,270 deletions.
  1. +0 −32 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/PACKAGE_SOURCES
  2. +0 −7 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/TOOLCHAIN_SOURCES
  3. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-addr2line
  4. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-ar
  5. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-as
  6. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-c++
  7. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-c++filt
  8. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-cpp
  9. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-g++
  10. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gcc
  11. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gcc-4.4.3
  12. +0 −558 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gccbug
  13. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gcov
  14. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gprof
  15. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-ld
  16. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-nm
  17. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-objcopy
  18. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-objdump
  19. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-ranlib
  20. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-readelf
  21. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-size
  22. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-strings
  23. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-strip
  24. +0 −1,385 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/build-hardy-toolchain.sh
  25. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/ar
  26. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/as
  27. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/c++
  28. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/g++
  29. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/gcc
  30. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/ld
  31. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/nm
  32. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/objcopy
  33. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/objdump
  34. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/ranlib
  35. BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/strip
  36. +0 −68 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/algorithm
  37. +0 −60 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/array
  38. +0 −292 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/auto_ptr.h
  39. +0 −56 ...-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/backward_warning.h
  40. +0 −168 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/binders.h
  41. +0 −167 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/hash_fun.h
  42. +0 −593 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/hash_map
  43. +0 −561 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/hash_set
  44. +0 −1,147 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/hashtable.h
  45. +0 −176 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/strstream
  46. +0 −805 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/algorithmfwd.h
  47. +0 −181 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/allocator.h
  48. +0 −464 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/atomic_0.h
  49. +0 −454 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/atomic_2.h
  50. +0 −174 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/atomicfwd_c.h
  51. +0 −109 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/atomicfwd_cxx.h
  52. +0 −474 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/basic_ios.h
  53. +0 −187 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/basic_ios.tcc
  54. +0 −2,692 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/basic_string.h
  55. +0 −1,144 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/basic_string.tcc
  56. +0 −787 ...x-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/boost_concept_check.h
  57. +0 −575 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/char_traits.h
  58. +0 −55 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/cmath.tcc
  59. +0 −497 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/codecvt.h
  60. +0 −80 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/concept_check.h
  61. +0 −419 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/cpp_type_traits.h
  62. +0 −863 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/deque.tcc
  63. +0 −1,306 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/forward_list.h
  64. +0 −478 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/forward_list.tcc
  65. +0 −926 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/fstream.tcc
  66. +0 −93 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/functexcept.h
  67. +0 −68 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/functional_hash.h
  68. +0 −182 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/gslice.h
  69. +0 −216 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/gslice_array.h
  70. +0 −58 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/hashtable.h
  71. +0 −210 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/indirect_array.h
  72. +0 −982 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/ios_base.h
  73. +0 −1,022 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/istream.tcc
  74. +0 −416 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/list.tcc
  75. +0 −812 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/locale_classes.h
  76. +0 −271 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/locale_classes.tcc
Sorry, we could not display the entire diff because too many files (2,407) changed.
View
32 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/PACKAGE_SOURCES
@@ -1,32 +0,0 @@
-libasound2_1.0.15-3ubuntu4_i386.deb 8bfcb05b78aa5df590c0866f0f9017d8cd5662c0
-libasound2-dev_1.0.15-3ubuntu4_i386.deb 271860557a5afe895de811129866c74cfbeed3d9
-libaudiofile-dev_0.2.6-7ubuntu1_i386.deb 094fb3d380230dcd5769db26c35822f109bbc6ba
-libc6_2.7-10ubuntu3_i386.deb bb0d394af36e659580ec2adc02bddca822ad85b5
-libc6-dev_2.7-10ubuntu3_i386.deb ced31eec0c5380219c63da3db963b8af7a39a8fb
-libdrm2_2.3.0-4ubuntu1_i386.deb abfb124b85a9d833971fd4a2e6b66518ff54f045
-libesd0-dev_0.2.38-0ubuntu9_i386.deb 228ae06265f25d814557aa2997151d979f8441d1
-libesd-alsa0_0.2.38-0ubuntu9_i386.deb d38d70d1f2dc07c94729cb3ee8a20e7ee38bb2f8
-libgl1-mesa-dev_7.0.3~rc2-1ubuntu3_all.deb c465a7cd254021181c80dadbc594b252ab6c9713
-libgl1-mesa-glx_7.0.3~rc2-1ubuntu3_i386.deb a3142c529dde677f63dba5561270607fa248a91a
-libncurses5_5.6+20071124-1ubuntu2_i386.deb db1135e1458de71287e00c67ee495c3dd5bfdb48
-libncurses5-dev_5.6+20071124-1ubuntu2_i386.deb 2f1f263b188d72cab92df6eca52978112f77f7b4
-libpulse0_0.9.10-1ubuntu1_i386.deb f2da0daf9b95b9834a27788c26046944aa04ded1
-libpulse-dev_0.9.10-1ubuntu1_i386.deb f87a27d97f89c49f9b2bcb0fc072f0b939645605
-libx11-6_1.1.3-1ubuntu2_i386.deb 0412e06a5d6925a10e88aed5c676b7f18a138454
-libx11-dev_1.1.3-1ubuntu2_i386.deb e410c387a30bd435f0e88a46580aa43631e35886
-libxau6_1.0.3-2_i386.deb da3394e2e3295413b39995b23fc8a504fb176063
-libxcb1_1.1-1ubuntu1_i386.deb 21de84ea598385d9e9348cc70ad1db082790f810
-libxcb-xlib0_1.1-1ubuntu1_i386.deb e7e9a30712fefc58be1e7ff1b08598b64100cc4f
-libxdamage1_1.1.1-3_i386.deb f8cb0da949e5fdd949d95f29daa5a3611ff6555f
-libxdmcp6_1.0.2-2_i386.deb f132ce54b4958b257d440b65fbac3808944b672a
-libxext6_1.0.3-2build1_i386.deb 7759b3fd18c2a43603bb82ef0c4b775ee3266838
-libxfixes3_4.0.3-2_i386.deb 3231ff12de4270df38e54f569f40d9310084b85b
-libxxf86vm1_1.0.1-2_i386.deb 0c9b4cc97c4c65fe2a7f6fc85b27494782065e74
-linux-libc-dev_2.6.24-16.30_i386.deb 25356a21570c028a1775ddbf540e938946d244c2
-mesa-common-dev_7.0.3~rc2-1ubuntu3_all.deb c54c6c9e8d4bdac41ff244021c4c94ca41f22da5
-x11proto-core-dev_7.0.11-1_all.deb 3195aede2bf2ae577e6ca837bd25bcecc67ec0dc
-x11proto-input-dev_1.4.2-1_all.deb 870570bdd798b61a95ae5142de8939b11df24321
-x11proto-kb-dev_1.0.3-2ubuntu1_all.deb d54040ee73cc4f76ad0a4d988bfaa0b1070e8285
-x11proto-xext-dev_7.0.2-5ubuntu1_all.deb 8e24443f32c1aa1ac93fd6ef1ba2b346de1aa520
-zlib1g_1.2.3.3.dfsg-7ubuntu1_i386.deb 94a731229f8fc9928a1416013995e0f061845abf
-zlib1g-dev_1.2.3.3.dfsg-7ubuntu1_i386.deb d4e838a70be03fca63202bffc6c68766dcbfdc71
View
7 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/TOOLCHAIN_SOURCES
@@ -1,7 +0,0 @@
-toolchain/binutils.git: e4df3e0a5bb640ccfa2f30ee67fe9b3146b152d6 Sync internal and external version. -Fix problem with --save-temps in gas.
-toolchain/build.git: 7ee395d10100fc9ed2c03c49b949033600082a4f Fix host-libbfd installation problem caused by undefined $(INSTALL)
-toolchain/gcc.git: fe2afdf3f3701489c05d2a7509752d6f0c7616f7 Sync internal and external version:
-toolchain/gdb.git: 5f9d38fd85e779aa1fd17eb38d24f8ec994d9147 Sync internal and external versions. This fixed a problem that gdb inserts wrong kind of break points at ARM/THUMB boundaries. The patch is a backport of 3 upstream patches.
-toolchain/gmp.git: 9fb242a79dd122d7fbf867daf5620dba6927bd2e check in gmp sources for prebuilt toolchains in Eclair.
-toolchain/gold.git: 8d401cf711539af5a2f78d12447341d774892618 Empty initial commit.
-toolchain/mpfr.git: da6dfde986af1b56f0f41e9f5de61d093fa8af90 check in mpfr sources for prebuilt toolchains in Eclair.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-addr2line
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-ar
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-as
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-c++
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-c++filt
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-cpp
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-g++
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gcc
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gcc-4.4.3
Binary file not shown.
View
558 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gccbug
@@ -1,558 +0,0 @@
-#!/bin/sh
-# Submit a problem report to a GNATS site.
-# Copyright (C) 1993, 2000, 2001, 2002, 2003, 2007 Free Software Foundation, Inc.
-# Contributed by Brendan Kehoe (brendan@cygnus.com), based on a
-# version written by Heinz G. Seidl (hgs@cygnus.com).
-#
-# This file is part of GNU GNATS.
-#
-# GNU GNATS is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU GNATS is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU GNATS; see the file COPYING3. If not see
-# <http://www.gnu.org/licenses/>.
-
-# The version of this send-pr.
-VERSION=3.113
-
-# The submitter-id for your site.
-SUBMITTER=net
-
-# The default mail address for PR submissions.
-GNATS_ADDR=gcc-gnats@gcc.gnu.org
-
-# The default release for this host.
-# We have to guess at what program_transform_name might have done.
-# "sed 1q" because neither "head -1" nor "head -n 1" is universal, argh.
-
-DEFAULT_GCC="`echo $0 | sed -e 's/bug//'`"
-DEFAULT_RELEASE="`$DEFAULT_GCC --version | sed 1q`"
-
-# The default organization.
-DEFAULT_ORGANIZATION=
-
-# What mailer to use. This must come after the config file, since it is
-# host-dependent.
-# Copied from cvsbug
-if [ -f /usr/sbin/sendmail ]; then
- MAIL_AGENT="/usr/sbin/sendmail -oi -t"
-else
- MAIL_AGENT="/usr/lib/sendmail -oi -t"
-fi
-MAILER=`echo $MAIL_AGENT | sed -e 's, .*,,'`
-if [ ! -f "$MAILER" ] ; then
- echo "$COMMAND: Cannot file mail program \"$MAILER\"."
- echo "$COMMAND: Please fix the MAIL_AGENT entry in the $COMMAND file."
- exit 1
-fi
-
-
-# How to read the passwd database.
-PASSWD="cat /etc/passwd"
-
-ECHON=bsd
-
-if [ $ECHON = bsd ] ; then
- ECHON1="echo -n"
- ECHON2=
-elif [ $ECHON = sysv ] ; then
- ECHON1=echo
- ECHON2='\c'
-else
- ECHON1=echo
- ECHON2=
-fi
-
-#
-
-if [ -z "$TMPDIR" ]; then
- TMPDIR=/tmp
-else
- if [ "`echo $TMPDIR | grep '/$'`" != "" ]; then
- TMPDIR="`echo $TMPDIR | sed -e 's,/$,,'`"
- fi
-fi
-
-if [ yes = yes ]; then
- TEMP0=`mktemp $TMPDIR/poXXXXXX` || exit 1
- TEMP=`mktemp $TMPDIR/pXXXXXX` || exit 1
- BAD=`mktemp $TMPDIR/pbadXXXXXX` || exit 1
- REF=`mktemp $TMPDIR/pfXXXXXX` || exit 1
- REMOVE_TEMP="rm -f $TEMP0 $TEMP $BAD $REF"
-else
- TEMPD=$TMPDIR/pd$$
- TEMP0=$TEMPD/po$$
- TEMP=$TEMPD/p$$
- BAD=$TEMPD/pbad$$
- REF=$TEMPD/pf$$
- mkdir $TEMPD || exit 1
- REMOVE_TEMP="rm -rf $TEMPD"
-fi
-
-# find a user name
-if [ "$LOGNAME" = "" ]; then
- if [ "$USER" != "" ]; then
- LOGNAME="$USER"
- else
- LOGNAME="UNKNOWN"
- fi
-fi
-
-FROM="$LOGNAME"
-REPLY_TO="${REPLY_TO:-${REPLYTO:-$LOGNAME}}"
-
-# Find out the name of the originator of this PR.
-if [ -n "$NAME" ]; then
- ORIGINATOR="$NAME"
-elif [ -f $HOME/.fullname ]; then
- ORIGINATOR="`sed -e '1q' $HOME/.fullname`"
-else
- # Must use temp file due to incompatibilities in quoting behavior
- # and to protect shell metacharacters in the expansion of $LOGNAME
- $PASSWD | grep "^$LOGNAME:" | awk -F: '{print $5}' | sed -e 's/,.*//' > $TEMP0
- ORIGINATOR="`cat $TEMP0`"
- rm -f $TEMP0
-fi
-
-if [ -n "$ORGANIZATION" ]; then
- if [ -f "$ORGANIZATION" ]; then
- ORGANIZATION="`cat $ORGANIZATION`"
- fi
-else
- if [ -n "$DEFAULT_ORGANIZATION" ]; then
- ORGANIZATION="$DEFAULT_ORGANIZATION"
- elif [ -f $HOME/.organization ]; then
- ORGANIZATION="`cat $HOME/.organization`"
- fi
-fi
-
-# If they don't have a preferred editor set, then use
-if [ -z "$VISUAL" ]; then
- if [ -z "$EDITOR" ]; then
- EDIT=vi
- else
- EDIT="$EDITOR"
- fi
-else
- EDIT="$VISUAL"
-fi
-
-# Find out some information.
-SYSTEM=`( [ -f /bin/uname ] && /bin/uname -a ) || \
- ( [ -f /usr/bin/uname ] && /usr/bin/uname -a ) || echo ""`
-ARCH=`[ -f /bin/arch ] && /bin/arch`
-MACHINE=`[ -f /bin/machine ] && /bin/machine`
-
-COMMAND=`echo $0 | sed -e 's,.*/,,'`
-USAGE="Usage: $COMMAND [-PVL] [-t address] [-f filename] [-s severity]
- [-c address] [--request-id] [--version]"
-REMOVE=
-BATCH=
-CC=
-SEVERITY_C=
-
-while [ $# -gt 0 ]; do
- case "$1" in
- -r) ;; # Ignore for backward compat.
- -t | --to) if [ $# -eq 1 ]; then echo "$USAGE"; $REMOVE_TEMP; exit 1; fi
- shift ; GNATS_ADDR="$1"
- EXPLICIT_GNATS_ADDR=true
- ;;
- -f | --file) if [ $# -eq 1 ]; then echo "$USAGE"; $REMOVE_TEMP; exit 1; fi
- shift ; IN_FILE="$1"
- if [ "$IN_FILE" != "-" -a ! -r "$IN_FILE" ]; then
- echo "$COMMAND: cannot read $IN_FILE"
- $REMOVE_TEMP
- exit 1
- fi
- ;;
- -b | --batch) BATCH=true ;;
- -c | --cc) if [ $# -eq 1 ]; then echo "$USAGE"; $REMOVE_TEMP; exit 1; fi
- shift ; CC="$1"
- ;;
- -s | --severity) if [ $# -eq 1 ]; then echo "$USAGE"; $REMOVE_TEMP; exit 1; fi
- shift ; SEVERITY_C="$1"
- ;;
- -p | -P | --print) PRINT=true ;;
- -L | --list) FORMAT=norm ;;
- -l | -CL | --lisp) FORMAT=lisp ;;
- --request-id) REQUEST_ID=true ;;
- -h | --help) echo "$USAGE"; $REMOVE_TEMP; exit 0 ;;
- -V | --version) cat <<EOF
-gccbug (GCC) $DEFAULT_RELEASE
-Copyright (C) 2002 Free Software Foundation, Inc.
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-EOF
- $REMOVE_TEMP; exit 0 ;;
- -*) echo "$USAGE" ; $REMOVE_TEMP; exit 1 ;;
- *) echo "$USAGE" ; $REMOVE_TEMP; exit 1
- esac
- shift
-done
-
-# spam does not need to be listed here
-CATEGORIES="ada bootstrap c++ c debug driver fortran inline-asm java libgcj libobjc libstdc++ middle-end objc other pch preprocessor rtl-optimization target tree-optimization web"
-
-case "$FORMAT" in
- lisp) echo "$CATEGORIES" | \
- awk 'BEGIN {printf "( "} {printf "(\"%s\") ",$0} END {printf ")\n"}'
- $REMOVE_TEMP
- exit 0
- ;;
- norm) l=`echo "$CATEGORIES" | \
- awk 'BEGIN {max = 0; } { if (length($0) > max) { max = length($0); } }
- END {print max + 1;}'`
- c=`expr 70 / $l`
- if [ $c -eq 0 ]; then c=1; fi
- echo "$CATEGORIES" | \
- awk 'BEGIN {print "Known categories:"; i = 0 }
- { printf ("%-'$l'.'$l's", $0); if ((++i % '$c') == 0) { print "" } }
- END { print ""; }'
- $REMOVE_TEMP
- exit 0
- ;;
-esac
-
-ORIGINATOR_C='<name of the PR author (one line)>'
-ORGANIZATION_C='<organization of PR author (multiple lines)>'
-SYNOPSIS_C='<synopsis of the problem (one line)>'
-if [ -z "$SEVERITY_C" ]; then
- SEVERITY_C='<[ non-critical | serious | critical ] (one line)>'
-fi
-PRIORITY_C='<[ low | medium ] (one line)>'
-CATEGORY_C='<choose from the top of this file (one line)>'
-RELEASE_C='<release number or tag (one line)>'
-ENVIRONMENT_C='<machine, os, target, libraries (multiple lines)>'
-DESCRIPTION_C='<precise description of the problem (multiple lines)>'
-HOW_TO_REPEAT_C='<When reporting a compiler error, preprocessor output must be included>'
-FIX_C='<how to correct or work around the problem, if known (multiple lines)>'
-
-# Catch some signals. ($xs kludge needed by Sun /bin/sh)
-xs=0
-trap '$REMOVE_TEMP; exit $xs' 0
-trap 'echo "$COMMAND: Aborting ..."; $REMOVE_TEMP; xs=1; exit' 1 3 13 15
-
-# If they told us to use a specific file, then do so.
-if [ -n "$IN_FILE" ]; then
- if [ "$IN_FILE" = "-" ]; then
- # The PR is coming from the standard input.
- if [ -n "$EXPLICIT_GNATS_ADDR" ]; then
- sed -e "s;^[Tt][Oo]:.*;To: $GNATS_ADDR;" > $TEMP
- else
- cat > $TEMP
- fi
- else
- # Use the file they named.
- if [ -n "$EXPLICIT_GNATS_ADDR" ]; then
- sed -e "s;^[Tt][Oo]:.*;To: $GNATS_ADDR;" $IN_FILE > $TEMP
- else
- cat $IN_FILE > $TEMP
- fi
- fi
-else
-
- if [ -n "$PR_FORM" -a -z "$PRINT_INTERN" ]; then
- # If their PR_FORM points to a bogus entry, then bail.
- if [ ! -f "$PR_FORM" -o ! -r "$PR_FORM" -o ! -s "$PR_FORM" ]; then
- echo "$COMMAND: can't seem to read your template file (\`$PR_FORM'), ignoring PR_FORM"
- sleep 1
- PRINT_INTERN=bad_prform
- fi
- fi
-
- if [ -n "$PR_FORM" -a -z "$PRINT_INTERN" ]; then
- cp $PR_FORM $TEMP ||
- ( echo "$COMMAND: could not copy $PR_FORM" ; xs=1; exit )
- else
- for file in $TEMP $REF ; do
- cat > $file << '__EOF__'
-SEND-PR: -*- send-pr -*-
-SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as
-SEND-PR: will all comments (text enclosed in `<' and `>').
-SEND-PR:
-SEND-PR: Please consult the GCC manual if you are not sure how to
-SEND-PR: fill out a problem report.
-SEND-PR: Note that the Synopsis field is mandatory. The Subject (for
-SEND-PR: the mail) will be made the same as Synopsis unless explicitly
-SEND-PR: changed.
-SEND-PR:
-SEND-PR: Choose from the following categories:
-SEND-PR:
-__EOF__
-
- # Format the categories so they fit onto lines.
- l=`echo "$CATEGORIES" | \
- awk 'BEGIN {max = 0; } { if (length($0) > max) { max = length($0); } }
- END {print max + 1;}'`
- c=`expr 61 / $l`
- if [ $c -eq 0 ]; then c=1; fi
- echo "$CATEGORIES" | \
- awk 'BEGIN {printf "SEND-PR: "; i = 0 }
- { printf ("%-'$l'.'$l's", $0);
- if ((++i % '$c') == 0) { printf "\nSEND-PR: " } }
- END { printf "\nSEND-PR:\n"; }' >> $file
-
- cat >> $file << __EOF__
-To: $GNATS_ADDR
-Subject:
-From: $FROM
-Reply-To: $REPLYTO
-Cc: $CC
-X-send-pr-version: $VERSION
-X-GNATS-Notify:
-
-
->Submitter-Id: $SUBMITTER
->Originator: $ORIGINATOR
->Organization: ${ORGANIZATION-$ORGANIZATION_C}
->Confidential: no
-SEND-PR: Leave "Confidential" as "no"; all GCC PRs are public.
->Synopsis: $SYNOPSIS_C
->Severity: $SEVERITY_C
-SEND-PR: critical GCC is completely not operational; no work-around known.
-SEND-PR: serious GCC is not working properly; a work-around is possible.
-SEND-PR: non-critical Report indicates minor problem.
->Priority: $PRIORITY_C
-SEND-PR: medium The problem should be solved in the next release.
-SEND-PR: low The problem should be solve in a future release.
->Category: $CATEGORY_C
->Class: <[ doc-bug | accepts-illegal | rejects-legal | wrong-code | ice-on-legal-code| ice-on-illegal-code | pessimizes-code | sw-bug | change-request | support ] (one line)>
-SEND-PR: doc-bug The documentation is incorrect.
-SEND-PR: accepts-illegal GCC fails to reject erroneous code.
-SEND-PR: rejects-legal GCC gives an error message for correct code.
-SEND-PR: wrong-code The machine code generated by gcc is incorrect.
-SEND-PR: ice-on-legal-code GCC gives an Internal Compiler Error (ICE)
-SEND-PR: for correct code
-SEND-PR: ice-on-illegal-code GCC gives an ICE instead of reporting an error
-SEND-PR: pessimizes-code GCC misses an important optimization opportunity
-SEND-PR: sw-bug Software bug of some other class than above
-SEND-PR: change-request A feature in GCC is missing.
-SEND-PR: support I need help with gcc.
->Release: ${DEFAULT_RELEASE-$RELEASE_C}
->Environment:
-`[ -n "$SYSTEM" ] && echo System: $SYSTEM`
-`[ -n "$ARCH" ] && echo Architecture: $ARCH`
-`[ -n "$MACHINE" ] && echo Machine: $MACHINE`
- $ENVIRONMENT_C
-host: x86_64-unknown-linux-gnu
-build: x86_64-unknown-linux-gnu
-target: i686-pc-linux-gnu
-__EOF__
- cat >> $file << \__EOF__
-configured with: /tmp/gcc32/toolchain-src/gcc/gcc-4.4.3/configure --prefix=/tmp/gcc32/1/i686-linux-glibc2.7-4.4.3 --with-sysroot=/tmp/gcc32/1/i686-linux-glibc2.7-4.4.3/sysroot --disable-nls --with-gmp=/tmp/gcc32/1/i686-linux-glibc2.7-4.4.3 --with-mpfr=/tmp/gcc32/1/i686-linux-glibc2.7-4.4.3 --target=i686-linux --disable-plugin --disable-docs --enable-languages=c,c++
-__EOF__
- cat >> $file << __EOF__
->Description:
- $DESCRIPTION_C
->How-To-Repeat:
- $HOW_TO_REPEAT_C
->Fix:
- $FIX_C
-__EOF__
- done
- fi
-
- if [ "$PRINT" = true -o "$PRINT_INTERN" = true ]; then
- cat $TEMP
- xs=0; exit
- fi
-
- chmod u+w $TEMP
- if [ -z "$REQUEST_ID" ]; then
- eval $EDIT $TEMP
- else
- ed -s $TEMP << '__EOF__'
-/^Subject/s/^Subject:.*/Subject: request for a customer id/
-/^>Category/s/^>Category:.*/>Category: send-pr/
-w
-q
-__EOF__
- fi
-
- if cmp -s $REF $TEMP ; then
- echo "$COMMAND: problem report not filled out, therefore not sent"
- xs=1; exit
- fi
-fi
-
-#
-# Check the enumeration fields
-
-# This is a "sed-subroutine" with one keyword parameter
-# (with workaround for Sun sed bug)
-#
-SED_CMD='
-/$PATTERN/{
-s|||
-s|<.*>||
-s|^[ ]*||
-s|[ ]*$||
-p
-q
-}'
-
-
-while [ -z "$REQUEST_ID" ]; do
- CNT=0
-
- # 1) Confidential
- #
- PATTERN=">Confidential:"
- CONFIDENTIAL=`eval sed -n -e "\"$SED_CMD\"" $TEMP`
- case "$CONFIDENTIAL" in
- no) CNT=`expr $CNT + 1` ;;
- *) echo "$COMMAND: \`$CONFIDENTIAL' is not a valid value for \`Confidential'." ;;
- esac
- #
- # 2) Severity
- #
- PATTERN=">Severity:"
- SEVERITY=`eval sed -n -e "\"$SED_CMD\"" $TEMP`
- case "$SEVERITY" in
- ""|non-critical|serious|critical) CNT=`expr $CNT + 1` ;;
- *) echo "$COMMAND: \`$SEVERITY' is not a valid value for \`Severity'."
- esac
- #
- # 3) Priority
- #
- PATTERN=">Priority:"
- PRIORITY=`eval sed -n -e "\"$SED_CMD\"" $TEMP`
- case "$PRIORITY" in
- ""|low|medium) CNT=`expr $CNT + 1` ;;
- high) echo "$COMMAND: \`Priority: high' is reserved for GCC maintainers." ;;
- *) echo "$COMMAND: \`$PRIORITY' is not a valid value for \`Priority'."
- esac
- #
- # 4) Category
- #
- PATTERN=">Category:"
- CATEGORY=`eval sed -n -e "\"$SED_CMD\"" $TEMP`
- FOUND=
- for C in $CATEGORIES
- do
- if [ "$C" = "$CATEGORY" ]; then FOUND=true ; break ; fi
- done
- if [ -n "$FOUND" ]; then
- CNT=`expr $CNT + 1`
- else
- if [ -z "$CATEGORY" ]; then
- echo "$COMMAND: you must include a Category: field in your report."
- else
- echo "$COMMAND: \`$CATEGORY' is not a known category."
- fi
- fi
- #
- # 5) Class
- #
- PATTERN=">Class:"
- CLASS=`eval sed -n -e "\"$SED_CMD\"" $TEMP`
- case "$CLASS" in
- ""|doc-bug|accepts-illegal|rejects-legal|wrong-code|ice-on-legal-code|ice-on-illegal-code|pessimizes-code|sw-bug|change-request|support) CNT=`expr $CNT + 1` ;;
- *) echo "$COMMAND: \`$CLASS' is not a valid value for \`Class'."
- esac
- #
- # 6) Check that synopsis is not empty
- #
- if grep "^>Synopsis:[ ]*${SYNOPSIS_C}\$" $TEMP > /dev/null
- then
- echo "$COMMAND: Synopsis must not be empty."
- else
- CNT=`expr $CNT + 1`
- fi
-
- [ $CNT -lt 6 -a -z "$BATCH" ] &&
- echo "Errors were found with the problem report."
-
- while true; do
- if [ -z "$BATCH" ]; then
- $ECHON1 "a)bort, e)dit or s)end? $ECHON2"
- read input
- else
- if [ $CNT -eq 6 ]; then
- input=s
- else
- input=a
- fi
- fi
- case "$input" in
- a*)
- if [ -z "$BATCH" ]; then
- echo "$COMMAND: the problem report remains in $BAD and is not sent."
- REMOVE_TEMP="rm -f $TEMP0 $TEMP $REF"
- mv $TEMP $BAD
- else
- echo "$COMMAND: the problem report is not sent."
- fi
- xs=1; exit
- ;;
- e*)
- eval $EDIT $TEMP
- continue 2
- ;;
- s*)
- break 2
- ;;
- esac
- done
-done
-
-#
-# Make sure the mail has got a Subject. If not, use the same as
-# in Synopsis.
-#
-
-if grep '^Subject:[ ]*$' $TEMP > /dev/null
-then
- SYNOPSIS=`grep '^>Synopsis:' $TEMP | sed -e 's/^>Synopsis:[ ]*//'`
- ed -s $TEMP << __EOF__
-/^Subject:/s/:.*\$/: $SYNOPSIS/
-w
-q
-__EOF__
-fi
-
-#
-# Remove comments and send the problem report
-# (we have to use patterns, where the comment contains regex chars)
-#
-# /^>Originator:/s;$ORIGINATOR;;
-sed -e "
-/^SEND-PR:/d
-/^>Organization:/,/^>[A-Za-z-]*:/s;$ORGANIZATION_C;;
-/^>Confidential:/s;<.*>;;
-/^>Synopsis:/s;$SYNOPSIS_C;;
-/^>Severity:/s;<.*>;;
-/^>Priority:/s;<.*>;;
-/^>Category:/s;$CATEGORY_C;;
-/^>Class:/s;<.*>;;
-/^>Release:/,/^>[A-Za-z-]*:/s;$RELEASE_C;;
-/^>Environment:/,/^>[A-Za-z-]*:/s;$ENVIRONMENT_C;;
-/^>Description:/,/^>[A-Za-z-]*:/s;$DESCRIPTION_C;;
-/^>How-To-Repeat:/,/^>[A-Za-z-]*:/s;$HOW_TO_REPEAT_C;;
-/^>Fix:/,/^>[A-Za-z-]*:/s;$FIX_C;;
-" $TEMP > $REF
-
-if $MAIL_AGENT < $REF; then
- echo "$COMMAND: problem report sent"
- xs=0; exit
-else
- echo "$COMMAND: mysterious mail failure."
- if [ -z "$BATCH" ]; then
- echo "$COMMAND: the problem report remains in $BAD and is not sent."
- REMOVE_TEMP="rm -f $TEMP0 $TEMP $REF"
- mv $REF $BAD
- else
- echo "$COMMAND: the problem report is not sent."
- fi
- xs=1; exit
-fi
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gcov
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-gprof
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-ld
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-nm
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-objcopy
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-objdump
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-ranlib
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-readelf
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-size
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-strings
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux-strip
Binary file not shown.
View
1,385 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/build-hardy-toolchain.sh
@@ -1,1385 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2010 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# This script is used to rebuild the Linux 32-bit cross-toolchain
-# that allows you to generate 32-bit binaries that target Ubuntu 8.04
-# (a.k.a. Hardy Heron) instead of the host system (which usually is 10.04,
-# a.k.a. Lucid Lynx)
-#
-# Use --help for complete usage information.
-#
-# WARNING: At this time, the generated toolchain binaries will *not* run
-# with GLibc 2.7, only the machine code it generates.
-#
-
-PROGNAME="`basename \"$0\"`"
-
-###########################################################################
-###########################################################################
-#####
-##### C O N F I G U R A T I O N
-#####
-###########################################################################
-###########################################################################
-
-# We only support running this script on Linux
-OS=`uname -s`
-case "$OS" in
- Linux)
- OS=linux
- ;;
- *)
- echo "ERROR: This script can only run on Linux!"
- exit 1
- ;;
-esac
-
-# Location of temporary directory where everything will be downloaded
-# configured, built and installed before we generate the final
-# package archive
-WORK_DIR=/tmp/gcc32
-
-# Versions of various toolchain components, do not touch unless you know
-# what you're doing!
-BINUTILS_VERSION=2.19
-GMP_VERSION=4.2.4
-MPFR_VERSION=2.4.1
-GCC_VERSION=4.4.3
-GCC_TARGET=i686-linux
-GMP_TARGET=i386-linux
-
-GIT_CMD=git
-GIT_DATE=
-GIT_BRANCH=master
-GIT_REFERENCE=
-GIT_BASE=
-GIT_BASE_DEFAULT=https://android.googlesource.com/toolchain
-
-# Location where we will download the toolchain sources
-TOOLCHAIN_SRC_DIR=$WORK_DIR/toolchain-src
-
-# Location of original sysroot. This is where we're going to extract all
-# binary Ubuntu packages.
-ORG_SYSROOT_DIR=$WORK_DIR/sysroot
-
-# Name of the final generated toolchain
-TOOLCHAIN_NAME=$GCC_TARGET-glibc2.7-$GCC_VERSION
-
-# Name of the final toolchain binary tarball that this script will create
-TOOLCHAIN_ARCHIVE=/tmp/$TOOLCHAIN_NAME.tar.bz2
-
-# Location where we're going to install the toolchain during the build
-# This will depend on the phase of the build.
-install_dir () { echo "$WORK_DIR/$PHASE/$TOOLCHAIN_NAME"; }
-
-# A file that will contain details about all the sources used to generate
-# the final toolchain. This includes both SHA-1 for toolchain git repositories
-# and SHA-1 hashes for downloaded Ubuntu packages.
-SOURCES_LIST=$WORK_DIR/SOURCES
-
-# Location where we're going to install the final binaries
-# If empty, TOOLCHAIN_ARCHIVE will be generated
-PREFIX_DIR=
-
-# Location of the final sysroot. This must be a sub-directory of INSTALL_DIR
-# to ensure that the toolchain binaries are properly relocatable (i.e. can
-# be used when moved to another directory).
-sysroot_dir () { echo "$(install_dir)/sysroot"; }
-
-# Try to parallelize the build for faster performance.
-JOBS=`cat /proc/cpuinfo | grep processor | wc -l`
-
-# The base URL of the Ubuntu mirror we're going to use.
-UBUNTU_MIRROR=http://mirrors.us.kernel.org
-
-# Ubuntu release name we want packages from. Can be a name or a number
-# (i.e. "hardy" or "8.04")
-UBUNTU_RELEASE=hardy
-
-
-# The list of packages we need to download from the Ubuntu servers and
-# extract into the original sysroot
-#
-# Call add_ubuntu_package <package-name> to add a package to the list,
-# which will be processed later.
-#
-UBUNTU_PACKAGES=
-
-add_ubuntu_package ()
-{
- UBUNTU_PACKAGES="$UBUNTU_PACKAGES $@"
-}
-
-# The package files containing kernel headers for Hardy and the C
-# library headers and binaries
-add_ubuntu_package \
- linux-libc-dev \
- libc6 \
- libc6-dev
-
-# The X11 headers and binaries (for the emulator)
-add_ubuntu_package \
- libx11-6 \
- libx11-dev \
- libxcb-xlib0 \
- libxcb1 \
- libxau6 \
- libxdmcp6 \
- x11proto-core-dev \
- x11proto-xext-dev \
- x11proto-input-dev \
- x11proto-kb-dev
-
-# The OpenGL-related headers and libraries (for GLES emulation)
-add_ubuntu_package \
- mesa-common-dev \
- libgl1-mesa-dev \
- libgl1-mesa-glx \
- libxxf86vm1 \
- libxext6 \
- libxdamage1 \
- libxfixes3 \
- libdrm2
-
-# Audio libraries (required by the emulator)
-add_ubuntu_package \
- libasound2 \
- libasound2-dev \
- libesd-alsa0 \
- libesd0-dev \
- libaudiofile-dev \
- libpulse0 \
- libpulse-dev
-
-# ZLib
-add_ubuntu_package \
- zlib1g \
- zlib1g-dev \
- libncurses5 \
- libncurses5-dev
-
-
-
-###########################################################################
-###########################################################################
-#####
-##### E N D O F C O N F I G U R A T I O N
-#####
-###########################################################################
-###########################################################################
-
-# Parse all options
-OPTION_HELP=no
-VERBOSE=no
-VERBOSE2=no
-NDK_ROOT=
-FORCE=no
-ONLY_SYSROOT=no
-BOOTSTRAP=
-PARAMETERS=
-
-for opt do
- optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
- case "$opt" in
- --help|-h|-\?) OPTION_HELP=yes
- ;;
- --verbose)
- if [ "$VERBOSE" = "yes" ] ; then
- VERBOSE2=yes
- else
- VERBOSE=yes
- fi
- ;;
- --force) FORCE="yes"
- ;;
- --ubuntu-mirror=*) UBUNTU_MIRROR="$optarg"
- ;;
- --ubuntu-release=*) UBUNTU_RELEASE="$optarg"
- ;;
- --prefix=*) PREFIX_DIR="$optarg"
- ;;
- --work-dir=*) WORK_DIR="$optarg"
- ;;
- --gcc-version=*) GCC_VERSION="$optarg"
- ;;
- --binutils-version=*) BINUTILS_VERSION="$optarg"
- ;;
- --gmp-version=*) GMP_VERSION="$optarg"
- ;;
- --mpfr-version=*) MPFR_VERSION="$optarg"
- ;;
- --git=*) GIT_CMD=$optarg
- ;;
- --git-date=*) GIT_DATE=$optarg
- ;;
- --git-branch=*) GIT_BRANCH=$optarg
- ;;
- --git-base=*) GIT_BASE=$optarg
- ;;
- --git-reference=*) GIT_REFERENCE=$optarg
- ;;
- --out-dir=*) OPTION_OUT_DIR="$optarg"
- ;;
- --cc=*) OPTION_CC="$optarg"
- ;;
- --jobs=*) JOBS="$optarg"
- ;;
- -j*) JOBS=`expr "x$opt" : 'x-j\(.*\)'`
- ;;
- --only-sysroot) ONLY_SYSROOT=yes
- ;;
- --bootstrap) BOOTSTRAP=yes
- ;;
- -*)
- echo "unknown option '$opt', use --help"
- exit 1
- ;;
- *)
- if [ -z "$PARAMETERS" ]; then
- PARAMETERS="$opt"
- else
- PARAMETERS="$PARAMETERS $opt"
- fi
- esac
-done
-
-if [ "$OPTION_HELP" = "yes" ]; then
- cat << EOF
-
-Usage: $PROGNAME [options] <path-to-toolchain-sources>
-
-This script is used to rebuild a 32-bit Linux host toolchain that targets
-GLibc 2.7 or higher. The machine code generated by this toolchain will run
-properly on Ubuntu 8.04 or higher.
-
-You need to a patch corresponding to the patched toolchain sources that
-are downloaded from android.git.toolchain.org/toolchain/. One way to do that
-is to use the NDK's dedicated script to do it, e.g.:
-
- \$NDK/build/tools/download-toolchain-sources.sh /tmp/toolchain-src
-
-Then invoke this script as:
-
- $PROGNAME /tmp/toolchain-src
-
-Alternatively, you can use --ndk-dir=<path> to specify the location of
-your NDK directory, and this script will directly download the toolchain
-sources for you.
-
-Note that this script will download various binary packages from Ubuntu
-servers in order to prepare a compatible 32-bit "sysroot".
-
-By default, it generates a package archive ($TOOLCHAIN_ARCHIVE) but you can,
-as an alternative, ask for direct installation with --prefix=<path>
-
-Options: [defaults in brackets after descriptions]
-EOF
- echo "Standard options:"
- echo " --help Print this message"
- echo " --force Force-rebuild everything"
- echo " --prefix=PATH Installation path [$PREFIX_DIR]"
- echo " --ubuntu-mirror=URL Ubuntu mirror URL [$UBUNTU_MIRROR]"
- echo " --ubuntu-release=NAME Ubuntu release name [$UBUNTU_RELEASE]"
- echo " --work-dir=PATH Temporary work directory [$WORK_DIR]"
- echo " --only-sysroot Only dowload and build sysroot packages"
- echo " --verbose Verbose output. Can be used twice."
- echo " --binutils-version=VERSION Binutils version number [$BINUTILS_VERSION]"
- echo " --gcc-version=VERSION GCC version number [$GCC_VERSION]."
- echo " --gmp-version=VERSION GMP version number [$GMP_VERSION]."
- echo " --mpfr-version=VERSION MPFR version numner [$MPFR_VERSION]."
- echo " --ndk-dir=PATH Path to NDK (used to download toolchain sources)."
- echo " --jobs=COUNT Run COUNT build jobs in parallel [$JOBS]"
- echo " --git=<cmd> Use this version of the git tool [$GIT_CMD]"
- echo " --git-date=<date> Specify specific git date when download sources [none]"
- echo " --git-branch=<name> Specify which branch to use when downloading the sources [$GIT_BRANCH]"
- echo " --git-reference=<path> Use a git reference repository"
- echo " --git-base=<url> Use this git repository base [$GIT_BASE]"
- echo " -j<COUNT> Same as --jobs=COUNT."
- echo " --bootstrap Bootstrap toolchain (i.e. compile it with itself)"
- echo ""
- exit 1
-fi
-
-if [ -z "$PARAMETERS" ] ; then
- if [ -n "$GIT_REFERENCE" ] ; then
- if [ ! -d "$GIT_REFERENCE" -o ! -d "$GIT_REFERENCE/build" ]; then
- echo "ERROR: Invalid reference repository directory path: $GIT_REFERENCE"
- exit 1
- fi
- if [ -n "$GIT_BASE" ]; then
- echo "Using git clone reference: $GIT_REFERENCE"
- else
- # If we have a reference without a base, use it as a download base instead.
- GIT_BASE=$GIT_REFERENCE
- GIT_REFERENCE=
- echo "Using git clone base: $GIT_BASE"
- fi
- elif [ -z "$GIT_BASE" ]; then
- echo "ERROR: You did not provide the path to the toolchain sources."
- echo " You can make this script download them for you by using"
- echo " the --git-base=<url> option, as in:"
- echo ""
- echo " $0 --git-base=$GIT_BASE_DEFAULT"
- echo ""
- echo " Alternatively, you can use --git-reference=<path> if you"
- echo " already have a copy of the source repositories."
- echo ""
- echo " See --help for more git-related options."
- echo ""
- exit 1
- fi
-else
- set_parameters () {
- TOOLCHAIN_SRC_DIR="$1"
- if [ ! -d "$TOOLCHAIN_SRC_DIR" ]; then
- echo "ERROR: Not a directory: $1"
- exit 1
- fi
- if [ ! -d "$TOOLCHAIN_SRC_DIR/build" ]; then
- echo "ERROR: Missing directory: $1/build"
- exit 1
- fi
- }
-
- set_parameters $PARAMETERS
-fi
-
-# Determine Make flags
-MAKE_FLAGS="-j$JOBS"
-
-# Create the work directory
-mkdir -p $WORK_DIR
-
-# Location where we download packages from the Ubuntu servers
-DOWNLOAD_DIR=$WORK_DIR/download
-
-# Empty the SOURCES file
-rm -f $SOURCES_LIST && touch $SOURCES_LIST
-
-
-panic ()
-{
- echo "ERROR: $@"
- exit 1
-}
-
-fail_panic ()
-{
- if [ $? != 0 ] ; then
- echo "ERROR: $@"
- exit 1
- fi
-}
-
-if [ "$VERBOSE" = "yes" ] ; then
- run () {
- echo "## COMMAND: $@"
- $@
- }
- log () {
- echo "$@"
- }
- if [ "$VERBOSE2" = "yes" ] ; then
- log2 () {
- echo "$@"
- }
- else
- log2 () {
- return
- }
- fi
-else
- run () {
- $@ >>$TMPLOG 2>&1
- }
- log () {
- return
- }
- log2 () {
- return
- }
-fi
-
-OLD_PATH="$PATH"
-OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
-
-BUILD_DIR=$WORK_DIR/build
-mkdir -p $BUILD_DIR
-
-TMPLOG=$BUILD_DIR/build.log
-rm -rf $TMPLOG && touch $TMPLOG
-
-build_binutils_dir () { echo "$BUILD_DIR/$PHASE/binutils"; }
-build_gmp_dir () { echo "$BUILD_DIR/$PHASE/gmp"; }
-build_mpfr_dir () { echo "$BUILD_DIR/$PHASE/mpfr"; }
-build_gcc_dir () { echo "$BUILD_DIR/$PHASE/gcc"; }
-
-TIMESTAMPS_DIR=$BUILD_DIR/timestamps
-mkdir -p $TIMESTAMPS_DIR
-
-if [ "$FORCE" = "yes" ] ; then
- echo "Cleaning up timestamps (forcing the build)."
- rm -f $TIMESTAMPS_DIR/*
-fi
-
-if [ "$VERBOSE" = "no" ] ; then
- echo "To follow build, run: tail -F $TMPLOG"
-fi
-
-# returns 0 iff the string in $2 matches the pattern in $1
-# $1: pattern
-# $2: string
-pattern_match ()
-{
- echo "$2" | grep -q -E -e "$1"
-}
-
-# Find if a given shell program is available.
-# We need to take care of the fact that the 'which <foo>' command
-# may return either an empty string (Linux) or something like
-# "no <foo> in ..." (Darwin). Also, we need to redirect stderr
-# to /dev/null for Cygwin
-#
-# $1: variable name
-# $2: program name
-#
-# Result: set $1 to the full path of the corresponding command
-# or to the empty/undefined string if not available
-#
-find_program ()
-{
- local PROG
- PROG=`which $2 2>/dev/null`
- if [ -n "$PROG" ] ; then
- if pattern_match '^no ' "$PROG"; then
- PROG=
- fi
- fi
- eval $1="$PROG"
-}
-
-# Copy a directory, create target location if needed
-#
-# $1: source directory
-# $2: target directory location
-#
-copy_directory ()
-{
- local SRCDIR="$1"
- local DSTDIR="$2"
- if [ ! -d "$SRCDIR" ] ; then
- panic "Can't copy from non-directory: $SRCDIR"
- fi
- mkdir -p "$DSTDIR" && (cd "$SRCDIR" && tar cf - *) | (tar xf - -C "$DSTDIR")
- fail_panic "Cannot copy to directory: $DSTDIR"
-}
-
-find_program CMD_WGET wget
-find_program CMD_CURL curl
-find_program CMD_SCP scp
-
-# Download a file with either 'curl', 'wget' or 'scp'
-#
-# $1: source URL (e.g. http://foo.com, ssh://blah, /some/path)
-# $2: target file
-download_file ()
-{
- # Is this HTTP, HTTPS or FTP ?
- if pattern_match "^(http|https|ftp):.*" "$1"; then
- if [ -n "$CMD_WGET" ] ; then
- run $CMD_WGET -O $2 $1
- elif [ -n "$CMD_CURL" ] ; then
- run $CMD_CURL -o $2 $1
- else
- echo "Please install wget or curl on this machine"
- exit 1
- fi
- return
- fi
-
- # Is this SSH ?
- # Accept both ssh://<path> or <machine>:<path>
- #
- if pattern_match "^(ssh|[^:]+):.*" "$1"; then
- if [ -n "$CMD_SCP" ] ; then
- scp_src=`echo $1 | sed -e s%ssh://%%g`
- run $CMD_SCP $scp_src $2
- else
- echo "Please install scp on this machine"
- exit 1
- fi
- return
- fi
-
- # Is this a file copy ?
- # Accept both file://<path> or /<path>
- #
- if pattern_match "^(file://|/).*" "$1"; then
- cp_src=`echo $1 | sed -e s%^file://%%g`
- run cp -f $cp_src $2
- return
- fi
-
- # Unknown schema
- echo "ERROR: Unsupported source URI: $1"
- exit 1
-}
-
-# A variant of 'download_file' used to specify the target directory
-# $1: source URL
-# $2: target directory
-download_file_to ()
-{
- local URL="$1"
- local DIR="$2"
- local DST="$DIR/`basename $URL`"
- mkdir -p $DIR
- download_file "$URL" "$DST"
-}
-
-# Pack a given archive
-#
-# $1: archive file path (including extension)
-# $2: source directory for archive content
-# $3+: list of files (including patterns), all if empty
-pack_archive ()
-{
- local ARCHIVE="$1"
- local SRCDIR="$2"
- local SRCFILES
- local TARFLAGS ZIPFLAGS
- shift; shift;
- if [ -z "$1" ] ; then
- SRCFILES="*"
- else
- SRCFILES="$@"
- fi
- if [ "`basename $ARCHIVE`" = "$ARCHIVE" ] ; then
- ARCHIVE="`pwd`/$ARCHIVE"
- fi
- mkdir -p `dirname $ARCHIVE`
- if [ "$VERBOSE2" = "yes" ] ; then
- TARFLAGS="vcf"
- ZIPFLAGS="-9r"
- else
- TARFLAGS="cf"
- ZIPFLAGS="-9qr"
- fi
- case "$ARCHIVE" in
- *.zip)
- (cd $SRCDIR && run zip $ZIPFLAGS "$ARCHIVE" $SRCFILES)
- ;;
- *.tar)
- (cd $SRCDIR && run tar $TARFLAGS "$ARCHIVE" $SRCFILES)
- ;;
- *.tar.gz)
- (cd $SRCDIR && run tar z$TARFLAGS "$ARCHIVE" $SRCFILES)
- ;;
- *.tar.bz2)
- (cd $SRCDIR && run tar j$TARFLAGS "$ARCHIVE" $SRCFILES)
- ;;
- *)
- panic "Unsupported archive format: $ARCHIVE"
- ;;
- esac
-}
-
-no_trailing_slash ()
-{
- echo "$1" | sed -e 's!/$!!g'
-}
-
-# Load the Ubuntu packages file. This is a long text file that will list
-# each package for a given release.
-#
-# $1: Ubuntu mirror base URL (e.g. http://mirrors.us.kernel.org/)
-# $2: Release name
-#
-get_ubuntu_packages_list ()
-{
- local RELEASE=$2
- local BASE="`no_trailing_slash \"$1\"`"
- local SRCFILE="$BASE/ubuntu/dists/$RELEASE/main/binary-i386/Packages.bz2"
- local DSTFILE="$DOWNLOAD_DIR/Packages.bz2"
- log "Trying to load $SRCFILE"
- download_file "$SRCFILE" "$DSTFILE"
- fail_panic "Could not download $SRCFILE"
- (cd $DOWNLOAD_DIR && bunzip2 -f Packages.bz2)
- fail_panic "Could not uncompress $DSTFILE"
-
- # Write a small awk script used to extract filenames for a given package
- cat > $DOWNLOAD_DIR/extract-filename.awk <<EOF
-BEGIN {
- # escape special characters in package name
- gsub("\\\\.","\\\\.",PKG)
- gsub("\\\\+","\\\\+",PKG)
- FILE = ""
- PACKAGE = ""
-}
-
-\$1 == "Package:" {
- if (\$2 == PKG) {
- PACKAGE = \$2
- } else {
- PACKAGE = ""
- }
-}
-
-\$1 == "Filename:" && PACKAGE == PKG {
- FILE = \$2
-}
-
-END {
- print FILE
-}
-EOF
-}
-
-# Convert an unversioned package name into a .deb package URL
-#
-# $1: Package name without version information (e.g. libc6-dev)
-# $2: Ubuntu mirror base URL
-#
-get_ubuntu_package_deb_url ()
-{
- # The following is an awk command to parse the Packages file and extract
- # the filename of a given package.
- local BASE="`no_trailing_slash \"$1\"`"
- local FILE=`awk -f "$DOWNLOAD_DIR/extract-filename.awk" -v PKG=$1 $DOWNLOAD_DIR/Packages`
- if [ -z "$FILE" ]; then
- log "Could not find filename for package $1"
- exit 1
- fi
- echo "$2/ubuntu/$FILE"
-}
-
-# Does the host compiler generate 32-bit machine code?
-# If not, add the -m32 flag to the compiler name to ensure this.
-#
-compute_host_flags ()
-{
- HOST_CC=${CC:-gcc}
- HOST_CXX=${CXX-g++}
- echo -n "Checking for ccache..."
- find_program CMD_CCACHE ccache
- if [ -n "$CMD_CCACHE" ] ; then
- echo "$HOST_CC" | tr ' ' '\n' | grep -q -e "ccache"
- if [ $? = 0 ] ; then
- echo "yes (ignored)"
- else
- echo "yes"
- HOST_CC="ccache $HOST_CC"
- HOST_CXX="ccache $HOST_CXX"
- fi
- else
- echo "no"
- fi
- echo -n "Checking whether the compiler generates 32-bit code... "
- cat > $BUILD_DIR/conftest.c << EOF
- /* This will fail to compile if void* is not 32-bit */
- int test_array[1 - 2*(sizeof(void*) != 4)];
-EOF
- $HOST_CC -o $BUILD_DIR/conftest.o -c $BUILD_DIR/conftest.c > $BUILD_DIR/conftest.log 2>&1
- if [ $? != 0 ] ; then
- echo "no"
- HOST_CC="$HOST_CC -m32"
- HOST_CXX="$HOST_CXX -m32"
- else
- echo "yes"
- fi
- export CC="$HOST_CC"
- export CXX="$HOST_CXX"
-}
-
-compute_host_flags
-
-# Return the value of a given named variable
-# $1: variable name
-#
-# example:
-# FOO=BAR
-# BAR=ZOO
-# echo `var_value $FOO`
-# will print 'ZOO'
-#
-var_value ()
-{
- eval echo \$$1
-}
-
-var_list_append ()
-{
- local VARNAME=$1
- local VARVAL=`var_value $VARNAME`
- shift
- if [ -z "$VARVAL" ] ; then
- eval $VARNAME=\"$@\"
- else
- eval $VARNAME=\"$VARVAL $@\"
- fi
-}
-
-var_list_prepend ()
-{
- local VARNAME=$1
- local VARVAL=`var_value $VARNAME`
- shift
- if [ -z "$VARVAL" ] ; then
- eval $VARNAME=\"$@\"
- else
- eval $VARNAME=\"$@ $VARVAL\"
- fi
-}
-
-_list_first ()
-{
- echo $1
-}
-
-_list_rest ()
-{
- shift
- echo "$@"
-}
-
-var_list_pop_first ()
-{
- local VARNAME=$1
- local VARVAL=`var_value $VARNAME`
- local FIRST=`_list_first $VARVAL`
- eval $VARNAME=\"`_list_rest $VARVAL`\"
- echo "$FIRST"
-}
-
-_list_first ()
-{
- echo $1
-}
-
-_list_rest ()
-{
- shift
- echo "$@"
-}
-
-var_list_first ()
-{
- local VAL=`var_value $1`
- _list_first $VAL
-}
-
-var_list_rest ()
-{
- local VAL=`var_value $1`
- _list_rest $VAL
-}
-
-ALL_TASKS=
-
-# Define a new task for this build script
-# $1: Task name (e.g. build_stuff)
-# $2: Task description
-# $3: Optional: command name (will be cmd_$1 by default)
-#
-task_define ()
-{
- local TASK="$1"
- local DESCR="$2"
- local COMMAND="${3:-cmd_$1}"
-
- var_list_append ALL_TASKS $TASK
- task_set $TASK name "$TASK"
- task_set $TASK descr "$DESCR"
- task_set $TASK cmd "$COMMAND"
- task_set $TASK deps ""
-}
-
-# Variant of task define for dual tasks
-# This really defines two tasks named '<task>_1' and '<task>_2"
-# $1: Task base name
-# $2: Task description
-# $3: Optional: command name (will be cmd_$1 by default)
-task2_define ()
-{
- local TASK="$1"
- local DESCR="$2"
- local COMMAND="${3:-cmd_$1}"
-
- task_define "${TASK}_1" "$DESCR 1/2" "phase_1 $COMMAND"
- task_define "${TASK}_2" "$DESCR 2/2" "phase_2 $COMMAND"
-}
-
-task_set ()
-{
- local TASK="$1"
- local FIELD="$2"
- shift; shift;
- eval TASK_${TASK}__${FIELD}=\"$@\"
-}
-
-task_get ()
-{
- var_value TASK_$1__$2
-}
-
-# return the list of dependencies for a given task
-task_get_deps ()
-{
- task_get $1 deps
-}
-
-task_get_cmd ()
-{
- task_get $1 cmd
-}
-
-task_get_descr ()
-{
- task_get $1 descr
-}
-
-# $1: task name
-# $2+: other tasks this task depends on.
-task_depends ()
-{
- local TASK="$1"
- shift;
- var_list_append TASK_${TASK}__deps $@
-}
-
-# $1: dual task name
-# $2+: other non-dual tasks this dual task depends on
-task2_depends1 ()
-{
- local TASK="$1"
- shift
- var_list_append TASK_${TASK}_1__deps $@
- var_list_append TASK_${TASK}_2__deps $@
-}
-
-# $1: dual task name
-# $2+: other dual tasks this dual task depends on
-task2_depends2 ()
-{
- local TASK="$1"
- local DEP
- shift
- for DEP; do
- var_list_append TASK_${TASK}_1__deps ${DEP}_1
- var_list_append TASK_${TASK}_2__deps ${DEP}_2
- done
-}
-
-task_dump ()
-{
- local TASK
- for TASK in $ALL_TASKS; do
- local DEPS="`task_get_deps $TASK`"
- local CMD="`task_get_cmd $TASK`"
- local DESCR="`task_get_descr $TASK`"
- echo "TASK $TASK: $DESCR: $CMD"
- echo "> $DEPS"
- done
-}
-
-task_visit ()
-{
- task_set $TASK visit 1
-}
-
-task_unvisit ()
-{
- task_set $TASK visit 0
-}
-
-task_is_visited ()
-{
- [ `task_get $TASK visit` = 1 ]
-}
-
-task_queue_reset ()
-{
- TASK_QUEUE=
-}
-
-task_queue_push ()
-{
- var_list_append TASK_QUEUE $1
-}
-
-task_queue_pop ()
-{
- local FIRST=`var_list_first TASK_QUEUE`
- TASK_QUEUE=`var_list_rest TASK_QUEUE`
-}
-
-do_all_tasks ()
-{
- local TASK
- local TASK_LIST=
- task_queue_reset
- # Clear visit flags
- for TASK in $ALL_TASKS; do
- task_unvisit $TASK
- done
- task_queue_push $1
- while [ -n "$TASK_QUEUE" ] ; do
- TASK=`task_queue_pop`
- if task_is_visited $TASK; then
- continue
- fi
- # Prepend the task to the list if its timestamp is not set
- if [ ! -f $TIMESTAMPS_DIR/$TASK ]; then
- var_list_prepend TASK_LIST $TASK
- fi
- # Add all dependencies to the work-queue
- local SUBTASK
- for SUBTASK in `task_get_deps $TASK`; do
- task_queue_push $SUBTASK
- done
- task_visit $TASK
- done
-
- # Now, TASK_LIST contains the
-}
-
-do_task ()
-{
- local TASK="$1"
- local DEPS="`task_get_deps $TASK`"
- local DESCR="`task_get_descr $TASK`"
- local DEP
- #echo ">> $TASK: $DEPS"
- if [ -f "$TIMESTAMPS_DIR/$TASK" ] ; then
- echo "Skipping $1: already done."
- return 0
- fi
-
- # do_task for any dependents
- for DEP in $DEPS; do
- #echo " ? $DEP"
- if [ ! -f "$TIMESTAMPS_DIR/$DEP" ] ; then
- do_task $DEP
- fi
- done
-
- echo "Running: $DESCR"
- if [ "$VERBOSE" = "yes" ] ; then
- (eval `task_get_cmd $TASK`)
- else
- (eval `task_get_cmd $TASK`) >> $TMPLOG 2>&1
- fi
- if [ $? != 0 ] ; then
- echo "ERROR: Cannot $DESCR"
- exit 1
- fi
-
- touch "$TIMESTAMPS_DIR/$TASK"
-}
-
-# This function is used to clone a source repository either from a given
-# git base or a git reference.
-# $1: project/subdir name
-# $2: path to SOURCES file
-toolchain_clone ()
-{
- local GITFLAGS
- GITFLAGS=
- if [ "$GIT_REFERENCE" ]; then
- GITFLAGS="$GITFLAGS --shared --reference $GIT_REFERENCE/$1"
- fi
- echo "cleaning up toolchain/$1"
- rm -rf $1
- fail_panic "Could not clean $(pwd)/$1"
- echo "downloading sources for toolchain/$1"
- if [ -d "$GIT_BASE/$1" ]; then
- log "cloning $GIT_BASE/$1"
- run $GIT_CMD clone $GITFLAGS $GIT_BASE/$1 $1
- else
- log "cloning $GITPREFIX/$1.git"
- run $GIT_CMD clone $GITFLAGS $GIT_BASE/$1.git $1
- fi
- fail_panic "Could not clone $GIT_BASE/$1.git ?"
- cd $1
- if [ "$GIT_BRANCH" != "master" ] ; then
- log "checking out $GIT_BRANCH branch of $1.git"
- run $GIT_CMD checkout -b $GIT_BRANCH origin/$GIT_BRANCH
- fail_panic "Could not checkout $1 ?"
- fi
- # If --git-date is used, or we have a default
- if [ -n "$GIT_DATE" ] ; then
- REVISION=`git rev-list -n 1 --until="$GIT_DATE" HEAD`
- echo "Using sources for date '$GIT_DATE': toolchain/$1 revision $REVISION"
- run $GIT_CMD checkout $REVISION
- fail_panic "Could not checkout $1 ?"
- fi
- (printf "%-32s " "toolchain/$1.git: " && git log -1 --format=oneline) >> $2
- cd ..
-}
-
-task_define download_toolchain_sources "Download toolchain sources from $GIT_BASE "
-cmd_download_toolchain_sources ()
-{
- local SUBDIRS="binutils build gcc gdb gmp gold mpfr"
- (mkdir -p $TOOLCHAIN_SRC_DIR && cd $TOOLCHAIN_SRC_DIR &&
- # Create a temporary SOURCES file for the toolchain sources only
- # It's content will be copied to the final SOURCES file later.
- SOURCES_LIST=$TOOLCHAIN_SRC_DIR/SOURCES
- rm -f $SOURCES_LIST && touch $SOURCES_LIST
- for SUB in $SUBDIRS; do
- toolchain_clone $SUB $SOURCES_LIST
- done
- )
-}
-
-task_define download_ubuntu_packages_list "Download Ubuntu packages list"
-cmd_download_ubuntu_packages_list ()
-{
- mkdir -p $DOWNLOAD_DIR
- get_ubuntu_packages_list "$UBUNTU_MIRROR" "$UBUNTU_RELEASE"
- fail_panic "Unable to download packages list, try --ubuntu-mirror=<url> to use another archive mirror"
-}
-
-task_define download_packages "Download Ubuntu packages"
-task_depends download_packages download_ubuntu_packages_list
-cmd_download_packages ()
-{
- local PACKAGE
-
- rm -f $DOWNLOAD_DIR/SOURCES && touch $DOWNLOAD_DIR/SOURCES
- for PACKAGE in $UBUNTU_PACKAGES; do
- echo "Downloading $PACKAGE"
- local PKGURL=`get_ubuntu_package_deb_url $PACKAGE $UBUNTU_MIRROR`
- echo "URL: $PKGURL"
- download_file_to $PKGURL $DOWNLOAD_DIR
- fail_panic "Could not download $PACKAGE"
- done
- sha1sum $DOWNLOAD_DIR/*.deb | while read LINE; do
- PACKAGE=$(basename $(echo $LINE | awk '{ print $2;}'))
- SHA1=$(echo $LINE | awk '{ print $1; }')
- printf "%-64s %s\n" $PACKAGE $SHA1 >> $DOWNLOAD_DIR/SOURCES
- done
-}
-
-task_define build_sysroot "Build sysroot"
-task_depends build_sysroot download_packages
-
-cmd_build_sysroot ()
-{
- local PACKAGE
- for PACKAGE in $UBUNTU_PACKAGES; do
- local PKGURL=`get_ubuntu_package_deb_url $PACKAGE $UBUNTU_MIRROR`
- local SRC_PKG=$DOWNLOAD_DIR/`basename $PKGURL`
- echo "Extracting $SRC_PKG"
- dpkg -x $SRC_PKG $ORG_SYSROOT_DIR/
- done
-}
-
-# Now, we need to patch libc.so which is actually a linker script
-# referencing /lib and /usr/lib. Do the same for libpthread.so
-patch_library ()
-{
- echo "Patching $1"
- sed -i -e "s! /lib/! !g" -e "s! /usr/lib/! !g" $1
-}
-
-# Used to setup phase 1 the run a command
-phase_1 ()
-{
- PHASE=1
- $@
-}
-
-# Used to setup phase 2 then run a command
-phase_2 ()
-{
- PHASE=1
- BINPREFIX=$(install_dir)/bin/${GCC_TARGET}-
- CC=${BINPREFIX}gcc
- CXX=${BINPREFIX}g++
- LD=${BINPREFIX}ld
- AR=${BINPREFIX}ar
- AS=${BINPREFIX}as
- RANLIB=${BINPREFIX}ranlib
- STRIP=${BINPREFIX}strip
- export CC CXX LD AR AS RANLIB STRIP
- PHASE=2
- $@
-}
-
-task2_define copy_sysroot "Fix and copy sysroot"
-task2_depends1 copy_sysroot build_sysroot
-cmd_copy_sysroot ()
-{
- local SL
-
- # Copy the content of $BUILD_DIR/lib to $(sysroot_dir)/usr/lib
- copy_directory $ORG_SYSROOT_DIR/lib $(sysroot_dir)/usr/lib
- copy_directory $ORG_SYSROOT_DIR/usr/lib $(sysroot_dir)/usr/lib
- copy_directory $ORG_SYSROOT_DIR/usr/include $(sysroot_dir)/usr/include
-
- # We need to fix the symlink like librt.so -> /lib/librt.so.1
- # in $(sysroot_dir)/usr/lib, they should point to librt.so.1 instead now.
- SYMLINKS=`ls -l $(sysroot_dir)/usr/lib | grep /lib/ | awk '{ print $10; }'`
- cd $(sysroot_dir)/usr/lib
- for SL in $SYMLINKS; do
- # convert /lib/libfoo.so.<n> into 'libfoo.so.<n>' for the target
- local DST=`echo $SL | sed -e 's!^/lib/!!g'`
- # convert libfoo.so.<n> into libfoo.so for the source
- local SRC=`echo $DST | sed -e 's!\.[0-9]*$!!g'`
- echo "Fixing symlink $SRC --> $DST"
- ln -sf $DST $SRC
- done
-
- # Also deal with a few direct symlinks that don't use the /lib/ prefix
- # we simply copy them. Useful for libGL.so -> libGL.so.1 for example.
- SYMLINKS=`ls -l $(sysroot_dir)/usr/lib | grep -v /lib/ | awk '{ print $10; }'`
- cd $(sysroot_dir)/usr/lib
- for SL in $SYMLINKS; do
- # convert /lib/libfoo.so.<n> into 'libfoo.so.<n>' for the target
- local DST=`echo $SL`
- # convert libfoo.so.<n> into libfoo.so for the source
- local SRC=`echo $DST | sed -e 's!\.[0-9]*$!!g'`
- if [ "$DST" != "$SRC" ]; then
- echo "Copying symlink $SRC --> $DST"
- ln -sf $DST $SRC
- fi
- done
-
- patch_library $(sysroot_dir)/usr/lib/libc.so
- patch_library $(sysroot_dir)/usr/lib/libpthread.so
-}
-
-task_define prepare_toolchain_sources "Prepare toolchain sources."
-if [ -n "$GIT_BASE" -o -n "$GIT_REFERENCE" ]; then
- task_depends prepare_toolchain_sources download_toolchain_sources
-fi
-cmd_prepare_toolchain_sources ()
-{
- return
-}
-
-task2_define configure_binutils "Configure binutils-$BINUTILS_VERSION"
-task2_depends1 configure_binutils prepare_toolchain_sources
-task2_depends2 configure_binutils copy_sysroot
-cmd_configure_binutils ()
-{
- OUT_DIR=$(build_binutils_dir)
- mkdir -p $OUT_DIR && cd $OUT_DIR &&
- $TOOLCHAIN_SRC_DIR/binutils/binutils-$BINUTILS_VERSION/configure \
- --prefix=$(install_dir) \
- --with-sysroot=$(sysroot_dir) \
- --target=$GCC_TARGET
-}
-
-task2_define build_binutils "Build binutils-$BINUTILS_VERSION"
-task2_depends2 build_binutils configure_binutils
-cmd_build_binutils ()
-{
- cd $(build_binutils_dir) &&
- make $MAKE_FLAGS
-}
-
-task2_define install_binutils "Install binutils-$BINUTILS_VERSION"
-task2_depends2 install_binutils build_binutils
-cmd_install_binutils ()
-{
- cd $(build_binutils_dir) &&
- make install
-}
-
-task2_define extract_gmp "Extract sources for gmp-$GMP_VERSION"
-task2_depends1 extract_gmp prepare_toolchain_sources
-cmd_extract_gmp ()
-{
- OUT_DIR=$(build_gmp_dir)
- mkdir -p $OUT_DIR && cd $OUT_DIR &&
- tar xjf $TOOLCHAIN_SRC_DIR/gmp/gmp-$GMP_VERSION.tar.bz2
-}
-
-task2_define configure_gmp "Configure gmp-$GMP_VERSION"
-task2_depends2 configure_gmp extract_gmp install_binutils
-cmd_configure_gmp ()
-{
- export ABI=32 &&
- cd $(build_gmp_dir) && mkdir -p build && cd build &&
- ../gmp-$GMP_VERSION/configure --prefix=$(install_dir) --host=$GMP_TARGET --disable-shared
-}
-
-task2_define build_gmp "Build gmp-$GMP_VERSION"
-task2_depends2 build_gmp configure_gmp
-cmd_build_gmp ()
-{
- export ABI=32 &&
- cd $(build_gmp_dir)/build &&
- make $MAKE_FLAGS
-}
-
-task2_define install_gmp "Install gmp-$GMP_VERSION"
-task2_depends2 install_gmp build_gmp
-cmd_install_gmp ()
-{
- cd $(build_gmp_dir)/build &&
- make install
-}
-
-# Third, build mpfr
-task2_define extract_mpfr "Extract sources from mpfr-$MPFR_VERSION"
-task2_depends1 extract_mpfr prepare_toolchain_sources
-cmd_extract_mpfr ()
-{
- OUT_DIR=$(build_mpfr_dir)
- mkdir -p $OUT_DIR && cd $OUT_DIR &&
- tar xjf $TOOLCHAIN_SRC_DIR/mpfr/mpfr-$MPFR_VERSION.tar.bz2
-}
-
-task2_define configure_mpfr "Configure mpfr-$MPFR_VERSION"
-task2_depends2 configure_mpfr extract_mpfr install_gmp
-cmd_configure_mpfr ()
-{
- cd $(build_mpfr_dir) && mkdir -p build && cd build &&
- ../mpfr-$MPFR_VERSION/configure \
- --prefix=$(install_dir) \
- --host=$GMP_TARGET \
- --with-gmp=$(install_dir) \
- --with-sysroot=$(sysroot_dir) \
- --disable-shared
-}
-
-task2_define build_mpfr "Build mpfr-$MPFR_VERSION"
-task2_depends2 build_mpfr configure_mpfr
-cmd_build_mpfr ()
-{
- cd $(build_mpfr_dir)/build &&
- make $MAKE_FLAGS
-}
-
-task2_define install_mpfr "Install mpfr-$MPFR_VERSION"
-task2_depends2 install_mpfr build_mpfr
-cmd_install_mpfr ()
-{
- cd $(build_mpfr_dir)/build &&
- make install
-}
-
-
-# Fourth, the compiler itself
-task2_define configure_gcc "Configure gcc-$GCC_VERSION"
-task2_depends1 configure_gcc prepare_toolchain_sources
-task2_depends2 configure_gcc install_binutils install_gmp install_mpfr
-cmd_configure_gcc ()
-{
- OUT_DIR=$(build_gcc_dir)
- mkdir -p $OUT_DIR && cd $OUT_DIR &&
- export PATH=$(install_dir)/bin:$OLD_PATH &&
- export CFLAGS="-m32" &&
- export CC_FOR_TARGET="$HOST_CC" &&
- export LD_LIBRARY_PATH=$(install_dir)/lib:$OLD_LD_LIBRARY_PATH &&
- export LDFLAGS="-L$(install_dir)/lib" &&
- $TOOLCHAIN_SRC_DIR/gcc/gcc-$GCC_VERSION/configure \
- --prefix=$(install_dir) \
- --with-sysroot=$(sysroot_dir) \
- --disable-nls \
- --with-gmp=$(install_dir) \
- --with-mpfr=$(install_dir) \
- --target=$GCC_TARGET \
- --disable-plugin \
- --disable-docs \
- --enable-languages=c,c++
-}
-
-task2_define build_gcc "Build gcc-$GCC_VERSION"
-task2_depends2 build_gcc configure_gcc
-cmd_build_gcc ()
-{
- export PATH=$(install_dir)/bin:$OLD_PATH &&
- export LD_LIBRARY_PATH=$(install_dir)/lib:$OLD_LD_LIBRARY_PATH &&
- cd $(build_gcc_dir) &&
- make $MAKE_FLAGS
-}
-
-task2_define install_gcc "Install gcc-$GCC_VERSION"
-task2_depends2 install_gcc build_gcc
-cmd_install_gcc ()
-{
- export PATH=$(install_dir)/bin:$OLD_PATH &&
- export LD_LIBRARY_PATH=$(install_dir)/lib:$OLD_LD_LIBRARY_PATH &&
- cd $(build_gcc_dir) &&
- make install
-}
-
-task2_define cleanup_toolchain "Cleanup toolchain"
-task2_depends2 cleanup_toolchain install_gcc
-cmd_cleanup_toolchain ()
-{
- # Remove un-needed directories and files
- rm -rf $(install_dir)/share
- rm -rf $(install_dir)/man
- rm -rf $(install_dir)/info
- rm -rf $(install_dir)/lib32
- rm -rf $(install_dir)/libexec/*/*/install-tools
-
- (strip $(install_dir)/bin/*)
- true
-}
-
-task2_define package_toolchain "Package final toolchain"
-task2_depends2 package_toolchain cleanup_toolchain
-cmd_package_toolchain ()
-{
- # Copy this script to the install directory
- cp -f $0 $(install_dir)
- fail_panic "Could not copy build script to install directory"
-
- # Copy the SOURCES file as well
- cp $DOWNLOAD_DIR/SOURCES $(install_dir)/PACKAGE_SOURCES &&
- cp $TOOLCHAIN_SRC_DIR/SOURCES $(install_dir)/TOOLCHAIN_SOURCES
- fail_panic "Could not copy SOURCES files to install directory"
-
- # Package everything
- pack_archive $TOOLCHAIN_ARCHIVE "`dirname $(install_dir)`" "`basename $(install_dir)`"
-}
-
-task2_define install_toolchain "Install final toolchain"
-task2_depends2 install_toolchain cleanup_toolchain
-cmd_install_toolchain ()
-{
- copy_directory "$(install_dir)" "$PREFIX_DIR/$TOOLCHAIN_NAME"
- cp -f $0 "$PREFIX_DIR/$TOOLCHAIN_NAME/"
-}
-
-# Get sure that the second toolchain depends on the first one
-task_depends configure_binutils_2 install_gcc_1
-
-if [ "$ONLY_SYSROOT" = "yes" ]; then
- do_task copy_sysroot
- echo "Done, see sysroot files in $(sysroot_dir)"
-elif [ -n "$PREFIX_DIR" ]; then
- if [ -z "$BOOTSTRAP" ]; then
- do_task install_toolchain_1
- else
- do_task install_toolchain_2
- fi
- echo "Done, see $PREFIX_DIR/$TOOLCHAIN_NAME"
-else
- if [ -z "$BOOTSTRAP" ]; then
- do_task package_toolchain_1
- else
- do_task package_toolchain_2
- fi
- echo "Done, see $TOOLCHAIN_ARCHIVE"
-fi
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/ar
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/as
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/c++
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/g++
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/gcc
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/ld
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/nm
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/objcopy
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/objdump
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/ranlib
Binary file not shown.
View
BIN linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/bin/strip
Binary file not shown.
View
68 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/algorithm
@@ -1,68 +0,0 @@
-// <algorithm> -*- C++ -*-
-
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// Under Section 7 of GPL version 3, you are granted additional
-// permissions described in the GCC Runtime Library Exception, version
-// 3.1, as published by the Free Software Foundation.
-
-// You should have received a copy of the GNU General Public License and
-// a copy of the GCC Runtime Library Exception along with this program;
-// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
-// <http://www.gnu.org/licenses/>.
-
-/*
- *
- * Copyright (c) 1994
- * Hewlett-Packard Company
- *
- * Permission to use, copy, modify, distribute and sell this software
- * and its documentation for any purpose is hereby granted without fee,
- * provided that the above copyright notice appear in all copies and
- * that both that copyright notice and this permission notice appear
- * in supporting documentation. Hewlett-Packard Company makes no
- * representations about the suitability of this software for any
- * purpose. It is provided "as is" without express or implied warranty.
- *
- *
- * Copyright (c) 1996,1997
- * Silicon Graphics Computer Systems, Inc.
- *
- * Permission to use, copy, modify, distribute and sell this software
- * and its documentation for any purpose is hereby granted without fee,
- * provided that the above copyright notice appear in all copies and
- * that both that copyright notice and this permission notice appear
- * in supporting documentation. Silicon Graphics makes no
- * representations about the suitability of this software for any
- * purpose. It is provided "as is" without express or implied warranty.
- */
-
-/** @file include/algorithm
- * This is a Standard C++ Library header.
- */
-
-#ifndef _GLIBCXX_ALGORITHM
-#define _GLIBCXX_ALGORITHM 1
-
-#pragma GCC system_header
-
-#include <bits/stl_algobase.h>
-#include <bits/stl_algo.h>
-
-#ifdef _GLIBCXX_PARALLEL
-# include <parallel/algorithm>
-#endif
-
-#endif /* _GLIBCXX_ALGORITHM */
View
60 linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/array
@@ -1,60 +0,0 @@
-// <array> -*- C++ -*-
-
-// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// Under Section 7 of GPL version 3, you are granted additional
-// permissions described in the GCC Runtime Library Exception, version
-// 3.1, as published by the Free Software Foundation.
-
-// You should have received a copy of the GNU General Public License and
-// a copy of the GCC Runtime Library Exception along with this program;
-// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
-// <http://www.gnu.org/licenses/>.
-
-/** @file include/array
- * This is a Standard C++ Library header.
- */
-
-#ifndef _GLIBCXX_ARRAY
-#define _GLIBCXX_ARRAY 1
-
-#pragma GCC system_header
-
-#ifndef __GXX_EXPERIMENTAL_CXX0X__
-# include <c++0x_warning.h>
-#else
-
-#if defined(_GLIBCXX_INCLUDE_AS_TR1)
-# error C++0x header cannot be included from TR1 header
-#endif
-
-#include <bits/stl_algobase.h>
-
-#if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
-# include <tr1_impl/array>
-#else
-# define _GLIBCXX_INCLUDE_AS_CXX0X
-# define _GLIBCXX_BEGIN_NAMESPACE_TR1
-# define _GLIBCXX_END_NAMESPACE_TR1
-# define _GLIBCXX_TR1
-# include <tr1_impl/array>
-# undef _GLIBCXX_TR1
-# undef _GLIBCXX_END_NAMESPACE_TR1
-# undef _GLIBCXX_BEGIN_NAMESPACE_TR1
-# undef _GLIBCXX_INCLUDE_AS_CXX0X
-#endif
-
-#endif // __GXX_EXPERIMENTAL_CXX0X__
-
-#endif // _GLIBCXX_ARRAY