Skip to content

[android] adb_push_build_products.py support for aarch64. #19475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion utils/android/adb_push_built_products/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ def argument_parser():
help='The path to an Android NDK. If specified, the libc++ library '
'in that NDK will be pushed to the device.',
default=os.getenv('ANDROID_NDK_HOME', None))
parser.add_argument(
'-a', '--destination-arch',
help='The architecture of the host device. Used to determine the '
'right library versions to send to the device.',
choices=['armv7', 'aarch64'],
default='armv7')
return parser


Expand Down Expand Up @@ -75,7 +81,10 @@ def main():
'cxx-stl',
'llvm-libc++',
'libs',
'armeabi-v7a',
{
'armv7': 'armeabi-v7a',
'aarch64': 'arm64-v8a',
}[args.destination_arch],
'libc++_shared.so')
_push(libcpp, args.destination)

Expand Down