Files
android_vendor_twrp/config/BoardConfigTWRP.mk
Sushrut1101 93b80a8181 Add TW_NO_FASTBOOT_BOOT flag
* Some Devices that do not support hotbooting an image using fastboot
  boot (eg: mtk devices) face issues like battery level detection,
  unable to reboot to system, etc.
  When twrpfastboot is set to 1 in the kernel cmdline. Setting this flag
  to true will not add twrpfastboot=1 in the cmdline and therefore will
  fix those issues.

* Tested on evergo, fixed battery level detection, reboot to system and
  slot changing.

Change-Id: I3f2d0fb3ef71f42904f756b4c7dec1cc51905f40
Signed-off-by: Sushrut1101 <guptasushrut@gmail.com>
2022-11-05 02:14:27 +05:30

13 lines
379 B
Makefile

include vendor/twrp/config/BoardConfigKernel.mk
include vendor/twrp/config/BoardConfigSoong.mk
ifeq ($(BOARD_USES_RECOVERY_AS_BOOT),true)
ifneq ($(TW_NO_FASTBOOT_BOOT),true)
ifeq (true,$(BUILDING_VENDOR_BOOT_IMAGE))
GENERIC_KERNEL_CMDLINE += twrpfastboot=1
else
INTERNAL_KERNEL_CMDLINE += twrpfastboot=1
endif
endif
endif