akwizgran created page: tor build process

akwizgran
2016-03-15 19:49:20 +00:00
parent a0b526ae64
commit 11bc1542f7

@@ -1,5 +1,5 @@
* Install the [Android NDK](http://developer.android.com/tools/sdk/ndk/) * Install the [Android NDK](http://developer.android.com/tools/sdk/ndk/)
* `export ANDROID_NDK_HOME=/wherever/you/downloaded/the/ndk` * `export ANDROID_NDK_HOME=/path/to/ndk`
* `git clone https://git.torproject.org/orbot.git` * `git clone https://git.torproject.org/orbot.git`
* `cd orbot` * `cd orbot`
* `git submodule update --init external/libevent` * `git submodule update --init external/libevent`
@@ -11,44 +11,41 @@
* `git checkout OpenSSL_1_0_2g` (or latest stable release) * `git checkout OpenSSL_1_0_2g` (or latest stable release)
* `cd ../tor` * `cd ../tor`
* `git checkout tor-0.2.7.6` (or latest stable release) * `git checkout tor-0.2.7.6` (or latest stable release)
* `patch -p1 < /path/to/briar/patches/tor.patch`
* `cd ../..` * `cd ../..`
ARM binary with PIE (Android API version 16+): ARM binary with PIE (Android API version 16+):
* `unset APP_ABI` * `unset APP_ABI`
* `unset NDK_PLATFORM_LEVEL` * `unset NDK_PLATFORM_LEVEL`
* `unset PIEFLAGS` * `unset PIEFLAGS`
* `make -C external tor` * `make -C external clean tor`
* `mv external/bin/tor .` * `mv external/bin/tor .`
* `strip tor` (requires binutils-multiarch) * `strip tor` (requires binutils-multiarch)
* `zip tor-arm-pie.zip tor` * `zip tor-arm-pie.zip tor`
* `make -C external clean`
ARM binary without PIE (Android API version 9-15): ARM binary without PIE (Android API version 9-15):
* `unset APP_ABI` * `unset APP_ABI`
* `export NDK_PLATFORM_LEVEL=9` * `export NDK_PLATFORM_LEVEL=9`
* `export PIEFLAGS=` * `export PIEFLAGS=`
* `make -C external tor` * `make -C external clean tor`
* `mv external/bin/tor .` * `mv external/bin/tor .`
* `strip tor` (requires binutils-multiarch) * `strip tor` (requires binutils-multiarch)
* `zip tor-arm.zip tor` * `zip tor-arm.zip tor`
* `make -C external clean`
x86 binary with PIE (Android API version 16+): x86 binary with PIE (Android API version 16+):
* `export APP_ABI=x86` * `export APP_ABI=x86`
* `unset NDK_PLATFORM_LEVEL` * `unset NDK_PLATFORM_LEVEL`
* `unset PIEFLAGS` * `unset PIEFLAGS`
* `make -C external tor` * `make -C external clean tor`
* `mv external/bin/tor .` * `mv external/bin/tor .`
* `strip tor` (requires binutils-multiarch) * `strip tor` (requires binutils-multiarch)
* `zip tor-x86-pie.zip tor` * `zip tor-x86-pie.zip tor`
* `make -C external clean`
x86 binary without PIE (Android API version 9-15): x86 binary without PIE (Android API version 9-15):
* `export APP_ABI=x86` * `export APP_ABI=x86`
* `export NDK_PLATFORM_LEVEL=9` * `export NDK_PLATFORM_LEVEL=9`
* `export PIEFLAGS=` * `export PIEFLAGS=`
* `make -C external tor` * `make -C external clean tor`
* `mv external/bin/tor .` * `mv external/bin/tor .`
* `strip tor` (requires binutils-multiarch) * `strip tor` (requires binutils-multiarch)
* `zip tor-x86.zip tor` * `zip tor-x86.zip tor`
* `make -C external clean`