From 8ef6c937049687cefd44a876bae134e3e1c8ecb9 Mon Sep 17 00:00:00 2001 From: George Lee Date: Tue, 17 Jan 2023 15:45:50 +0000 Subject: [PATCH] bcl: Do not include bcl.mk for factory Bug: 264957141 Test: Local test Change-Id: I99c7b7393f0ef72aaf545af5e3019b732cadeb42 Signed-off-by: George Lee --- battery_mitigation/bcl.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/battery_mitigation/bcl.mk b/battery_mitigation/bcl.mk index 87e0f95..9fd81f8 100644 --- a/battery_mitigation/bcl.mk +++ b/battery_mitigation/bcl.mk @@ -1,7 +1,11 @@ +ifeq (,$(filter factory_%,$(TARGET_PRODUCT))) PRODUCT_PACKAGES += battery_mitigation +endif ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +ifeq (,$(filter factory_%,$(TARGET_PRODUCT))) PRODUCT_PACKAGES += BrownoutDetection endif +endif BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation