You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eng/common/cross/build-android-rootfs.sh
+26-43Lines changed: 26 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
#!/usr/bin/env bash
2
2
set -e
3
-
__NDK_Version=r14
3
+
__NDK_Version=r21
4
4
5
5
usage()
6
6
{
@@ -16,11 +16,11 @@ usage()
16
16
echo.
17
17
echo"By default, the NDK will be downloaded into the cross/android-rootfs/android-ndk-$__NDK_Version directory. If you already have an NDK installation,"
18
18
echo"you can set the NDK_DIR environment variable to have this script use that installation of the NDK."
19
-
echo"By default, this script will generate a file, android_platform, in the root of the ROOTFS_DIR directory that contains the RID for the supported and tested Android build: android.21-arm64. This file is to replace '/etc/os-release', which is not available for Android."
19
+
echo"By default, this script will generate a file, android_platform, in the root of the ROOTFS_DIR directory that contains the RID for the supported and tested Android build: android.28-arm64. This file is to replace '/etc/os-release', which is not available for Android."
20
20
exit 1
21
21
}
22
22
23
-
__ApiLevel=21# The minimum platform for arm64 is API level 21
23
+
__ApiLevel=28# The minimum platform for arm64 is API level 21 but the minimum version that support glob(3) is 28. See $ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/glob.h
24
24
__BuildArch=arm64
25
25
__AndroidArch=aarch64
26
26
__AndroidToolchain=aarch64-linux-android
@@ -54,12 +54,11 @@ done
54
54
55
55
# Obtain the location of the bash script to figure out where the root of the repo is.
0 commit comments