From 85ceaf1b311ee00665c64e729550f0a9cac7f0fd Mon Sep 17 00:00:00 2001 From: "J. Carlos Romero" Date: Tue, 15 Apr 2014 13:15:10 +0200 Subject: Enable rk30xx hack Fix problem with erase/restore mtd partitions on Rockchip SoC Change-Id: I3320f711446441cf79e38e9ffb5dfdb6b1717a55 --- Android.mk | 6 ------ mtdutils/Android.mk | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Android.mk b/Android.mk index fbddef7e3..d8c880e50 100644 --- a/Android.mk +++ b/Android.mk @@ -264,9 +264,6 @@ endif ifneq ($(TW_CUSTOM_BATTERY_PATH),) LOCAL_CFLAGS += -DTW_CUSTOM_BATTERY_PATH=$(TW_CUSTOM_BATTERY_PATH) endif -ifeq ($(TARGET_BOARD_PLATFORM),rk30xx) - LOCAL_CFLAGS += -DRK3066 -endif ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) LOCAL_SHARED_LIBRARIES += libopenaes else @@ -330,9 +327,6 @@ include $(CLEAR_VARS) LOCAL_MODULE := libaosprecovery LOCAL_MODULE_TAGS := eng LOCAL_MODULES_TAGS = optional -ifeq ($(TARGET_BOARD_PLATFORM),rk30xx) - LOCAL_CFLAGS += -DRK3066 -endif LOCAL_C_INCLUDES := bootable/recovery/libmincrypt/includes LOCAL_SRC_FILES = adb_install.cpp bootloader.cpp verifier.cpp mtdutils/mtdutils.c legacy_property_service.c LOCAL_SHARED_LIBRARIES += libc liblog libcutils libmtdutils diff --git a/mtdutils/Android.mk b/mtdutils/Android.mk index c1b0e5baa..117de78dc 100644 --- a/mtdutils/Android.mk +++ b/mtdutils/Android.mk @@ -9,6 +9,7 @@ LOCAL_SRC_FILES := \ ifeq ($(TARGET_BOARD_PLATFORM),rk30xx) LOCAL_SRC_FILES += rk30hack.c +LOCAL_CFLAGS += -DRK3066 endif LOCAL_MODULE := libmtdutils @@ -25,6 +26,7 @@ LOCAL_SRC_FILES := \ ifeq ($(TARGET_BOARD_PLATFORM),rk30xx) LOCAL_SRC_FILES += rk30hack.c +LOCAL_CFLAGS += -DRK3066 endif LOCAL_MODULE := libmtdutils -- cgit v1.2.3