From 3454ade92db48236057814f0ade5fa45bd57cd62 Mon Sep 17 00:00:00 2001 From: Dees Troy Date: Tue, 20 Jan 2015 19:21:04 +0000 Subject: Use /twres instead of /res for theme resources AOSP and other ROM trees now do a rm -rf of the res folder during the ramdisk creation process that removes the TWRP resources. Using /twres instead of /res works around this issue making TWRP more compatible with AOSP and other build trees. Change-Id: I0d4c7e06ca381ac5aa0069b6f2b8c47f7dec49e7 --- Android.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index bd9dd7e58..bd5c33ccb 100644 --- a/Android.mk +++ b/Android.mk @@ -28,6 +28,9 @@ ifeq ($(PROJECT_PATH_AGREES),true) include $(CLEAR_VARS) +TWRES_PATH := "/twres/" +TWHTCD_PATH := $(TWRES_PATH)htcd/ + TARGET_RECOVERY_GUI := true LOCAL_SRC_FILES := \ @@ -364,6 +367,8 @@ endif ifneq ($(TARGET_RECOVERY_DEVICE_MODULES),) LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_RECOVERY_DEVICE_MODULES) endif +LOCAL_CFLAGS += -DTWRES=\"$(TWRES_PATH)\" +LOCAL_CFLAGS += -DTWHTCD_PATH=\"$(TWHTCD_PATH)\" include $(BUILD_EXECUTABLE) -- cgit v1.2.3