@@ -246,14 +246,14 @@ data class VendorBoot(
246246 // Fixed: remove cpio in C/C++
247247 // C.packRootfs("$workDir/root", this.ramdisk.file, parseOsMajor())
248248 // enable advance JAVA cpio
249- C .packRootfs(" $workDir / root" , this .ramdisk.file, this .ramdisk.xzFlags)
249+ C .packRootfs(Helper .joinPath( " $workDir " , " root" ) , this .ramdisk.file, this .ramdisk.xzFlags)
250250 }
251251 this .ramdisk.size = File (this .ramdisk.file).length().toInt()
252252 }
253253 else -> {
254254 this .ramdisk_table.ramdidks.forEachIndexed { index, it ->
255255 File (it.file).deleleIfExists()
256- log.info(Helper .joinPath(workDir!! , " / root.${index + 1 } " ) + " -> " + it.file)
256+ log.info(Helper .joinPath(workDir!! , " root.${index + 1 } " ) + " -> " + it.file)
257257 C .packRootfs(Helper .joinPath(workDir, " root.${index + 1 } " ), it.file, this .ramdisk.xzFlags)
258258 }
259259 this .ramdisk.size = this .ramdisk_table.ramdidks.sumOf { File (it.file).length() }.toInt()
@@ -416,7 +416,7 @@ data class VendorBoot(
416416 }
417417 val tab = AsciiTable ().let {
418418 it.addRule()
419- val imageInfoJsonFile = Helper .joinPath(workDir!! , info.role.removeSuffix(" .img" ), " .json" )
419+ val imageInfoJsonFile = Helper .joinPath(workDir!! , info.role.removeSuffix(" .img" ) + " .json" )
420420 it.addRow(" image info" , imageInfoJsonFile)
421421 prints.add(Pair (" image info" , imageInfoJsonFile))
422422 it.addRule()
0 commit comments