History log of /ndk/build/tools/build-host-python.sh
Revision Date Author Comments
6d1c6602773e633148dc07413748227970682d25 14-Nov-2014 Chih-Hung Hsieh <chh@google.com> Allow python to be built on host with qemu.

Although the built ndk might not run on the host,
this will allow us to test compilation of ndk on more machines.

Change-Id: I8490a0597c0f9da185f036c9b422617fd4037407
f0bef33d63eceb503d6a30ca151a8fcc7f1f2d4d 06-Jun-2014 Andrew Hsieh <andrewhsieh@google.com> Support build of gcc 'l' variant: 4.8l and 4.9l

eg. attach linaro source at /tmp/ndk-$USER/src/gcc/gcc-4.8l or
/tmp/ndk-$USER/src/gcc/gcc-4.9l following regular
download-toolchain-sources.sh, linaro toolchain can be built with

./build/tools/build-gcc.sh /tmp/ndk-$USER/src/ $NDK arm-linux-androideabi-4.8l \
--with-python=prebuilt --try-64

./build/tools/build-gcc.sh /tmp/ndk-$USER/src $NDK aarch64-linux-android-4.9l \
--with-python=prebuilt --try-64

Change-Id: I38f8c0f71ed4975267daa0de8e9c1d8b8bcf6674
d4a49bf41476e5f618d2cb683703c2d33565951e 10-Feb-2014 Andrew Hsieh <andrewhsieh@google.com> Misc fixes

1. Reordered NDK_KNOWN_ABIS for longest match to happen first
2. rm -rf share/man in build-host-python.sh
3. Add --gcc-version and --llvm-version in gen-platforms.sh
4. More log in Abcc.cpp
5. Test only libc.so in default archs in libc_no_atexit
6. Don't remove the whole sources/android/compiler-rt directory
since it gets Android.mk recently
7. Revised run-libcxx.sh
8. Placeholder for OBJCOPY

Change-Id: I79aa770418df5ec7e28e54ada9a925c92afe170b
1f2541a7a94b939eef41a9a7d6f046d8fbc65780 10-Jul-2013 David 'Digit' Turner <digit@android.com> Strip generated Python binaries.

This ensures that the host binaries generated by build-host-python.sh
are properly stripped. This saves about 24 MB under prebuilt/linux-x86_64.

Change-Id: I4ece1b0e9d1bdc44318c8c88f162a6c66ded6662
877fc9f59b0fb37fadeecfe8cc7327641b750870 30-Jun-2013 Ray Donnelly <mingw.android@gmail.com> build-host-gdb.sh stub and Python fixes.

1. Use NDK_BUILDTOOLS_PATH not BUILDTOOLS in build-host-gdb.sh
2. Fixes for ndk install dir when windows-x86 used as host tag
3. Only re-package Python if needed (need_package_host_python)
4. Call bh_setup_host_env when building stub incase we didn't
already call it due to not needing to compile gdb
5. Fix stub option --mingw-w64-gcc-path to --mingw-w64-gcc
6. Install gdb one folder deeper so the relpath to the stub is
the same as that for build-gcc.sh

Change-Id: I5ec4666ec9812f926609dc3b0e4cba7801274766
c91880dd347579316d1e271edfa8aede57c87214 03-Jun-2013 Ray Donnelly <mingw.android@gmail.com> Include stdc++ pretty printers with Python

Change-Id: I4f95b27c1106d3b5b9393252c764ce1d7a1a0468
b4789c38c2898b92e7e55274ded1e7f953d5cbf7 23-Apr-2013 TDYa127 <tdy@google.com> Make more scripts can accept relative paths.

Change-Id: Ia066b8b2537a9a14661846fcee6c9fca369a67c5
c39351a729f274b844387658eddc63085d6913ff 22-May-2013 Ray Donnelly <mingw.android@gmail.com> Use Python 2.7.5
977eaeb520cf5aa5abf33a320672b5b103c7b228 10-May-2013 Ray Donnelly <mingw.android@gmail.com> Build GDB stub for Windows
b551a38bc664f07a59be17f1a473396a0db0dd02 09-May-2013 Andrew Hsieh <andrewhsieh@google.com> Add --with-build-sysroot

Otherwise host's /usr/include, etc, may be used instead of build's
compilers headers (AOSP/prebuilts/gcc/<host>/host, or cross compiler)

Also, quote "$BH_HOST_OS" = "$BH_BUILD_OS"

Change-Id: I671ff8b112f8861fcd0cc074b16473a4d83abde3
59fd2bfb50dab0b19fddb397cd2d4122b17eb8d0 03-May-2013 Ray Donnelly <mingw.android@gmail.com> Python GDB intergration work for the ndk build scripts.

For discussion and testing at present, change requests
welcomed.

build-host-prebuilts.sh is setup to automatically use the
built Pythons at present, this should probably be optional.

A change is needed to toolchain/build.git:
https://android-review.googlesource.com/#/c/57940/

This patch also upgrades to Python 2.7.4, so a new patchset
is needed:
http://github.com/mingwandroid/crucifixion-freedom.git
in patches/python/2.4.7
rev: 23d7cabfa798ada006ee223923460f5eea890d77
dd8fc70f5479bb634c0919eed7f906d540ec807b 21-Apr-2013 Andrew Hsieh <andrewhsieh@google.com> Misc fixes

1) Recent commit incorrectly build GCC4.4.3/mips with binutils-2.19.
Change it back to compile with binutils-2.21
2) ndk-stack used to be built only in 32-bit due to concern of
overwriting 32-bit with 64-bit one in the same path. The way
NDK is currently packaged (ie. separate 32-bit and 64-bit)
obliterates the concern.
3) Fix python mingw 32-bit build and package name
4) Fix gen-toolchain-wrapper.sh to not put null.o in $NDK directory
while testing for presence of dlfcn.h

Change-Id: I83aaee1310faad114f241086f3488d5842fc3e1d
433f2c4e0348d448f4e31efa93537f1784bf47b4 17-Apr-2013 Andrew Hsieh <andrewhsieh@google.com> Misc fixes for python prebuilt

1) Specify "--force" in build-host-prebuilts.sh to remove intermediate
build directory. The default "preserve" maybe harmful.
2) Fix windows 32-bit directory to ndk/prebuilt/windows (instead of
ndk/prebuilt/windows-x86)
3) Unconditionally export LDSHARED="-undefined dynamic_lookup" for darwin
otherwise undefined symbols in module may fail MacOSX's ld which
defaults to error

Change-Id: Iea1a9202f7b27f99ab8971e27004a2debea807da
c6798d0201775cd96ae85b67b7653bdc406f2599 16-Apr-2013 Lai Wei-Chih <Robert.Lai@mediatek.com> Building python for host prebuilts.

Also build python for build machine automatically.

Change-Id: I1847a3ba8f16ba987a19bb85b03f46e7263a25fe
55f7fe1583cac5ec726a4101c046eec4b231164d 11-Jan-2013 Andrew Hsieh <andrewhsieh@google.com> Push out python local patches to toolchain/python.git

See 14 CLs ended 88d9000040cfe698e8e32e071880ed8b41e11216
in toolchain/python.git

Change-Id: If115d60fd27c9daf1240eb4a1776c78d9714ef72
4ec84cccdda14ab4ebcafbc6f3200a2cd2868586 24-Jul-2012 Ray Donnelly <mingw.android@gmail.com> Fix patching, mingw-w64 build, Python build

Change-Id: If1093fc20e5be8924ccd253bdaddb5fe8ce4a5f9
e534e36be95815bdfa09756fa040acb2321a09c2 23-Jun-2012 Ray Donnelly <mingw.android@gmail.com> Add script to build Python, build-host-python.sh

Add cross compilation patches for Python version 2.7.3

Add -D__USE_MINGW_ANSI_STDIO=1 to Windows CFLAGS for gdb-with-python

Add bh_sort_systems_build_first to sort the SYSTEMS list

Add bh_list_contains (checks for entry being first in a SYSTEMS list)

Make the BH_*_TAGs more uniformly = $BH_*_OS-$BH_*_ARCH

Make the color_mode output more (Ubuntu) compatible

Updated mingw-w64 build to more recent svn release and added a patch to
allow gdb to be compiled with -D__USE_MINGW_ANSI_STDIO=1

Change-Id: I049e2d576abf0c07265cd104f44054be0325c756