Enable rk30xx hack

Fix problem with erase/restore mtd partitions on Rockchip SoC

Change-Id: I3320f711446441cf79e38e9ffb5dfdb6b1717a55
diff --git a/Android.mk b/Android.mk
index fbddef7..d8c880e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -264,9 +264,6 @@
 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 @@
 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 c1b0e5b..117de78 100644
--- a/mtdutils/Android.mk
+++ b/mtdutils/Android.mk
@@ -9,6 +9,7 @@
 
 ifeq ($(TARGET_BOARD_PLATFORM),rk30xx)
 LOCAL_SRC_FILES += rk30hack.c
+LOCAL_CFLAGS += -DRK3066
 endif
 
 LOCAL_MODULE := libmtdutils
@@ -25,6 +26,7 @@
 
 ifeq ($(TARGET_BOARD_PLATFORM),rk30xx)
 LOCAL_SRC_FILES += rk30hack.c
+LOCAL_CFLAGS += -DRK3066
 endif
 
 LOCAL_MODULE := libmtdutils