Patchwork [U-Boot,RFC,06/44] image: Export fit_check_ramdisk()

login
register
mail settings
Submitter Simon Glass
Date Jan. 5, 2013, 1:51 a.m.
Message ID <1357350734-13737-7-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/209624/
State Superseded, archived
Headers show

Comments

Simon Glass - Jan. 5, 2013, 1:51 a.m.
One we split out the FIT code from image.c we will need this function.
Export it in the header.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 common/image.c  |    9 ++-------
 include/image.h |    3 +++
 2 files changed, 5 insertions(+), 7 deletions(-)
Marek Vasut - Jan. 5, 2013, 8:04 a.m.
Dear Simon Glass,

> One we split out the FIT code from image.c we will need this function.
> Export it in the header.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Marek Vasut <marex@denx.de>

Best regards,
Marek Vasut

Patch

diff --git a/common/image.c b/common/image.c
index b75a9d0..c030e1a 100644
--- a/common/image.c
+++ b/common/image.c
@@ -50,14 +50,9 @@ 
 #include <fdt_support.h>
 #endif
 
-#if defined(CONFIG_FIT)
 #include <u-boot/md5.h>
 #include <sha1.h>
 
-static int fit_check_ramdisk(const void *fit, int os_noffset,
-		uint8_t arch, int verify);
-#endif
-
 #ifdef CONFIG_CMD_BDI
 extern int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
 #endif
@@ -3364,8 +3359,8 @@  void fit_conf_print(const void *fit, int noffset, const char *p)
  *     0, on failure
  */
 #ifndef USE_HOSTCC
-static int fit_check_ramdisk(const void *fit, int rd_noffset, uint8_t arch,
-				int verify)
+int fit_check_ramdisk(const void *fit, int rd_noffset, uint8_t arch,
+			int verify)
 {
 	fit_image_print(fit, rd_noffset, "   ");
 
diff --git a/include/image.h b/include/image.h
index e8ddb8f..7543512 100644
--- a/include/image.h
+++ b/include/image.h
@@ -630,6 +630,9 @@  int fit_conf_get_fdt_node(const void *fit, int noffset);
 
 void fit_conf_print(const void *fit, int noffset, const char *p);
 
+int fit_check_ramdisk(const void *fit, int os_noffset,
+		uint8_t arch, int verify);
+
 #ifndef USE_HOSTCC
 static inline int fit_image_check_target_arch(const void *fdt, int node)
 {