summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2014-02-20 16:59:07 -0600
committerMark Salyzyn2014-02-28 15:49:11 -0600
commit154f4608aac6218af0e25c98b71d0803278c047e (patch)
treed324e05b44b362cbc0a95033ad1c06a0438bd523 /liblog/Android.mk
parent1114f1806521b2a6447b7c68934e4f3c29b60cb5 (diff)
downloadplatform-system-core-154f4608aac6218af0e25c98b71d0803278c047e.tar.gz
platform-system-core-154f4608aac6218af0e25c98b71d0803278c047e.tar.xz
platform-system-core-154f4608aac6218af0e25c98b71d0803278c047e.zip
liblog: enable logging to logd.
* Modify liblog to send all messages to the new syslog user space daemon. Original-Change-Id: I0ce439738cd921efb2db4c1d6a289a96bdbc8bc2 Original-Change-Id: If4eb0d09409f7e9be3eb4bb7017073dc7e931ab4 Signed-off-by: Nick Kralevich <nnk@google.com> * Add a TARGET_USES_LOGD make flag for BoardConfig.mk to manage whether logd is enabled for use or not. * rename syslog to logd to avert confusion with bionic syslog * Add fake log support back in * prefilter for logging messages from logd * Fill in timestamps at logging source * update abstract log reader * switch from using suffix for id to v3 format * log a message when creating devices that a deprecated interface is being utilized. Signed-off-by: Mark Salyzyn <salyzyn@google.com> (cherry pick from commit 099e2c1f6f706a8600c1cef74cce9066fc315480) Change-Id: I47929a5432977a1d7235267a435cec0a7d6bd440
Diffstat (limited to 'liblog/Android.mk')
-rw-r--r--liblog/Android.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/liblog/Android.mk b/liblog/Android.mk
index 0d6c970bf..174ca55ab 100644
--- a/liblog/Android.mk
+++ b/liblog/Android.mk
@@ -16,7 +16,11 @@
16LOCAL_PATH := $(my-dir) 16LOCAL_PATH := $(my-dir)
17include $(CLEAR_VARS) 17include $(CLEAR_VARS)
18 18
19ifeq ($(TARGET_USES_LOGD),true)
19liblog_sources := logd_write.c 20liblog_sources := logd_write.c
21else
22liblog_sources := logd_write_kern.c
23endif
20 24
21# some files must not be compiled when building against Mingw 25# some files must not be compiled when building against Mingw
22# they correspond to features not used by our host development tools 26# they correspond to features not used by our host development tools
@@ -42,7 +46,11 @@ else
42endif 46endif
43 47
44liblog_host_sources := $(liblog_sources) fake_log_device.c 48liblog_host_sources := $(liblog_sources) fake_log_device.c
49ifeq ($(TARGET_USES_LOGD),true)
45liblog_target_sources = $(liblog_sources) log_read.c 50liblog_target_sources = $(liblog_sources) log_read.c
51else
52liblog_target_sources = $(liblog_sources) log_read_kern.c
53endif
46 54
47# Shared and static library for host 55# Shared and static library for host
48# ======================================================== 56# ========================================================