Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6296cf7d authored by Troy Wang's avatar Troy Wang
Browse files

Include logpersist.start into the package based on a product var

logpersist.start will be included in the package if
PRODUCT_ENABLE_LOGCAT_PERSISTENCE is set to true.

PRODUCT_ENABLE_LOGCAT_PERSISTENCE will be set to true in userdebug
builds, eng builds, and some certain user builds.

The product variable is also passed to soong config.

Bug: 409646559
Test: m dist
Test: Verified with a custom brya build
Change-Id: I1834c8cf3100504b866d66ba705584268f6d341c
parent a8ade6b0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -610,6 +610,8 @@ $(call end_json_map)

$(call add_json_list, ProductHostPackages, $(PRODUCT_HOST_PACKAGES))

$(call add_json_bool, ProductEnableLogcatPersistence, $(PRODUCT_ENABLE_LOGCAT_PERSISTENCE))

$(call add_json_bool, EnforceSELinuxTrebleLabeling, $(filter true,$(PRODUCT_ENFORCE_SELINUX_TREBLE_LABELING)))

$(call json_end)
+11 −0
Original line number Diff line number Diff line
@@ -554,6 +554,17 @@ PRODUCT_PACKAGES_DEBUG := \
    unwind_reg_info \
    unwind_symbols \

# Enable logcat persistence based on the release config flag.
ifeq ($(RELEASE_ENABLE_LOGCAT_PERSISTENCE),true)
  PRODUCT_ENABLE_LOGCAT_PERSISTENCE := $(RELEASE_ENABLE_LOGCAT_PERSISTENCE)
endif

# Include logpersist build target if logcat persistence is enabled.
ifeq ($(PRODUCT_ENABLE_LOGCAT_PERSISTENCE),true)
    PRODUCT_PACKAGES += \
        logpersist.start
endif

# The set of packages whose code can be loaded by the system server.
PRODUCT_SYSTEM_SERVER_APPS += \
    SettingsProvider \