Skip to content

Commit d148b4f

Browse files
committed
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>
1 parent 13e0991 commit d148b4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

obmc-flash-bmc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,11 @@ mmc_update() {
498498

499499
# Update hostfw
500500
if [ -f ${imgpath}/${version}/image-hostfw ]; then
501+
# Remove patches
502+
patchdir="/usr/local/share/hostfw/alternate"
503+
if [ -d "${patchdir}" ]; then
504+
rm -rf "${patchdir}"/*
505+
fi
501506
hostfwdir=$(grep "hostfw " /proc/mounts | cut -d " " -f 2)
502507
cp ${imgpath}/${version}/image-hostfw ${hostfwdir}/hostfw-${label}
503508
mkdir -p ${hostfwdir}/alternate

0 commit comments

Comments
 (0)