OSDN Git Service

add battery polling property
[android-x86/device-ibm-thinkpad.git] / patches / prebuilt.patch
1 diff --git a/linux-x86/toolchain/i686-android-linux-4.4.3/build-toolchain.sh b/linux-x86/toolchain/i686-android-linux-4.4.3/build-toolchain.sh
2 index e61172a..98918e0 100755
3 --- a/linux-x86/toolchain/i686-android-linux-4.4.3/build-toolchain.sh
4 +++ b/linux-x86/toolchain/i686-android-linux-4.4.3/build-toolchain.sh
5 @@ -126,24 +126,11 @@ download_toolchain_sources ()
6      # because it removes all .info files, which breaks the ToT source
7      # build as of 2011-03-03
8      #
9 +    # ==> seems to work fine (2012-01-28), so do use the correct script
10 +
11      echo "Download toolchain patches to: $TOOLCHAIN_SRC_DIR"
12 -    GIT_PREFIX=git://android.git.kernel.org/toolchain
13 -    for PROJECT in build binutils gcc gdb mpfr gmp gold; do
14 -        PROJECT_DIR="$TOOLCHAIN_SRC_DIR/$PROJECT"
15 -        PROJECT_GIT="$GIT_PREFIX/$PROJECT.git"
16 -        echo "$PROJECT: Cleaning"
17 -        rm -rf $PROJECT_DIR
18 -        echo "$PROJECT: Downloading sources from: $PROJECT_GIT"
19 -        (git clone $PROJECT_GIT $PROJECT_DIR) > /dev/null 2>&1
20 -        fail_panic "$PROJECT: Could not git clone!!"
21 -        if [ -n "$GIT_DATE" ] ; then
22 -            echo "$PROJECT: Switching to sources for date '$GIT_DATE'"
23 -            (cd $PROJECT_DIR &&
24 -             REVISION=`git rev-list -n 1 --until="$GIT_DATE" HEAD` &&
25 -             run git checkout $REVISION) > /dev/null 2>&1
26 -            fail_panic "$PROJECT: Could not checkout?"
27 -        fi
28 -    done
29 +
30 +    ndk/build/tools/download-toolchain-sources.sh "$TOOLCHAIN_SRC_DIR"
31      fail_panic "Could not download toolchain sources!"
32  }
33