1. 29 Jun, 2012 2 commits
  2. 28 Jun, 2012 6 commits
  3. 27 Jun, 2012 3 commits
  4. 25 Jun, 2012 1 commit
  5. 23 Jun, 2012 1 commit
  6. 22 Jun, 2012 3 commits
  7. 21 Jun, 2012 2 commits
    • Andrew Hsieh's avatar
    • Andrew Hsieh's avatar
      Fixed LOCAL_SHORT_COMMANDS to not recompile/relink source/object every time · 1253fb95
      Andrew Hsieh authored
      When LOCAL_SHORT_COMMANDS is set to true, compiler options are emitted to a
      response file and read off using the '@file' syntax.  This is to support very
      long commmand line w/o running over the limit of shell command buffer.
      
      Obviously target depends on the response file which shall be regenerated
      every time to account for potential changes in command line options.
      Unfortunately this triggers rebuilding of target as well even when the content
      of response file is identical to the last one.
      
      This CL fixes it by emitting options to a temp file, and only update the response
      file when contents differ
      
      Change-Id: Ia2be6df7bbc0d0816b60d552f3fde004f42ca748
      1253fb95
  8. 20 Jun, 2012 4 commits
  9. 13 Jun, 2012 4 commits
  10. 12 Jun, 2012 4 commits
    • David 'Digit' Turner's avatar
      build-host-gdb.sh: New script · cd03b817
      David 'Digit' Turner authored
      This patch introduces a new script to rebuild the client gdb
      host program(s) from sources. Usage is similar to build-host-gcc.sh,
      for example, here's how to rebuild three versions of gdb for
      6 host/target combinations:
      
        build/tools/build-host-gdb.sh --toolchain-src-dir=<path> \
                --gdb-version=6.6,7.1.x,7.3.x \
                --systems=linux-x86,linux-x86_64 \
      
      See --help for all options.
      
      Notice that the binaries are placed under:
      
        prebuilt/$HOST_SYSTEM/gdb-$TARGET_ARCH-$GDB_VERSION/bin/
      
      This is to disconnect the GDB client version from the GCC one.
      
      + Introduce the new common-build-host-funcs.sh file which
        contains common functions related to building host binaries
        for the NDK. This is a small refactoring of most of the stuff
        that is already in build-host-gcc.sh. All of them using the
        bh_ or BH_ prefix to avoid namespace collision.
      
        Note that build-host-gcc.sh is not refactored by this patch,
        this will be performed later.
      
      Change-Id: I6c4432bd5b7d327e6a30784f98137b59cbca10be
      cd03b817
    • Andrew Hsieh's avatar
      Merge "Move MIPS .dynamic to the data segement, so that it is writable.... · 7db290bf
      Andrew Hsieh authored
      Merge "Move MIPS .dynamic to the data segement, so that it is writable. Replace hard-coded 4096 with symbols for correct segment sizes for MIPS."
      7db290bf
    • Andrew Hsieh's avatar
      Update TOOLCHAIN_GIT_DATE & misc fixes · 66fedaab
      Andrew Hsieh authored
      Fixes:
      1. Update TOOLCHAIN_GIT_DATE to 2012-06-10
      2. More fix in ld --gc-sections (see comment in
         https://android-review.googlesource.com/#/c/36585/)
      3. Correct typos, etc
      
      Change-Id: I6534d4345d3c036cdd6fe51863367cc3e5e5634d
      66fedaab
    • Andrew Hsieh's avatar
      Merge "GDB patch to fix mingw64 build." · 055bc7ac
      Andrew Hsieh authored
      055bc7ac
  11. 11 Jun, 2012 2 commits
  12. 08 Jun, 2012 3 commits
  13. 07 Jun, 2012 2 commits
    • Andrew Hsieh's avatar
    • David 'Digit' Turner's avatar
      build-host-gcc.sh: New script to rebuild toolchain. · 6807ab93
      David 'Digit' Turner authored
      This patch adds build-host-gcc.sh, a new script that can rebuild
      our GCC-based toolchain from scratch, without using the AOSP
      toolchain/build.git scripts.
      
      NOTE: The script does *not* rebuild GDB at all (a future patch will
            provide build-host-gdb.sh to do so).
      
      The script is capable of building *several* toolchains at once,
      minimizing what needs to be done to speed up the whole process.
      For example, here's how to rebuild the linux-x86 and windows
      toolchains for both gcc 4.4.3 and gcc 4.4.6 on all of arm,x86 and mips:
      
        build/tools/build-host-gcc.sh --toolchain-src-dir=/path/to/toolchain/src \
          --systems=linux-x86,windows \
          arm-linux-androideabi-4.4.3 \
          arm-linux-androideabi-4.6 \
          x86-4.4.3 \
          x86-4.6 \
          mipsel-linux-android-4.4.3 \
          mipsel-linux-android-4.6
      
      This operations takes 31 minutes on a 16-core 2.4 GHz z600, not bad
      for something that generates 12 different toolchains.
      
      Define NDK_CCACHE=ccache in your environment to speed-up rebuilds.
      On my machine, the above command takes above
      
      + The script will build for the host system by default. This means
        linux-x86_64 on 64-bit Ubuntu 10.10, for example.
      
      This script has been tested to build the following toolchains
      succesfully:
      
        arm-linux-androideabi-4.4.3
        arm-linux-androideabi-4.6
        x86-4.4.3
        x86-4.6
        mipsel-linux-android-4.4.3
        mipsel-linux-android-4.6
      
      For the following host systems:
      
        linux-x86
        linux-x86_64
        windows (see note below)
        windows-x86_64
        darwin-x86
        darwin-x86_64
      
      Regarding windows, the build succeeds with the i586-mingw32msvc-gcc
      cross-toolchain installed on Linux, and with x86_64-w64-mingw32 which
      can be rebuilt from sources with build-mingw64-toolchain.sh
      
      Change-Id: I00f5d16d8db729e7efdf0e138888f761936f3c4d
      6807ab93
  14. 06 Jun, 2012 3 commits