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_ubuntu-host_android-device_arm32-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_ubuntu-host_android-device_arm32-kernel.md')
| -rw-r--r-- | docs/linux/setup_ubuntu-host_android-device_arm32-kernel.md | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/docs/linux/setup_ubuntu-host_android-device_arm32-kernel.md b/docs/linux/setup_ubuntu-host_android-device_arm32-kernel.md index 3de7c2148..8ff301c26 100644 --- a/docs/linux/setup_ubuntu-host_android-device_arm32-kernel.md +++ b/docs/linux/setup_ubuntu-host_android-device_arm32-kernel.md @@ -21,7 +21,6 @@ Install Go as follows: ``` bash wget https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz tar -xf go1.9.2.linux-amd64.tar.gz -mv go goroot export PATH=`pwd`/go/bin:$PATH mkdir gopath export GOPATH=`pwd`/gopath @@ -31,7 +30,7 @@ export GOPATH=`pwd`/gopath ### Initialize a working directory and set up environment variables -Create a working directory. Also make sure GOROOT, GOPATH, and optionally NDKARM are defined and exported as instructed earlier. +Create a working directory. Also make sure GOROOT, GOPATH are defined and exported as instructed earlier. ``` bash go get -u -d github.com/google/syzkaller/... @@ -45,10 +44,6 @@ Run make. ``` make TARGETOS=linux TARGETARCH=arm ``` -As an alternative, is possible to use the Android NDK toolchain to build syz-executor. -To do that, one way is to create an Android.mk file and and Application.mk file -and to use the Android NDK's ndk-build program to build syz-executor from executor/executor_linux.cc. The clang cross-compiler, which is -part of the Android NDK, is going to be needed for a successful build. ### Create a manager configuration file |
