Skip to content

Commit 39107c0

Browse files
committed
do not symlink python interpreter; call repo w/ python3
1 parent d85ed8d commit 39107c0

File tree

1 file changed

+18
-25
lines changed

1 file changed

+18
-25
lines changed

docker/android-system.sh

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,44 +54,37 @@ EOF
5454
curl --retry 3 -sSfL https://storage.googleapis.com/git-repo-downloads/repo -O
5555
chmod +x repo
5656

57-
# the `repo` tool requires python3 so change the default python interpreter
58-
ln -sf python3 /usr/bin/python
59-
6057
# this is the minimum set of modules that are need to build bionic
6158
# this was created by trial and error
62-
./repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.0_r1
63-
./repo sync -c bionic
64-
./repo sync -c build
65-
./repo sync -c external/compiler-rt
66-
./repo sync -c external/jemalloc
67-
./repo sync -c external/libcxx
68-
./repo sync -c external/libcxxabi
69-
./repo sync -c external/libselinux
70-
./repo sync -c external/mksh
71-
./repo sync -c external/openssl
72-
./repo sync -c external/stlport
73-
./repo sync -c prebuilts/clang/linux-x86/host/3.5
74-
./repo sync -c system/core
59+
python3 ./repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.0_r1
60+
python3 ./repo sync -c bionic
61+
python3 ./repo sync -c build
62+
python3 ./repo sync -c external/compiler-rt
63+
python3 ./repo sync -c external/jemalloc
64+
python3 ./repo sync -c external/libcxx
65+
python3 ./repo sync -c external/libcxxabi
66+
python3 ./repo sync -c external/libselinux
67+
python3 ./repo sync -c external/mksh
68+
python3 ./repo sync -c external/openssl
69+
python3 ./repo sync -c external/stlport
70+
python3 ./repo sync -c prebuilts/clang/linux-x86/host/3.5
71+
python3 ./repo sync -c system/core
7572
case "${arch}" in
7673
arm)
77-
./repo sync prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8
74+
python3 ./repo sync prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8
7875
;;
7976
arm64)
80-
./repo sync prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8
81-
./repo sync prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
77+
python3 ./repo sync prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8
78+
python3 ./repo sync prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
8279
;;
8380
x86)
84-
./repo sync prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.8
81+
python3 ./repo sync prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.8
8582
;;
8683
x86_64)
87-
./repo sync prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.8
84+
python3 ./repo sync prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.8
8885
;;
8986
esac
9087

91-
# revert default python interpreter; the code we are going to build expects
92-
# `/usr/bin/python` to be a python2 interpreter
93-
ln -sf python2 /usr/bin/python
94-
9588
# avoid build tests
9689
rm bionic/linker/tests/Android.mk bionic/tests/Android.mk bionic/benchmarks/Android.mk
9790

0 commit comments

Comments
 (0)