From 8b0ca98ef399ab838cf89a80ee5e7c9e05b573e4 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 31 Dec 2013 15:03:12 +0100 Subject: [PATCH] README: add build instructions for Android --- NEWS | 2 ++ README.md | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/NEWS b/NEWS index f6114604..796e8016 100644 --- 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: diff --git a/README.md b/README.md index d2255ff0..513beebd 100644 --- 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 ----- -- 2.39.5