|
|
@ -23,6 +23,7 @@ import cfig.bootimg.Signer
|
|
|
|
import cfig.helper.Helper
|
|
|
|
import cfig.helper.Helper
|
|
|
|
import cfig.helper.Dumpling
|
|
|
|
import cfig.helper.Dumpling
|
|
|
|
import cfig.packable.VBMetaParser
|
|
|
|
import cfig.packable.VBMetaParser
|
|
|
|
|
|
|
|
import cfig.utils.DTC
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper
|
|
|
|
import de.vandermeer.asciitable.AsciiTable
|
|
|
|
import de.vandermeer.asciitable.AsciiTable
|
|
|
|
import org.apache.commons.exec.CommandLine
|
|
|
|
import org.apache.commons.exec.CommandLine
|
|
|
@ -264,6 +265,10 @@ data class VendorBoot(
|
|
|
|
this.ramdisk.size = this.ramdisk_table.ramdidks.sumOf { File(it.file).length() }.toInt()
|
|
|
|
this.ramdisk.size = this.ramdisk_table.ramdidks.sumOf { File(it.file).length() }.toInt()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//update dtb
|
|
|
|
|
|
|
|
if (File(this.dtb.file + ".src").exists()) {
|
|
|
|
|
|
|
|
check(DTC().compile(this.dtb.file + ".src", this.dtb.file)) { "fail to compile dts" }
|
|
|
|
|
|
|
|
}
|
|
|
|
this.dtb.size = File(this.dtb.file).length().toInt()
|
|
|
|
this.dtb.size = File(this.dtb.file).length().toInt()
|
|
|
|
//header
|
|
|
|
//header
|
|
|
|
FileOutputStream(this.info.output + ".clear", false).use { fos ->
|
|
|
|
FileOutputStream(this.info.output + ".clear", false).use { fos ->
|
|
|
|