rockchip: resource: get resource from boot partition when AB is enable
In AB system, build recovery as boot, there is no recovery partition any more. Change-Id: I434102d589b369a48ed71c6be3635a9a84f788e0 Signed-off-by: Dayao Ji <jdy@rock-chips.com>
This commit is contained in:
parent
affcebcd8f
commit
9f9a9f6d1f
|
|
@ -199,8 +199,10 @@ static int init_resource_list(struct resource_img_hdr *hdr)
|
|||
|
||||
#ifdef CONFIG_ANDROID_BOOT_IMAGE
|
||||
/* Get boot mode from misc */
|
||||
#ifndef CONFIG_ANDROID_AB
|
||||
if (rockchip_get_boot_mode() == BOOT_MODE_RECOVERY)
|
||||
boot_partname = PART_RECOVERY;
|
||||
#endif
|
||||
|
||||
/* Read boot/recovery and chenc if this is an AOSP img */
|
||||
#ifdef CONFIG_ANDROID_AB
|
||||
|
|
|
|||
Loading…
Reference in New Issue