summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren Baghdasaryan2018-03-07 14:27:50 -0600
committerSuren Baghdasaryan2018-03-09 13:18:53 -0600
commita92de71a51f675b054e052b4b6a444db4a22d037 (patch)
treeab3b64c31db748f24eaa07334b7c2685b6613ced /lmkd/Android.bp
parent06f75707e1bbdc551ea6ca9f3225b3c0b9fcf513 (diff)
downloadplatform-system-core-a92de71a51f675b054e052b4b6a444db4a22d037.tar.gz
platform-system-core-a92de71a51f675b054e052b4b6a444db4a22d037.tar.xz
platform-system-core-a92de71a51f675b054e052b4b6a444db4a22d037.zip
lmkd: Introduce liblmkd_utils for communicating with lmkd process
(cherry pick from commit 0f1005180513e880bf7c90a3f2c2bf1a36aa1406) A number of tools and tests require communication with lmkd. In order to avoid code duplication liblmkd_utils implements functions commonly used when interacting with lmkd process. Isolate communication protocol details into lmkd.h Bug: 63631020 Change-Id: Id840983d55b7db60013d52dee0c3187943811822 Merged-In: Id840983d55b7db60013d52dee0c3187943811822 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'lmkd/Android.bp')
-rw-r--r--lmkd/Android.bp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lmkd/Android.bp b/lmkd/Android.bp
index 76d308a3c..d172755bd 100644
--- a/lmkd/Android.bp
+++ b/lmkd/Android.bp
@@ -6,6 +6,7 @@ cc_binary {
6 "liblog", 6 "liblog",
7 "libcutils", 7 "libcutils",
8 ], 8 ],
9 local_include_dirs: ["include"],
9 cflags: ["-Werror"], 10 cflags: ["-Werror"],
10 11
11 init_rc: ["lmkd.rc"], 12 init_rc: ["lmkd.rc"],
@@ -18,3 +19,17 @@ cc_binary {
18 }, 19 },
19 }, 20 },
20} 21}
22
23cc_library_static {
24 name: "liblmkd_utils",
25 srcs: ["liblmkd_utils.c"],
26 shared_libs: [
27 "libcutils",
28 ],
29 export_include_dirs: ["include"],
30 cppflags: [
31 "-g",
32 "-Wall",
33 "-Werror",
34 ]
35}