From 5ad95c577a0b3ee8925ca8b7a39ce568a6a46a5b Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 27 May 2009 14:20:44 +0200 Subject: [PATCH] Force the use of 32-bit toolchain binaries on 64-bit systems. This is used to reduce the number of distributable prebuilt packages (i.e. linux-x86_64 is not needed anymore). Also fix build/tools/build-toolchain.sh to properly copy the GPL and LGPL license files into the generated prebuilt packages. Also add a .gitignore files to get less spew from 'git status' --- .../hello-jni/project/libs/armeabi/.gitignore | 1 + .../two-libs/project/libs/armeabi/.gitignore | 1 + ndk/build/host-setup.sh | 1 + ndk/build/tools/build-toolchain.sh | 49 +++++++++---------- ndk/build/tools/make-release.sh | 2 +- ndk/docs/CHANGES.TXT | 7 ++- ndk/out/.gitignore | 2 + 7 files changed, 33 insertions(+), 30 deletions(-) create mode 100644 ndk/apps/hello-jni/project/libs/armeabi/.gitignore create mode 100644 ndk/apps/two-libs/project/libs/armeabi/.gitignore create mode 100644 ndk/out/.gitignore diff --git a/ndk/apps/hello-jni/project/libs/armeabi/.gitignore b/ndk/apps/hello-jni/project/libs/armeabi/.gitignore new file mode 100644 index 000000000..bd01364ac --- /dev/null +++ b/ndk/apps/hello-jni/project/libs/armeabi/.gitignore @@ -0,0 +1 @@ +lib*.so diff --git a/ndk/apps/two-libs/project/libs/armeabi/.gitignore b/ndk/apps/two-libs/project/libs/armeabi/.gitignore new file mode 100644 index 000000000..bd01364ac --- /dev/null +++ b/ndk/apps/two-libs/project/libs/armeabi/.gitignore @@ -0,0 +1 @@ +lib*.so diff --git a/ndk/build/host-setup.sh b/ndk/build/host-setup.sh index 6926f1b39..e94944e21 100755 --- a/ndk/build/host-setup.sh +++ b/ndk/build/host-setup.sh @@ -54,6 +54,7 @@ add_config () echo "Detecting host toolchain." echo "" +force_32bit_binaries setup_toolchain create_config_mk diff --git a/ndk/build/tools/build-toolchain.sh b/ndk/build/tools/build-toolchain.sh index 75de8f973..42f727682 100755 --- a/ndk/build/tools/build-toolchain.sh +++ b/ndk/build/tools/build-toolchain.sh @@ -34,6 +34,7 @@ OPTION_HELP=no OPTION_PLATFORM= OPTION_FORCE_32=no OPTION_REBUILD=no + VERBOSE=no for opt do optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` @@ -73,9 +74,7 @@ for opt do done if [ $OPTION_HELP = "yes" ] ; then - echo "Collect files from an Android build tree and assembles a sysroot" - echo "suitable for building a standalone toolchain or be used by the" - echo "Android NDK." + echo "Rebuild the prebuilt binaries for the Android NDK toolchain." echo "" echo "options:" echo "" @@ -90,27 +89,14 @@ if [ $OPTION_HELP = "yes" ] ; then exit 0 fi -# some Linux platforms report 64-bit while they have a 32-bit userland -# so check that the compiler generates 32-bit binaries -# if it does, call force_32bit_binaries to change the value of $HOST_TAG -# -# note that this also changes HOST_CFLAGS and HOST_LDFLAGS, however, there -# is no way for the configure script in the toolchain to get these properly. -# -if [ $HOST_TAG = linux-x86_64 ] ; then - setup_toolchain - cat >$TMPC < and as part of the stable ABIs. diff --git a/ndk/out/.gitignore b/ndk/out/.gitignore new file mode 100644 index 000000000..ef2875b95 --- /dev/null +++ b/ndk/out/.gitignore @@ -0,0 +1,2 @@ +# Ignore all generated files here +*