7 years agoSupport new dual-linker option.
Jing Yu [Wed, 21 Dec 2011 01:01:04 +0000]
Support new dual-linker option.

Let build automatically detect binutils versions and append proper
--enable-gold=xxx options to binutils configuration.
The story is that gcc-4.6 and binutils-2.21 use
--enable-gold=default, our old gcc and binutils use
--enable-gold=both/gold.
With the patch, we pass toolchain configuration --enable-gold=xxx to
gcc, and let build script automatically detect binutils version
number and append proper --enable-gold=xxx to binutils configuration.

Change-Id: Iaf31e3285107b3afb7a2f0a66c58b02a9937e214

7 years agoFix host-libbfd installation problem caused by undefined $(INSTALL)
Jim Huang [Thu, 26 May 2011 17:24:34 +0000]
Fix host-libbfd installation problem caused by undefined $(INSTALL)

While executing target install-host-libbfd, the build system complains:

make -C libbfd-binutils-2.20.1/bfd install \
               bfdlibdir=/tmp/android-toolchain-eabi/lib
bfdincludedir=/tmp/android-toolchain-eabi/include && \ -m 644
libbfd-binutils-2.20.1/intl/libintl.a \ /tmp/android-toolchain-eabi/lib
&& \ -m 644 libbfd-binutils-2.20.1/libiberty/libiberty.a \
               /tmp/android-toolchain-eabi/lib

/bin/sh: line 2: -m: command not found

The problem was caused by undefined $(INSTALL).  The patch attempts to
configure `install' program by autotool in order to set $(INSTALL)
properly and replace $(INSTALL) -m 644 with multi-platform friendly
$(INSTALL_DATA).

Change-Id: I7f08aa442d62f3d3d8cef2c482c76e6a93500de8
Signed-off-by: Jim Huang <jserv@0xlab.org>

8 years agoConfigure target of host libbfd correctly.
Doug Kwan [Fri, 13 May 2011 07:22:50 +0000]
Configure target of host libbfd correctly.

Change-Id: I30c4fa2e008f62c7d96677ba7219f0d5aec5d12d

8 years agoAdd --enable-graphite option to build script
Jim Huang [Wed, 6 Apr 2011 05:51:49 +0000]
Add --enable-graphite option to build script

GCC 4.5 and up supports graphite optimization, and cloog and ppl
are required.  This change attempts to support some combinations
of ppl and cloog/cloog-ppl libraries.  Since cloog and ppl are
written in C++, it implies we might suffer from C++ ABI breakage
problems when host environment changes, that is a well-known issue
in GNU/Linux distributions.  Thus, we have to link to static C++
runtime library (libstdc++) to avoid depending on the host version.

Default: no

Change-Id: I0a69712379a4e2dc30034a2226a15717a9c121b7

8 years ago- Also install libintl.a and libiberty.
Doug Kwan [Wed, 23 Mar 2011 18:53:17 +0000]
- Also install libintl.a and libiberty.
- Build libsupc++.a for ARM.

Change-Id: I9a83af7870a605c2d1ebc3849b31547aef15cd9c

8 years agoAllow building toolchain without target gdb alternatively.
Luse Cheng [Wed, 23 Mar 2011 06:53:23 +0000]
Allow building toolchain without target gdb alternatively.

Change-Id: I3fd1c4f628c221e6ae4f939aab73e69b3e546bd1

8 years agoFix Makefile.in, a previous check-in broke build using gmp/mpfr/mpc tarballs.
Doug Kwan [Fri, 18 Mar 2011 22:14:24 +0000]
Fix Makefile.in, a previous check-in broke build using gmp/mpfr/mpc tarballs.

Change-Id: I0b16ee52add11b8394ede920d9a0af45fee0db8d

8 years agoAllow build with prebuilt directory for gmp, mpfr and mpc.
Luse Cheng [Tue, 15 Mar 2011 03:59:00 +0000]
Allow build with prebuilt directory for gmp, mpfr and mpc.

Change-Id: I436736db24477e261575ee267d126f44cac35627

8 years agoBuild libbfd for host seperately and install in <toolchain root>/lib.
Doug Kwan [Mon, 14 Mar 2011 03:55:27 +0000]
Build libbfd for host seperately and install in <toolchain root>/lib.

Change-Id: I05125f833a9ffc4172594431eff5bce34e2e2d65

8 years agoInstall host libbfd in toolchain.
Doug Kwan [Sat, 12 Mar 2011 22:02:24 +0000]
Install host libbfd in toolchain.

Change-Id: I9c9a4703ebebc44c7df75594c85dc443394a2426

8 years agoAllow canadian-cross builds of the GCC toolchains.
David 'Digit' Turner [Tue, 30 Nov 2010 17:21:39 +0000]
Allow canadian-cross builds of the GCC toolchains.

This patch allows one to use the "mingw32" cross-compiler on Linux
in order to generate Windows compiler binaries that target ARM machine
code.

This corresponds to the local NDK patch at:

http://android.git.kernel.org/?p=platform/ndk.git;a=tree;f=build/tools/toolchain-patches/build;h=df69b5702a33686574b0d83b94c27e6209036a57;hb=refs/heads/master

Which has been rebased to the AOSP top-of-tree.

Change-Id: Id4843f66af190c9db02e8f7939045e92e6241ba8

8 years agoSupport building gold from a separate directory.
Jing Yu [Mon, 31 Jan 2011 06:41:02 +0000]
Support building gold from a separate directory.

Before, we built binutils and gold from binutils-2.19.
Now we configure Android toolchain (not for kernel use)
--with-binutils-version=2.20.1
--with-gold-version=20100303
--enable-gold=both/gold

Gold is still the default linker. Command line option "-fuse-ld=bfd"
will tell gcc driver to choose gnu ld linker.

Change-Id: I856892fafee7e53332c6b64f5d2e64d744529902

8 years agobuild: Fix trivial documentation typo
Jim Huang [Fri, 20 Aug 2010 15:30:37 +0000]
build: Fix trivial documentation typo

Change-Id: Ib80c6d91450a5751867cb904b265e21a9dbbb710

8 years agoAllow Makefile to pick up environmental CFLAGS_FOR_TARGET, and
Jing Yu [Thu, 12 Aug 2010 22:52:15 +0000]
Allow Makefile to pick up environmental CFLAGS_FOR_TARGET, and
CXXFLAGS_FOR_TARGET. So that libstdc++_v3 libraries can be built
without modifying the Makefiles.

Change-Id: I569febd84a1bf60b15b19030064b4d9996c93bb0
Tested:
  export CFLAGS_FOR_TARGET=-fexceptions
  export CXXFLAGS_FOR_TARGET=-frtti
  Add --enable-libstdc__-v3 to the configuration command, build a C++
  supportive toolchain.

8 years agoAdd 'distclean' rule to delete intermediate build files
Jim Huang [Wed, 11 Aug 2010 04:08:30 +0000]
Add 'distclean' rule to delete intermediate build files

This build rule might be useful to developers who wish to switch among
different Android targets.

Change-Id: I412d7e8f69710dd9d421f21fa7d93bed80642834

8 years agoModify clear_header script to recognize arm-linux-androideabi
Jing Yu [Tue, 10 Aug 2010 17:12:29 +0000]
Modify clear_header script to recognize arm-linux-androideabi
target.

Change-Id: Id5a5cf94abffd7a8186fa23eb1b485a670c3fa92

8 years agoPrepare build for upcoming arm-linux-androideabi toolchain.
Jing Yu [Thu, 22 Jul 2010 21:27:24 +0000]
Prepare build for upcoming arm-linux-androideabi toolchain.

Change-Id: I9b1cd5f0d361d092c24557ae1a2e2e2b85b13aaf

8 years agoAdd --disable-nls to building gdb, otherwise gdb-7.0.x fails
Jing Yu [Tue, 8 Jun 2010 21:48:40 +0000]
Add --disable-nls to building gdb, otherwise gdb-7.0.x fails
building on OSX.

Change-Id: I54f923f7656ac2f2a7e4a8dc0a07c43bb4cfb05d

9 years agoUpdate build script to support gold.
Jing Yu [Sun, 25 Apr 2010 03:44:35 +0000]
Update build script to support gold.

Change-Id: Ie2084dfac8d1a267973650aa32e44f2a7c7bd4ab

9 years agoFix two configure bugs on checking gcc version and configuring mpc.
Jing Yu [Wed, 10 Feb 2010 00:19:33 +0000]
Fix two configure bugs on checking gcc version and configuring mpc.
Add flexibility of where to find tarballs.
Ported from CL38191-p2 and CL38139-p2.

9 years agoAdd --with-mpc-version to the build script.
Jing Yu [Mon, 18 Jan 2010 21:58:14 +0000]
Add --with-mpc-version to the build script.

GCC-4.5.0 and up requires mpc library.
File configure is generated from configure.ac by auto config.

9 years agoCheck in patches that fix minor toolchain build problems.
Jing Yu [Thu, 19 Nov 2009 01:59:49 +0000]
Check in patches that fix minor toolchain build problems.

9 years agocheck in build scripts for prebuilt toolchains in Eclair.
Jing Yu [Fri, 6 Nov 2009 02:24:23 +0000]
check in build scripts for prebuilt toolchains in Eclair.

9 years agoEmpty initial commit.
Jean-Baptiste Queru [Thu, 29 Oct 2009 17:41:51 +0000]
Empty initial commit.