Skip to content

Commit

Permalink
mmc: Remove hostfw patches on update
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
anoo1 committed Sep 2, 2020
1 parent 13e0991 commit d148b4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions obmc-flash-bmc
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,11 @@ mmc_update() {

# 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
Expand Down

0 comments on commit d148b4f

Please sign in to comment.