mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
image: Export fit_check_ramdisk()
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>
This commit is contained in:
parent
859e92b775
commit
61a439a873
@ -49,14 +49,9 @@
|
|||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_FIT)
|
|
||||||
#include <u-boot/md5.h>
|
#include <u-boot/md5.h>
|
||||||
#include <sha1.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
|
#ifdef CONFIG_CMD_BDI
|
||||||
extern int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
|
extern int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
|
||||||
#endif
|
#endif
|
||||||
@ -3364,8 +3359,8 @@ void fit_conf_print(const void *fit, int noffset, const char *p)
|
|||||||
* 0, on failure
|
* 0, on failure
|
||||||
*/
|
*/
|
||||||
#ifndef USE_HOSTCC
|
#ifndef USE_HOSTCC
|
||||||
static int fit_check_ramdisk(const void *fit, int rd_noffset, uint8_t arch,
|
int fit_check_ramdisk(const void *fit, int rd_noffset, uint8_t arch,
|
||||||
int verify)
|
int verify)
|
||||||
{
|
{
|
||||||
fit_image_print(fit, rd_noffset, " ");
|
fit_image_print(fit, rd_noffset, " ");
|
||||||
|
|
||||||
|
@ -633,6 +633,9 @@ int fit_conf_get_fdt_node(const void *fit, int noffset);
|
|||||||
|
|
||||||
void fit_conf_print(const void *fit, int noffset, const char *p);
|
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
|
#ifndef USE_HOSTCC
|
||||||
static inline int fit_image_check_target_arch(const void *fdt, int node)
|
static inline int fit_image_check_target_arch(const void *fdt, int node)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user