Add _bootconfig file to target_files.zip
Bug: 385383524
Test: diff'd the target_files.zip created by make and soong
Change-Id: Ifbce0a0831d76eaf98c289a7f158cd67220c016d
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index 52d3091..049e298 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -178,6 +178,9 @@
if bootImgInfo.Dtb != nil {
builder.Command().Textf("cp %s %s/VENDOR_BOOT/dtb", bootImgInfo.Dtb, targetFilesDir)
}
+ if bootImgInfo.Bootconfig != nil {
+ builder.Command().Textf("cp %s %s/VENDOR_BOOT/vendor_bootconfig", bootImgInfo.Bootconfig, targetFilesDir)
+ }
}
if a.partitionProps.Boot_partition_name != nil {
bootImg := ctx.GetDirectDepWithTag(proptools.String(a.partitionProps.Boot_partition_name), filesystemDepTag)
@@ -191,6 +194,9 @@
// Even though kernel is not used to build vendor_boot, copy the kernel to VENDOR_BOOT to match the behavior of make packaging.
builder.Command().Textf("cp %s %s/VENDOR_BOOT/kernel", bootImgInfo.Kernel, targetFilesDir)
}
+ if bootImgInfo.Bootconfig != nil {
+ builder.Command().Textf("cp %s %s/BOOT/bootconfig", bootImgInfo.Bootconfig, targetFilesDir)
+ }
}
builder.Command().