Merge "Populate BRILLO_CRASH_SERVER from the product config" am: d3b177ccb5
am: a987cc9733
* commit 'a987cc9733b412f88ba72b57833201e68055ff21':
Populate BRILLO_CRASH_SERVER from the product config
This commit is contained in:
commit
6c26b96e04
1 changed files with 5 additions and 1 deletions
|
|
@ -102,9 +102,13 @@ LOCAL_MODULE_CLASS := ETC
|
|||
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/$(OSRELEASED_DIRECTORY)
|
||||
include $(BUILD_SYSTEM)/base_rules.mk
|
||||
|
||||
# Optionally populate the BRILLO_CRASH_SERVER variable from a product
|
||||
# configuration file: brillo/crash_server.
|
||||
LOADED_BRILLO_CRASH_SERVER := $(call cfgtree-get-if-exists,brillo/crash_server)
|
||||
|
||||
# If the crash server isn't set, use a blank value. crash_sender
|
||||
# will log it as a configuration error.
|
||||
$(LOCAL_BUILT_MODULE): BRILLO_CRASH_SERVER ?= ""
|
||||
$(LOCAL_BUILT_MODULE): BRILLO_CRASH_SERVER ?= "$(LOADED_BRILLO_CRASH_SERVER)"
|
||||
$(LOCAL_BUILT_MODULE):
|
||||
$(hide)mkdir -p $(dir $@)
|
||||
echo $(BRILLO_CRASH_SERVER) > $@
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue