From e36a5557b24127e880f1d4a3d0faccfc3a5e08dd Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Fri, 1 Apr 2022 14:20:35 +0200 Subject: [PATCH] Add INCLUDE_IH8SN flag for debugging purposes Also ship ih8sn only for stable builds. --- config/common.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config/common.mk b/config/common.mk index 67110fc..19b3686 100644 --- a/config/common.mk +++ b/config/common.mk @@ -19,9 +19,14 @@ DEVICE_PACKAGE_OVERLAYS += \ $(VENDOR_PATH)/overlay # SafetyNet compatibility -PRODUCT_CONFIGURATION_FILE := vendor/eos/config/ih8sn/ih8sn_$(subst lineage_,,$(TARGET_PRODUCT)).conf +ifeq (stable,$(RELEASE_TYPE)) + INCLUDE_IH8SN ?= true +endif -ifneq (eng,$(TARGET_BUILD_VARIANT)) +INCLUDE_IH8SN ?= false + +PRODUCT_CONFIGURATION_FILE := vendor/eos/config/ih8sn/ih8sn_$(subst lineage_,,$(TARGET_PRODUCT)).conf +ifeq (true,$(INCLUDE_IH8SN)) ifneq (,$(wildcard $(PRODUCT_CONFIGURATION_FILE))) PRODUCT_PACKAGES += ih8sn PRODUCT_COPY_FILES += \ -- GitLab