blob: 0f41693ce37cb8512c895942a8c3f62cd372fc5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#!/bin/sh
# Defaults
MANIFEST_REPO="${MANIFEST_REPO-git://http://android.git.kernel.org/platform/manifest.git}"
MANIFEST_BRANCH="${MANIFEST_BRANCH-master}"
MANIFEST_FILENAME="${MANIFEST_FILENAME-default.xml}"
repo init -u "${MANIFEST_REPO}" -b "${MANIFEST_BRANCH}" -m "${MANIFEST_FILENAME}"
time python -c 'import xmlrpclib, sys; print xmlrpclib.ServerProxy(sys.argv[1]).mirror(open(".repo/manifest.xml").read())' "http://${1}:8080" > temp-manifest.xml
echo "Received modified manifest"
cat temp-manifest.xml
echo ----------------------------
mv temp-manifest.xml .repo/manifest.xml
repo sync -j8
. build/envsetup.sh
# We evaluate the configuration again because envsetup.sh might well
# have stomped on some of the values in it.
set -a
eval $CONFIGURATION
set +a
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.22/
export ANDROID_JAVA_HOME=$JAVA_HOME
cpuc=`cat /proc/cpuinfo | grep processor | wc -l`
threads=$(($cpuc * 4))
if test -n "$TOOLCHAIN_URL"; then
wget $TOOLCHAIN_URL
filename=`echo $TOOLCHAIN_URL | sed -e 's/.*\/\([^/]*\)$/\1/'`
mkdir toolchain
tar -C toolchain --strip-components 1 -xf $filename
p=`find $PWD/toolchain/bin/*-gcc`
export TARGET_TOOLS_PREFIX=`echo $p | sed -e 's/-gcc$/-/'`
fi
if test -z "$TARGET_ARCH_VARIANT"; then
TARGET_ARCH_VARIANT=armv7-a-neon
fi
time -p make -j${threads} roottarball systemtarball userdatatarball CC=gcc-4.5 CXX=g++-4.5 CPP=cpp-4.5
|