summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSafae Ouajih <[email protected]>2023-02-06 00:50:13 +0100
committerTom Rini <[email protected]>2023-04-04 14:50:47 -0400
commitc79a2e6823d5a3a2813f66d03023c0a192c27e7e (patch)
tree679e97bca8656fb6d76d55690df017f54725419e /include
parent1115027d2f75ade805f0d4d44a6a2c21e74ea6b2 (diff)
android: boot: ramdisk: support vendor ramdisk
Version 3 and 4 of boot image header introduced vendor boot ramdisk: Please check include/android_image.h for details. The ramdisk is now split into a generic ramdisk in boot image and a vendor ramdisk in vendor boot image. Support the new vendor ramdisk. Signed-off-by: Safae Ouajih <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Tested-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/image.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/image.h b/include/image.h
index c2e751c1364..c4d9b1c5754 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1782,8 +1782,8 @@ int android_image_get_kernel(const struct andr_boot_img_hdr_v0 *hdr,
* @rd_len: Pointer to a ulong variable, will hold ramdisk length
* Return: 0 if succeeded, -1 if ramdisk size is 0
*/
-int android_image_get_ramdisk(const struct andr_boot_img_hdr_v0 *hdr,
- const void *vendor_boot_img, ulong *rd_data, ulong *rd_len);
+int android_image_get_ramdisk(const void *hdr, const void *vendor_boot_img,
+ ulong *rd_data, ulong *rd_len);
/**
* android_image_get_second() - Extracts the secondary bootloader address