partition: Perform BLKDISCARD on the block device before flashing image

Change-Id: Ifb13d47693edfc96369053199ac0b5d81910f104
(cherry picked from commit 7669320c931f991c908e240638091d259304d636)
diff --git a/Android.mk b/Android.mk
index 59fdc16..284e325 100644
--- a/Android.mk
+++ b/Android.mk
@@ -440,6 +440,9 @@
 ifeq ($(TW_INCLUDE_FASTBOOTD), true)
     LOCAL_CFLAGS += -DTW_INCLUDE_FASTBOOTD
 endif
+ifeq ($(TW_ENABLE_BLKDISCARD), true)
+    LOCAL_CFLAGS += -DTW_ENABLE_BLKDISCARD
+endif
 
 LOCAL_C_INCLUDES += system/vold \