From b39b87a2ab7ba5b5cbe56a4502a08e6c310f3f3c Mon Sep 17 00:00:00 2001 From: nebrassy Date: Sun, 12 Sep 2021 17:29:19 +0200 Subject: [PATCH] also set twrp cmdline for legacy A/B Change-Id: Ibb3d7076d6bd1518585c4f3b3bfcc71cc8e0ceae --- config/BoardConfigTWRP.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/BoardConfigTWRP.mk b/config/BoardConfigTWRP.mk index d1b1d3f..a163cd7 100644 --- a/config/BoardConfigTWRP.mk +++ b/config/BoardConfigTWRP.mk @@ -2,7 +2,10 @@ include vendor/twrp/config/BoardConfigKernel.mk include vendor/twrp/config/BoardConfigSoong.mk ifeq ($(BOARD_USES_RECOVERY_AS_BOOT),true) -GENERIC_KERNEL_CMDLINE += twrpfastboot=1 + ifeq ($(BOARD_BOOT_HEADER_VERSION),3) + GENERIC_KERNEL_CMDLINE += twrpfastboot=1 + else + INTERNAL_KERNEL_CMDLINE += twrpfastboot=1 + endif endif -