Skip to content
Snippets Groups Projects
Commit e680f358 authored by Will Drewry's avatar Will Drewry
Browse files

Populate BRILLO_CRASH_SERVER from the product config

Using cfgtree.mk, this change adds support to load the
crash server URL directly from a file in the product tree
during the build.

BUG=25343470
TEST=build image, check in etc for the populated osrelease.d file

Change-Id: I6342a829936809b9553a32be7bc58285c86dd732
parent 86600350
Branches
Tags
No related merge requests found
...@@ -102,9 +102,13 @@ LOCAL_MODULE_CLASS := ETC ...@@ -102,9 +102,13 @@ LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/$(OSRELEASED_DIRECTORY) LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/$(OSRELEASED_DIRECTORY)
include $(BUILD_SYSTEM)/base_rules.mk 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 # If the crash server isn't set, use a blank value. crash_sender
# will log it as a configuration error. # 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): $(LOCAL_BUILT_MODULE):
$(hide)mkdir -p $(dir $@) $(hide)mkdir -p $(dir $@)
echo $(BRILLO_CRASH_SERVER) > $@ echo $(BRILLO_CRASH_SERVER) > $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment