tzdata: add to TWRP build automatically

Fixes "__bionic_open_tzdata" errors in recovery log

Use "TW_EXCLUDE_TZDATA := true" flag to exclude from build
if needed for space reasons. Will automatically be excluded
is "TW_OEM_BUILD := true" flag is present

Change-Id: I2f4a0f3a354a32c2f4f9733b3e88beedc4773020
This commit is contained in:
Captain Throwback
2021-01-30 12:26:25 -05:00
committed by bigbiff
parent b206c132c6
commit 6443cefc69
2 changed files with 22 additions and 0 deletions
+6
View File
@@ -137,6 +137,7 @@ ifeq ($(TW_OEM_BUILD),true)
BOARD_HAS_NO_REAL_SDCARD := true
TW_USE_TOOLBOX := true
TW_EXCLUDE_MTP := true
TW_EXCLUDE_TZDATA := true
endif
ifeq ($(AB_OTA_UPDATER),true)
@@ -407,6 +408,11 @@ TWRP_REQUIRED_MODULES += \
me.twrp.twrpapp.apk \
privapp-permissions-twrpapp.xml
ifneq ($(TW_EXCLUDE_TZDATA), true)
TWRP_REQUIRED_MODULES += \
tzdata_twrp
endif
ifneq ($(TW_INCLUDE_CRYPTO),)
TWRP_REQUIRED_MODULES += \
hwservicemanager \