add bmlutils

Change-Id: Ia402c4fcd2881cfb7cf7318718933ed64a19ec6b
diff --git a/updater/Android.mk b/updater/Android.mk
index f7c0502..b0e5811 100644
--- a/updater/Android.mk
+++ b/updater/Android.mk
@@ -18,17 +18,17 @@
 
 LOCAL_SRC_FILES := $(updater_src_files)
 
-LOCAL_STATIC_LIBRARIES += $(BOARD_UPDATER_LIBS)
+ifdef BOARD_USES_BMLUTILS
+	LOCAL_CFLAGS += -DBOARD_USES_BMLUTILS
+	LOCAL_STATIC_LIBRARIES += libbmlutils
+endif
+
 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UPDATER_LIBS) $(TARGET_RECOVERY_UPDATER_EXTRA_LIBS)
 LOCAL_STATIC_LIBRARIES += libapplypatch libedify libmtdutils libminzip libz
 LOCAL_STATIC_LIBRARIES += libmincrypt libbz
 LOCAL_STATIC_LIBRARIES += libcutils libstdc++ libc
 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
 
-ifdef BOARD_HAS_CUSTOM_WRITE_RAW_IMAGE
-	LOCAL_CFLAGS += -DBOARD_HAS_CUSTOM_WRITE_RAW_IMAGE
-endif
-
 # Each library in TARGET_RECOVERY_UPDATER_LIBS should have a function
 # named "Register_<libname>()".  Here we emit a little C function that
 # gets #included by updater.c.  It calls all those registration
diff --git a/updater/install.c b/updater/install.c
index 759b688..5117706 100644
--- a/updater/install.c
+++ b/updater/install.c
@@ -649,7 +649,7 @@
         goto done;
     }
 
-#ifdef BOARD_HAS_CUSTOM_WRITE_RAW_IMAGE
+#ifdef BOARD_USES_BMLUTILS
     if (0 == write_raw_image(name, filename)) {
         result = partition;
     }