[U-Boot] [PATCH 5/8] tools: mkimage: Making genimg_print_size API global
Prafulla Wadaskar
prafulla at marvell.com
Tue Jul 28 20:04:27 CEST 2009
Currently it is used by image.c only
This API can be used by additional mkimage types supports
for ex. kwbimage, to use it the API is made global
Signed-off-by: Prafulla Wadaskar <prafulla at marvell.com>
---
common/image.c | 3 +--
include/image.h | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/image.c b/common/image.c
index e22c974..232348c 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
@@ -472,7 +471,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);
diff --git a/include/image.h b/include/image.h
index b519e5e..88a13ab 100644
--- a/include/image.h
+++ b/include/image.h
@@ -300,6 +300,7 @@ int genimg_get_comp_id (const char *name);
#define IMAGE_FORMAT_LEGACY 0x01 /* legacy image_header based format */
#define IMAGE_FORMAT_FIT 0x02 /* new, libfdt based format */
+void genimg_print_size (uint32_t size);
int genimg_get_format (void *img_addr);
int genimg_has_config (bootm_headers_t *images);
ulong genimg_get_image (ulong img_addr);
--
1.5.3.3
More information about the U-Boot
mailing list