From 0085f310cd169bf9832f4b47751dc8ea406b1d58 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Thu, 7 May 2009 18:18:54 -0700 Subject: [PATCH] Update the NDK docs to reflect the changes from 2 download (NDK+toolchain) to a single download. --- ndk/build/host-setup.sh | 8 ++++---- ndk/docs/INSTALL.TXT | 25 +++++------------------- ndk/docs/PREBUILTS.TXT | 43 ----------------------------------------- 3 files changed, 9 insertions(+), 67 deletions(-) delete mode 100644 ndk/docs/PREBUILTS.TXT diff --git a/ndk/build/host-setup.sh b/ndk/build/host-setup.sh index 4d46fd786..4898067ad 100755 --- a/ndk/build/host-setup.sh +++ b/ndk/build/host-setup.sh @@ -76,7 +76,7 @@ add_config "HOST_ARFLAGS := $ARFLAGS" TOOLCHAINS=arm-eabi-4.2.1 EXT="" -[[ "$OS" == "Windows_NT" ]] && EXT=".exe" +[ "Windows_NT" -eq "$OS" ] && EXT=".exe" for tc in $TOOLCHAINS; do echo "Toolchain : Checking for $tc prebuilt binaries" @@ -85,10 +85,10 @@ for tc in $TOOLCHAINS; do if [ -z $COMPILERS ] ; then echo "" echo "ERROR:" - echo "It seems you do not have the prebuilt $tc toolchain binaries." + echo "It seems you do not have the correct $tc toolchain binaries." echo "Please go to the official Android NDK web site and download the" - echo "appropriate toolchain package for your platform ($HOST_TAG)." - echo "See http://developer.android.com/ndk/1.5/index.html" + echo "appropriate NDK package for your platform ($HOST_TAG)." + echo "See http://developer.android.com/sdk/index.html" echo "" echo "ABORTING." echo "" diff --git a/ndk/docs/INSTALL.TXT b/ndk/docs/INSTALL.TXT index 71ecb26bf..f7f474e7d 100644 --- a/ndk/docs/INSTALL.TXT +++ b/ndk/docs/INSTALL.TXT @@ -44,29 +44,14 @@ On Windows, you will need to install a recent release of Cygwin to use the NDK. See http://www.cygwin.com for instructions. -II. Download prebuilt cross-toolchain binaries: +II. Preparing your installation prebuilt cross-toolchain binaries: ----------------------------------------------- -Certain Android NDK packages do not include the host-specific binaries of the -cross-toolchain(s) required to build ARM binaries on Linux, OS X or Windows. +After installing and unarchiving the NDK, you will need to run the following +command from the root folder: -Check whether build/prebuilt/ exists and is populated, where -is one of the following: + build/host-setup.sh - linux-x86 - linux-x86_64 - darwin-x86 - windows - -If not, you might need to download a package named: - - android-ndk-prebuilt--.tar.bz2 - -And unpack it in the top-level NDK directory. For example, on 32-bit Linux: - - cd $NDK - tar xjf android-ndk-prebuilt-linux-x86-.tar.bz2 - -Please read docs/PREBUILTS.TXT to lean how to get the prebuilt packages. +This will test your setup and make sure the NDK can work properly. diff --git a/ndk/docs/PREBUILTS.TXT b/ndk/docs/PREBUILTS.TXT deleted file mode 100644 index a51f590f8..000000000 --- a/ndk/docs/PREBUILTS.TXT +++ /dev/null @@ -1,43 +0,0 @@ -The Android NDK relies on prebuilt platform-specific binaries of the -GCC-based cross-toolchain(s) used to generate ARM binaries. - -At the moment, only one toolchain, named "arm-eabi-4.2.1" is supported, -its sources being available in an archive named: - - android-ndk-toolchain-.tar.bz2 - -XXX: Upload this to a public site like code.google.com/p/android - Note: this is over 100MB in size. - -Prebuilt versions of the toolchain binaries are available for a variety -of supported platforms, and are generally named: - - android-ndk-prebuilt--.tar.bz2 - -Where can be one of the following: - - linux-x86 - linux-x86_64 - darwin-x86 - windows - -XXX: Upload these prebuilt packages to code.google.com/p/android or - another similar site. Note: each one is about 30MB in size. - -To install them, simply unpack them from the top-level NDK directory. -For example, under 32-bit Linux: - - cd $NDK - tar xjf android-ndk-prebuilt-20090323-linux-x86.tar.bz2 - -Otherwise, it is possible to rebuild the toolchain from sources with the -help of the 'build/tools/build-toolchain.sh' script. It can be used to -generate a complete prebuilt package for other platforms. - -NOTE: The uncompressed toolchain sources are over 1 GB and make take - several hours to compile, depending on your machine. - -Note that, at the moment, the toolchain binaries are the only Android NDK -files that are platform-specific. The rest being shell scripts and GNU -Makefiles that should be portable to other Unix-like development -environments.