summaryrefslogtreecommitdiff
path: root/common/image.c
diff options
context:
space:
mode:
authorPrafulla Wadaskar <prafulla@marvell.com>2009-09-07 14:59:07 +0530
committerWolfgang Denk <wd@denx.de>2009-09-10 22:58:48 +0200
commitf666dea8ab215c76c3c2a077ad299f90dd1ace7c (patch)
treed92d2d305027f64df503e4c23b618c2a1434a84c /common/image.c
parent37b801888cf73b18f78c1109140ff44e3e37914f (diff)
downloadu-boot-imx-f666dea8ab215c76c3c2a077ad299f90dd1ace7c.zip
u-boot-imx-f666dea8ab215c76c3c2a077ad299f90dd1ace7c.tar.gz
u-boot-imx-f666dea8ab215c76c3c2a077ad299f90dd1ace7c.tar.bz2
mkimage: Make genimg_print_size() global
Currently it is used by image.c only, but the the function can be used to support additional mkimage types like for example kwbimage, so make this function globally visible. Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com> Edited commit message. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/image.c b/common/image.c
index f3dd647..ca8205c 100644
--- a/common/image.c
+++ b/common/image.c
@@ -158,7 +158,6 @@ static table_entry_t uimage_comp[] = {
uint32_t crc32 (uint32_t, const unsigned char *, uint);
uint32_t crc32_wd (uint32_t, const unsigned char *, uint, uint);
-static void genimg_print_size (uint32_t size);
#if defined(CONFIG_TIMESTAMP) || defined(CONFIG_CMD_DATE) || defined(USE_HOSTCC)
static void genimg_print_time (time_t timestamp);
#endif
@@ -473,7 +472,7 @@ void memmove_wd (void *to, void *from, size_t len, ulong chunksz)
}
#endif /* !USE_HOSTCC */
-static void genimg_print_size (uint32_t size)
+void genimg_print_size (uint32_t size)
{
#ifndef USE_HOSTCC
printf ("%d Bytes = ", size);