aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ginda <rginda@chromium.org>2015-08-14 16:38:44 -0700
committerRobert Ginda <rginda@chromium.org>2015-08-14 16:46:08 -0700
commite55ece9ca0c4d2a322aba5a97bc80ba9e628a94c (patch)
tree7af964834d9cc151c3dab2583e5428defc8d0f87
parentee517359c88cd3ac56eb1090dde70cf9d82fd876 (diff)
downloadavahi-e55ece9ca0c4d2a322aba5a97bc80ba9e628a94c.tar.gz
Add args, inet group, and a .PHONY target for our rc file
Add args to the avahi-daemon: --syslog: logs to syslog instead of STDERR --no-drop-root: We're not starting as root, so there's nothing to drop. Without this option, avahi complains that it wasn't started as root and exits. Add ourselves to the inet group so we can internet. Add a .PHONY target so the rc file is always regenerated. Otherwise, changes to the makefile that would invalidate previous build output would be ignored. Bug: 22827641 Change-Id: I727481f2bcf88908b7e25fbbe37a3421c33c5efe
-rw-r--r--avahi-daemon/Android.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/avahi-daemon/Android.mk b/avahi-daemon/Android.mk
index 9ad9395..2abb8f2 100644
--- a/avahi-daemon/Android.mk
+++ b/avahi-daemon/Android.mk
@@ -109,6 +109,8 @@ LOCAL_MODULE_PATH := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_INITRCD)
include $(BUILD_SYSTEM)/base_rules.mk
+.PHONY: $(LOCAL_BUILT_MODULE)
$(LOCAL_BUILT_MODULE): $(INITRC_TEMPLATE)
- $(call generate-initrc-file,$(LOCAL_INIT_SERVICE))
+ $(call generate-initrc-file,$(LOCAL_INIT_SERVICE),\
+ --syslog --no-drop-root,inet)
endif