mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
dumpimage: add 'T' option to explicitly set the image type
Some image types, like "KeyStone GP", do not have magic numbers to distinguish them from other image types. Thus, the automatic image type discovery does not work correctly. This patch also fix some integer type mismatches. Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
This commit is contained in:
committed by
Tom Rini
parent
a93648d197
commit
f41f5b7c05
@@ -32,7 +32,8 @@ void to_be32(uint32_t *gph_size, uint32_t *gph_load_addr)
|
||||
|
||||
int gph_verify_header(struct gp_header *gph, int be)
|
||||
{
|
||||
uint32_t gph_size = gph->size, gph_load_addr = gph->load_addr;
|
||||
uint32_t gph_size = gph->size;
|
||||
uint32_t gph_load_addr = gph->load_addr;
|
||||
|
||||
if (be)
|
||||
to_be32(&gph_size, &gph_load_addr);
|
||||
|
Reference in New Issue
Block a user