kunlun2: Flash dtbo and print what's being flashed
This commit is contained in:
parent
8895212b30
commit
0febe60110
1 changed files with 2 additions and 1 deletions
|
@ -31,9 +31,10 @@ def AddImage(info, input_zip, basename, dest):
|
||||||
name = basename
|
name = basename
|
||||||
data = input_zip.read("IMAGES/" + basename)
|
data = input_zip.read("IMAGES/" + basename)
|
||||||
common.ZipWriteStr(info.output_zip, name, data)
|
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))
|
info.script.AppendExtra('package_extract_file("%s", "%s");' % (name, dest))
|
||||||
|
|
||||||
def OTA_InstallEnd(info, input_zip):
|
def OTA_InstallEnd(info, input_zip):
|
||||||
info.script.Print("Patching firmware images...")
|
|
||||||
AddImage(info, input_zip, "vbmeta.img", "/dev/block/bootdevice/by-name/vbmeta")
|
AddImage(info, input_zip, "vbmeta.img", "/dev/block/bootdevice/by-name/vbmeta")
|
||||||
|
AddImage(info, input_zip, "dtbo.img", "/dev/block/bootdevice/by-name/dtbo")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue