aboutsummaryrefslogtreecommitdiff
path: root/README.android
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2015-07-01 13:36:18 -0700
committerChristopher Wiley <wiley@google.com>2015-07-01 14:49:55 -0700
commite867981d427db5e0b860d67485838e1f9e8c37da (patch)
tree1f219cb08e744724189858dbe03b22f29474f1e4 /README.android
parent3f8dfd75897939837a588807231314ff45d813ab (diff)
downloadlibevent-e867981d427db5e0b860d67485838e1f9e8c37da.tar.gz
Add libevent-2.0.22-stable code
Existing NOTICE and MODULE_LICENSE_BSD_LIKE files describe this code. Removed the following directories to reduce size: WIN32-Code/* compat/* m4/* sample/* test/* Bug: 22229743 Change-Id: I1f32e0e7467edaa3c5ea5991b5bbec2db50762ff
Diffstat (limited to 'README.android')
-rw-r--r--README.android31
1 files changed, 31 insertions, 0 deletions
diff --git a/README.android b/README.android
new file mode 100644
index 0000000..68ace42
--- /dev/null
+++ b/README.android
@@ -0,0 +1,31 @@
+This is libevent-2.0.22-stable from http://libevent.org/.
+
+No changes were made apart from the following:
+
+* copied LICENSE to NOTICE
+* added empty MODULE_LICENSE_BSD_LIKE
+* Removed directories:
+ - WIN32-Code
+ - compat
+ - m4
+ - sample
+ - test
+
+
+To uprev this project, you'll likely need to reverse engineer the autotools
+generated makefiles again. This is the recipe I used:
+
+BRANCH_ROOT=/usr/local/google/home/wiley/mnc-dev
+PATH="${BRANCH_ROOT}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin:${PATH}"
+NDK_ROOT="${BRANCH_ROOT}/prebuilts/ndk/current/platforms/android-21/arch-arm64/usr"
+
+./configure --host=arm --build=`./config.guess` \
+ CC=arm-eabi-gcc \
+ CPPFLAGS="-I${NDK_ROOT}/usr/include" \
+ CFLAGS="-nostdlib
+ -Wl,-rpath-link=${BRANCH_ROOT}/out/target/product/hammerhead/obj/lib
+ -L${BRANCH_ROOT}/out/target/product/hammerhead/obj/lib
+ -I${BRANCH_ROOT}/prebuilts/ndk/current/platforms/android-21/arch-arm/usr/include"
+ LIBS="-lc "
+
+Note that I built hammerhead first and used prebuilts from the most recent NDK.