|
54 | 54 | curl --retry 3 -sSfL https://storage.googleapis.com/git-repo-downloads/repo -O
|
55 | 55 | chmod +x repo
|
56 | 56 |
|
57 |
| - # the `repo` tool requires python3 so change the default python interpreter |
58 |
| - ln -sf python3 /usr/bin/python |
59 |
| - |
60 | 57 | # this is the minimum set of modules that are need to build bionic
|
61 | 58 | # 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 |
75 | 72 | case "${arch}" in
|
76 | 73 | 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 |
78 | 75 | ;;
|
79 | 76 | 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 |
82 | 79 | ;;
|
83 | 80 | 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 |
85 | 82 | ;;
|
86 | 83 | 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 |
88 | 85 | ;;
|
89 | 86 | esac
|
90 | 87 |
|
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 |
| - |
95 | 88 | # avoid build tests
|
96 | 89 | rm bionic/linker/tests/Android.mk bionic/tests/Android.mk bionic/benchmarks/Android.mk
|
97 | 90 |
|
|
0 commit comments