diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-19 15:22:08 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-20 10:52:19 +0100 |
| commit | 90a46995a8eb1260cdbc0e7184b60a138dfca368 (patch) | |
| tree | e92653a417c239f141304d50cf2e00427f31b368 /docs/linux/setup_linux-host_android-device_arm64-kernel.md | |
| parent | 2d836b1d351fca1fcf99da0ab2718fdcc688260d (diff) | |
Makefile: fix Android builds
There are 2 known problems with current Android support:
1. It does not work with newer NDK
(happens on every NDK update).
2. Dynamic Go binaries do not start on Android emulator.
Drop special Android support and just build static linux binaries.
For context see:
https://groups.google.com/forum/#!msg/syzkaller/etg1ZJmTMzg/NYE-yjxxAQAJ
https://groups.google.com/d/msg/syzkaller/8KjCYWslTFY/1oTXn5tTAgAJ
Fixes #478
Diffstat (limited to 'docs/linux/setup_linux-host_android-device_arm64-kernel.md')
| -rw-r--r-- | docs/linux/setup_linux-host_android-device_arm64-kernel.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/linux/setup_linux-host_android-device_arm64-kernel.md b/docs/linux/setup_linux-host_android-device_arm64-kernel.md index 7d37c2ff0..a91f8f5ca 100644 --- a/docs/linux/setup_linux-host_android-device_arm64-kernel.md +++ b/docs/linux/setup_linux-host_android-device_arm64-kernel.md @@ -2,14 +2,12 @@ Prerequisites: - go1.8+ toolchain (can be downloaded from [here](https://golang.org/dl/)) - - Android NDK (tested with r15 on API24) (can be downloaded from [here](https://developer.android.com/ndk/downloads/index.html)) - + Set the `$NDK` environment variable to point at it - Android Serial Cable or [Suzy-Q](https://chromium.googlesource.com/chromiumos/platform/ec/+/master/docs/case_closed_debugging.md) device to capture console output is preferable but optional. syzkaller can work with normal USB cable as well, but that can be somewhat unreliable and turn lots of crashes into "lost connection to test machine" crashes with no additional info. - Build syzkaller ```sh -$ NDK=/path/to/android/ndk make TARGETOS=android TARGETARCH=arm64 +$ make TARGETOS=linux TARGETARCH=arm64 ``` - Create config with `"type": "adb"` and specify adb devices to use. For example: |
