cmd_source: fix compile error
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I4c532326f70bcda71543f6768d3ca136bb7c7d0b
This commit is contained in:
parent
a61b9434cd
commit
408bf4b932
|
|
@ -31,7 +31,7 @@ source (ulong addr, const char *fit_uname)
|
||||||
const image_header_t *hdr;
|
const image_header_t *hdr;
|
||||||
#endif
|
#endif
|
||||||
u32 *data;
|
u32 *data;
|
||||||
int verify;
|
|
||||||
void *buf;
|
void *buf;
|
||||||
#if defined(CONFIG_FIT)
|
#if defined(CONFIG_FIT)
|
||||||
const void* fit_hdr;
|
const void* fit_hdr;
|
||||||
|
|
@ -39,8 +39,9 @@ source (ulong addr, const char *fit_uname)
|
||||||
const void *fit_data;
|
const void *fit_data;
|
||||||
size_t fit_len;
|
size_t fit_len;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(CONFIG_IMAGE_FORMAT_LEGACY) || defined(CONFIG_FIT)
|
||||||
verify = env_get_yesno("verify");
|
int verify = env_get_yesno("verify");
|
||||||
|
#endif
|
||||||
|
|
||||||
buf = map_sysmem(addr, 0);
|
buf = map_sysmem(addr, 0);
|
||||||
switch (genimg_get_format(buf)) {
|
switch (genimg_get_format(buf)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue