]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
README: add build instructions for Android
authorVincent Bernat <bernat@luffy.cx>
Tue, 31 Dec 2013 14:03:12 +0000 (15:03 +0100)
committerVincent Bernat <bernat@luffy.cx>
Tue, 31 Dec 2013 14:05:33 +0000 (15:05 +0100)
NEWS
README.md

diff --git a/NEWS b/NEWS
index f6114604f10d016768b9ce6e98021da22f67af52..796e8016df00992ee513e89402e83d011eff140c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ lldpd (0.7.8)
     + Don't hard-code default values for system name, system
       description and port description. When the field is not present,
       just don't display it.
+  * Features:
+    + Android support
 
 lldpd (0.7.7)
   * Features:
index d2255ff0e042ad7fe00e42ea682d0a78bce6c54d..513beebdef72b5d5c1612b9ce312498a535316ba 100644 (file)
--- a/README.md
+++ b/README.md
@@ -102,6 +102,28 @@ If you don't follow the above procedures, you will have to create the
 user/group `_lldpd`. Have a look at how this is done in
 `osx/scripts/postinstall`.
 
+Installation (Android)
+----------------------
+
+You need to download [Android NDK][]. Once unpacked, you can generate
+a toolchain using the following command:
+
+    ./build/tools/make-standalone-toolchain.sh \
+        --platform=android-9 \
+        --arch=arm \
+        --install-dir=../android-toolchain
+    export TOOLCHAIN=$PWD/../android-toolchain
+
+Then, you can build `lldpd` with the following commands:
+
+    mkdir build && cd build
+    export PATH=$PATH:$TOOLCHAIN/bin
+    ../configure \
+        --host=arm-linux-androideabi \
+        --with-sysroot=$TOOLCHAIN/sysroot
+
+[Android NDK]: http://developer.android.com/tools/sdk/ndk/index.html
+
 Usage
 -----