summaryrefslogtreecommitdiff
path: root/boot/image-board.c
diff options
context:
space:
mode:
authorSafae Ouajih <souajih@baylibre.com>2023-02-06 00:50:05 +0100
committerTom Rini <trini@konsulko.com>2023-04-04 14:50:46 -0400
commit734cb47d6de16d2e3b52a03bce5daab40e5bb29d (patch)
treebaf5f2c2ab4f229508056d550bc2e10336e581fc /boot/image-board.c
parent86b62947eb237daddc7014a6b3b5545d1848b02c (diff)
android: boot: replace android_image_check_header
With the new vendor boot image introduced in versions 3 and 4 of boot image header, the header check must be done for both boot image and vendor boot image. Thus, replace android_image_check_header() by is_android_boot_image_header() to only refer to boot image header check. Signed-off-by: Safae Ouajih <souajih@baylibre.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'boot/image-board.c')
-rw-r--r--boot/image-board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/image-board.c b/boot/image-board.c
index 9bf70824cb7..e086103258f 100644
--- a/boot/image-board.c
+++ b/boot/image-board.c
@@ -284,7 +284,7 @@ int genimg_get_format(const void *img_addr)
return IMAGE_FORMAT_FIT;
}
if (IS_ENABLED(CONFIG_ANDROID_BOOT_IMAGE) &&
- !android_image_check_header(img_addr))
+ is_android_boot_image_header(img_addr))
return IMAGE_FORMAT_ANDROID;
return IMAGE_FORMAT_INVALID;