diff options
Diffstat (limited to 'filesystem/android_device.go')
-rw-r--r-- | filesystem/android_device.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go index 4b615bc51..406f47cbe 100644 --- a/filesystem/android_device.go +++ b/filesystem/android_device.go @@ -57,6 +57,8 @@ type PartitionNameProperties struct { type DeviceProperties struct { // Path to the prebuilt bootloader that would be copied to PRODUCT_OUT Bootloader *string `android:"path"` + // Path to android-info.txt file containing board specific info. + Android_info *string `android:"path"` } type androidDevice struct { @@ -231,6 +233,11 @@ func (a *androidDevice) buildTargetFilesZip(ctx android.ModuleContext) { } } + if a.deviceProps.Android_info != nil { + builder.Command().Textf("mkdir -p %s/OTA", targetFilesDir) + builder.Command().Textf("cp %s %s/OTA/android-info.txt", android.PathForModuleSrc(ctx, proptools.String(a.deviceProps.Android_info)), targetFilesDir) + } + builder.Command(). BuiltTool("soong_zip"). Text("-d"). |