From 9220dbab44b3bf277c903ac0c99d09c53eec39c7 Mon Sep 17 00:00:00 2001 From: oshmoun Date: Sat, 24 Nov 2018 11:26:01 +0100 Subject: fix building TWRP for devices without cache Some devices do not declare BOARD_CACHEIMAGE_PARTITION_SIZE. This case is detected and required modules are added to LOCAL_REQUIRED_MODULES. However, := is used instead of += and causes the loss of all previously added modules. The end result is that twrp is not actually getting built since its module was lost. Fix that by using += when adding modules required for cache-less devices. Change-Id: Ib0a4db4955040ced77be7ed04d636905beadf093 --- Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index 6ee406053..403647374 100644 --- a/Android.mk +++ b/Android.mk @@ -500,7 +500,7 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 25; echo $$?),0) endif ifeq ($(BOARD_CACHEIMAGE_PARTITION_SIZE),) -LOCAL_REQUIRED_MODULES := recovery-persist recovery-refresh +LOCAL_REQUIRED_MODULES += recovery-persist recovery-refresh endif include $(BUILD_EXECUTABLE) -- cgit v1.2.3