Skip to content

Commit ec65c4b

Browse files
committed
Add support for Android 10.
1 parent 96c51ce commit ec65c4b

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

docker/android-system.sh

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ EOF
9696
python3 ./repo sync -c external/golang-protobuf
9797
fi
9898
python3 ./repo sync -c external/jemalloc
99+
if [[ "${major_version}" -ge 10 ]]; then
100+
python3 ./repo sync -c external/jemalloc_new
101+
fi
99102
python3 ./repo sync -c external/libcxx
100103
python3 ./repo sync -c external/libcxxabi
101104
python3 ./repo sync -c external/libunwind
@@ -127,6 +130,8 @@ EOF
127130
python3 ./repo sync -c prebuilts/misc
128131
python3 ./repo sync -c prebuilts/sdk
129132
if [[ "${major_version}" -ge 10 ]]; then
133+
python3 ./repo sync -c external/icu
134+
python3 ./repo sync -c prebuilts/ndk
130135
python3 ./repo sync -c prebuilts/vndk/v28
131136
fi
132137
python3 ./repo sync -c system/core
@@ -135,18 +140,18 @@ EOF
135140
python3 ./repo sync -c system/tools/hidl
136141
fi
137142
if [[ "${major_version}" -ge 10 ]]; then
138-
python3 ./repo sync -c system/libvintf
143+
python3 ./repo sync -c external/libxml2
139144
python3 ./repo sync -c system/sepolicy
140145
python3 ./repo sync -c system/tools/xsdc
141146
fi
142147

143148
case "${arch}" in
144-
arm)
145-
python3 ./repo sync "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-${gcc_version}"
146-
;;
147-
arm64)
149+
arm|arm64)
150+
python3 ./repo sync -c external/arm-optimized-routines
148151
python3 ./repo sync "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-${gcc_version}"
149-
python3 ./repo sync "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-${gcc_version}"
152+
if [[ "${arch}" == "arm64" ]]; then
153+
python3 ./repo sync "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-${gcc_version}"
154+
fi
150155
;;
151156
x86)
152157
python3 ./repo sync "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-${gcc_version}"
@@ -165,14 +170,15 @@ EOF
165170
rm bionic/tests/libs/Android.bp
166171
rm bionic/tests/headers/Android.bp
167172
rm bionic/tests/headers/posix/Android.bp
168-
rm system/libvintf/xsd/compatibilityMatrix/vts/Android.mk
169-
rm system/libvintf/xsd/compatibilityMatrix/vts/Android.bp
170173

171174
sed -i -z -e 's/cc_test {.*}//g' bionic/libc/malloc_debug/Android.bp
172175
sed -i -z -e 's/cc_test {.*}//g' bionic/libc/malloc_hooks/Android.bp
173-
sed -i -z -e 's/cc_test_host {.*}//g' bionic/tools/relocation_packer/Android.bp
174-
# TODO(ahuszagh) Need to remove the necessary tests that fail.
175-
#python3 ./repo sync -c test/vts
176+
if [[ "${major_version}" -le 9 ]]; then
177+
sed -i -z -e 's/cc_test_host {.*}//g' bionic/tools/relocation_packer/Android.bp
178+
fi
179+
if [[ "${major_version}" -ge 10 ]]; then
180+
sed -i -z -e 's/cc_test {.*}//g' bionic/linker/Android.bp
181+
fi
176182
set -e
177183

178184
export ALLOW_MISSING_DEPENDENCIES=true

0 commit comments

Comments
 (0)