ubiquiti / dropbear-android

Dropbear version 2018.76 cross-compiled to run on Android with password authentication
44 stars 28 forks source link

Compilation doesn't start with android-ndk-r18b arm64 #3

Open solamour opened 5 years ago

solamour commented 5 years ago

1) Download Android NDK r18b.

2) Create stand-alone toolchain. For example, ~/android-ndk-r18b/build/tools/make_standalone_toolchain.py --arch arm64 -v --install-dir ~/android-toolchain64.

3) export TOOLCHAIN=~/android-toolchain64

4) ./build-dropbear-android.sh. The build script silently exits after Generating required files....

Upon closer look, modifying variables in build-dropbear-android.sh finished the build.

HOST=aarch64-linux-android
COMPILER=${TOOLCHAIN}/bin/aarch64-linux-android-gcc
STRIP=${TOOLCHAIN}/bin/aarch64-linux-android-strip