mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
imagetool: replace image registration function by linker_lists feature
The registration was introduced in commit f86ed6a8d5
This commit also removes all registration functions, and the member "next"
from image_type_params struct
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
This commit is contained in:

committed by
Tom Rini

parent
067d156075
commit
a93648d197
@ -60,18 +60,17 @@ static void gpimage_set_header(void *ptr, struct stat *sbuf, int ifd,
|
||||
/*
|
||||
* gpimage parameters
|
||||
*/
|
||||
static struct image_type_params gpimage_params = {
|
||||
.name = "TI KeyStone GP Image support",
|
||||
.header_size = GPIMAGE_HDR_SIZE,
|
||||
.hdr = (void *)&gpimage_header,
|
||||
.check_image_type = gpimage_check_image_types,
|
||||
.verify_header = gpimage_verify_header,
|
||||
.print_header = gpimage_print_header,
|
||||
.set_header = gpimage_set_header,
|
||||
.check_params = gpimage_check_params,
|
||||
};
|
||||
|
||||
void init_gpimage_type(void)
|
||||
{
|
||||
register_image_type(&gpimage_params);
|
||||
}
|
||||
U_BOOT_IMAGE_TYPE(
|
||||
gpimage,
|
||||
"TI KeyStone GP Image support",
|
||||
GPIMAGE_HDR_SIZE,
|
||||
(void *)&gpimage_header,
|
||||
gpimage_check_params,
|
||||
gpimage_verify_header,
|
||||
gpimage_print_header,
|
||||
gpimage_set_header,
|
||||
NULL,
|
||||
gpimage_check_image_types,
|
||||
NULL,
|
||||
NULL
|
||||
);
|
||||
|
Reference in New Issue
Block a user