sm6150-common: releasetools: Be more clear about firmware image patching

This looks very odd on most of the devices using this tree
because nothing is being patched. Just mention which image
is being flashed and only when it actually is.

Change-Id: Ib6c35e08aee0f1c102da28ca37434093a92f7045
This commit is contained in:
Akhil Narang 2019-08-05 20:07:03 +05:30 committed by Arian
parent 959ceb5f99
commit 558ce67af1
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

@ -37,10 +37,10 @@ def AddImage(info, basename, dest):
name = basename
data = info.input_zip.read("IMAGES/" + basename)
common.ZipWriteStr(info.output_zip, name, data)
info.script.Print("Patching {} image unconditionally...".format(dest.split('/')[-1]))
info.script.AppendExtra('package_extract_file("%s", "%s");' % (name, dest))
def OTA_InstallEnd(info):
info.script.Print("Patching firmware images...")
AddImage(info, "dtbo.img", "/dev/block/bootdevice/by-name/dtbo")
AddImage(info, "vbmeta.img", "/dev/block/bootdevice/by-name/vbmeta")
return