Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4e86a93 authored by Akhil Narang's avatar Akhil Narang Committed by Aayush Gupta
Browse files

2e: 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
Signed-off-by: default avatarAkhil Narang <akhilnarang.1999@gmail.com>
parent 5dee1098
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,10 +29,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 device-tree and verity images...")
  AddImage(info, "dtbo.img", "/dev/block/platform/bootdevice/by-name/dtbo")
  AddImage(info, "vbmeta.img", "/dev/block/platform/bootdevice/by-name/vbmeta")
  AddImage(info, "vbmeta_system.img", "/dev/block/platform/bootdevice/by-name/vbmeta_system")