From beb05c82a36221a6b020538b5dfe07dd34d200aa Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Tue, 18 Jul 2017 19:57:26 +0300 Subject: [PATCH] config: Set some default TWRP flags When WITH_TWRP=true is set: * Set recovery variant to TWRP, it should be synced under bootable/recovery-twrp in Lineage * Exclude SuperSU, we have our own su solution Change-Id: I5e5e6f2b42282c4666cdc013405a1488a9c6341d --- config/common.mk | 5 +++++ config/twrp.mk | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 config/twrp.mk diff --git a/config/common.mk b/config/common.mk index 2022b6c9..26235de7 100644 --- a/config/common.mk +++ b/config/common.mk @@ -92,6 +92,11 @@ ifneq ($(TARGET_DISABLE_CMSDK), true) include vendor/cm/config/cmsdk_common.mk endif +# TWRP +ifeq ($(WITH_TWRP),true) +include vendor/cm/config/twrp.mk +endif + # Bootanimation PRODUCT_PACKAGES += \ bootanimation.zip diff --git a/config/twrp.mk b/config/twrp.mk new file mode 100644 index 00000000..845e2e2d --- /dev/null +++ b/config/twrp.mk @@ -0,0 +1,2 @@ +RECOVERY_VARIANT := twrp +TW_EXCLUDE_SUPERSU := true