dtbo: support 'pull' and 'flash'

pull/94/head
cfig 3 years ago
parent 9101c5bbab
commit 4e7bdf6c47
No known key found for this signature in database
GPG Key ID: B104C307F0FDABB7

@ -57,6 +57,19 @@ class DtboParser(val workDir: File) : IPackable {
.printPackSummary()
}
override fun pull(fileName: String, deviceName: String) {
super.pull(fileName, deviceName)
}
override fun flash(fileName: String, deviceName: String) {
val stem = fileName.substring(0, fileName.indexOf("."))
super.flash("$fileName.signed", stem)
if (File("vbmeta.img.signed").exists()) {
super.flash("vbmeta.img.signed", "vbmeta")
}
}
override fun `@verify`(fileName: String) {
super.`@verify`(fileName)
}

Loading…
Cancel
Save