mmc: Remove hostfw patches on update

Remove the hostfw patch for the alternate side during
code update since that's the side that's been updated and
the patches may not be compatible with the new firmware level.

Change-Id: I95eda772334673890b772587bfc89698fefbd4c6
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/obmc-flash-bmc b/obmc-flash-bmc
index 8e331ca..043ebf0 100644
--- a/obmc-flash-bmc
+++ b/obmc-flash-bmc
@@ -498,6 +498,11 @@
 
   # Update hostfw
   if [ -f ${imgpath}/${version}/image-hostfw ]; then
+    # Remove patches
+    patchdir="/usr/local/share/hostfw/alternate"
+    if [ -d "${patchdir}" ]; then
+      rm -rf "${patchdir}"/*
+    fi
     hostfwdir=$(grep "hostfw " /proc/mounts | cut -d " " -f 2)
     cp ${imgpath}/${version}/image-hostfw ${hostfwdir}/hostfw-${label}
     mkdir -p ${hostfwdir}/alternate