summaryrefslogtreecommitdiff
path: root/tools/gpimage-common.c
diff options
context:
space:
mode:
authorGuilherme Maciel Ferreira <guilherme.maciel@datacom.ind.br>2015-01-15 02:54:40 -0200
committerTom Rini <trini@ti.com>2015-01-29 13:38:41 -0500
commitf41f5b7c055865bae32129d005fed073315d589a (patch)
tree3007a1ca725fca00197299b6a04ff8abab8d563a /tools/gpimage-common.c
parenta93648d197df48fa46dd55f925ff70468bd81c71 (diff)
downloadu-boot-imx-f41f5b7c055865bae32129d005fed073315d589a.zip
u-boot-imx-f41f5b7c055865bae32129d005fed073315d589a.tar.gz
u-boot-imx-f41f5b7c055865bae32129d005fed073315d589a.tar.bz2
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>
Diffstat (limited to 'tools/gpimage-common.c')
-rw-r--r--tools/gpimage-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gpimage-common.c b/tools/gpimage-common.c
index b343a3a..5ad52be 100644
--- a/tools/gpimage-common.c
+++ b/tools/gpimage-common.c
@@ -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);