rockchip: resource: improve comment for init_resource_list()

Change-Id: Ic6ac812976b063c6991e33d128e5abe11832c78e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-09-09 09:04:57 +08:00
parent bbe32cd5bf
commit d0f492c85c
1 changed files with 10 additions and 4 deletions

View File

@ -195,10 +195,16 @@ static int replace_resource_entry(const char *f_name, uint32_t base,
}
/*
* 1. Get resource file from part: boot/recovery(AOSP) > resource(RK)
* 2. Add all file into resource file list and load them from storage
* when we really need it.
* 3. Parse logo partition and add logo file int resource file list;
* There are: logo/battery pictures and dtb file in the resource image by default.
*
* This function does:
*
* 1. Get resource image from part: boot/recovery(AOSP) > resource(RK);
* 2. Add all file into resource list(We load them from storage when we need);
* 3. Add logo picture from logo partition into resource list(replace the
* old one in resource file);
* 4. Add dtb file from dtb position into resource list if boot_img_hdr_v2
* (replace the old one in resource file);
*/
static int init_resource_list(struct resource_img_hdr *hdr)
{