diff options
author | Andy Doan <andy.doan@linaro.org> | 2012-03-13 12:42:54 -0500 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2012-03-13 12:42:54 -0500 |
commit | 781c4e8204b0d188336a932de22c7182498e97eb (patch) | |
tree | c0a7fe294ea9d67c58a8cf7a82cf368ab07f1b2a /build-scripts/create-user-build-script | |
parent | 8d689a78441e6ea91d0332c513becd548526cbb5 (diff) |
handle AOSP build where the prebuilt toolchain is used
Diffstat (limited to 'build-scripts/create-user-build-script')
-rwxr-xr-x | build-scripts/create-user-build-script | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script index aff9c10..427f88d 100755 --- a/build-scripts/create-user-build-script +++ b/build-scripts/create-user-build-script @@ -92,12 +92,21 @@ export MANIFEST_REPO=${MANIFEST_REPO} export MANIFEST_BRANCH=${MANIFEST_BRANCH} export MANIFEST_FILENAME=${MANIFEST_FILENAME} export TARGET_PRODUCT=${TARGET_PRODUCT} -export TOOLCHAIN_URL=${TOOLCHAIN_URL} -export TARGET_TOOLS_PREFIX=android-toolchain-eabi/bin/arm-linux-androideabi- export TARGET_SIMULATOR=false export CPUS=\`grep -c processor /proc/cpuinfo\` +EOF + if [ -n "$TOOLCHAIN_URL" ] ; then + cat <<EOF +export TOOLCHAIN_URL=${TOOLCHAIN_URL} +export TARGET_TOOLS_PREFIX=android-toolchain-eabi/bin/arm-linux-androideabi- EOF + else + cat <<EOF +export TARGET_TOOLS_PREFIX=prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi- + +EOF + fi } git_configs_method() @@ -131,11 +140,16 @@ if [ \${EXACT} -eq 1 ] ; then fi ./repo sync +EOF + + if [ -n "$TOOLCHAIN_URL" ] ; then + cat <<EOF # download the toolchain to build with curl -k \${TOOLCHAIN_URL} > toolchain.tar.bz2 tar -jxf toolchain.tar.bz2 rm toolchain.tar.bz2 EOF + fi if [ -n "$SOURCE_OVERLAY" ]; then cat <<EOF |