Skip to content

Commit

Permalink
dtb update for abe
Browse files Browse the repository at this point in the history
  • Loading branch information
cfig committed May 29, 2024
1 parent 38dd70a commit b0b1bcc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bbootimg/src/main/kotlin/bootimg/v3/BootV3.kt
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ data class BootV3(
//ramdisk
if (ramdisk.size > 0) {
val fmt = C.dumpRamdisk(
Helper.Slice(info.role, ramdisk.position, ramdisk.size, ramdisk.file), File(workDir, "root").toString()
Helper.Slice(info.input, ramdisk.position, ramdisk.size, ramdisk.file), File(workDir, "root").toString()
)
this.ramdisk.file = this.ramdisk.file + ".$fmt"
if (fmt == "xz") {
Expand Down
6 changes: 3 additions & 3 deletions bbootimg/src/main/kotlin/bootimg/v3/VendorBoot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,14 @@ data class VendorBoot(
//Fixed: remove cpio in C/C++
//C.packRootfs("$workDir/root", this.ramdisk.file, parseOsMajor())
//enable advance JAVA cpio
C.packRootfs("$workDir/root", this.ramdisk.file, this.ramdisk.xzFlags)
C.packRootfs(Helper.joinPath("$workDir", "root"), this.ramdisk.file, this.ramdisk.xzFlags)
}
this.ramdisk.size = File(this.ramdisk.file).length().toInt()
}
else -> {
this.ramdisk_table.ramdidks.forEachIndexed { index, it ->
File(it.file).deleleIfExists()
log.info(Helper.joinPath(workDir!!, "/root.${index + 1}") + " -> " + it.file)
log.info(Helper.joinPath(workDir!!, "root.${index + 1}") + " -> " + it.file)
C.packRootfs(Helper.joinPath(workDir, "root.${index + 1}"), it.file, this.ramdisk.xzFlags)
}
this.ramdisk.size = this.ramdisk_table.ramdidks.sumOf { File(it.file).length() }.toInt()
Expand Down Expand Up @@ -416,7 +416,7 @@ data class VendorBoot(
}
val tab = AsciiTable().let {
it.addRule()
val imageInfoJsonFile = Helper.joinPath(workDir!!, info.role.removeSuffix(".img"), ".json")
val imageInfoJsonFile = Helper.joinPath(workDir!!, info.role.removeSuffix(".img") + ".json")
it.addRow("image info", imageInfoJsonFile)
prints.add(Pair("image info", imageInfoJsonFile))
it.addRule()
Expand Down
2 changes: 1 addition & 1 deletion bbootimg/src/main/kotlin/packable/DeviceTreeParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DeviceTreeParser : IPackable {
log.info("\n\t\t\tPack Summary of {}\n{}\n", fileName, Common.table2String(prints))
}

override fun pull(fileName: String, deviceName: String) {
fun pull(fileName: String) {
//prepare
super.clear()
File(workDir).mkdir()
Expand Down

0 comments on commit b0b1bcc

Please sign in to comment.