From 39d25efe1df1dfeeba1a051747663b3f38c8d919 Mon Sep 17 00:00:00 2001 From: Akila N Date: Thu, 29 Sep 2016 21:09:06 +0530 Subject: [PATCH] Adding support for imxtract command Change-Id: I786b46f256592d8311c2f9e0f9a971b36436a3cb Signed-off-by: Akila N --- common/cmd_ximg.c | 2 +- include/configs/ipq40xx.h | 1 + include/configs/ipq806x.h | 1 + include/configs/ipq807x.h | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index d033c15b62..afaf854c81 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -144,7 +144,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) return 1; } - if (fit_image_check_comp(fit_hdr, noffset, IH_COMP_NONE) + if (!fit_image_check_comp(fit_hdr, noffset, IH_COMP_NONE) && (argc < 4)) { printf("Must specify load address for %s command " "with compressed image\n", diff --git a/include/configs/ipq40xx.h b/include/configs/ipq40xx.h index d110ed4426..acf802cfbc 100644 --- a/include/configs/ipq40xx.h +++ b/include/configs/ipq40xx.h @@ -124,6 +124,7 @@ typedef struct { #define CONFIG_INITRD_TAG 1 #define CONFIG_SYS_HUSH_PARSER #define CONFIG_SYS_NULLDEV +#define CONFIG_CMD_XIMG /* * USB Support diff --git a/include/configs/ipq806x.h b/include/configs/ipq806x.h index 8d7e5996be..ef060340f1 100644 --- a/include/configs/ipq806x.h +++ b/include/configs/ipq806x.h @@ -153,6 +153,7 @@ #define CONFIG_FIT #endif #define CONFIG_SYS_NULLDEV +#define CONFIG_CMD_XIMG /*Support for Compressed DTB image*/ #ifdef CONFIG_FIT diff --git a/include/configs/ipq807x.h b/include/configs/ipq807x.h index 4e10a0f935..2a4c3ebca3 100644 --- a/include/configs/ipq807x.h +++ b/include/configs/ipq807x.h @@ -163,6 +163,7 @@ extern loff_t board_env_offset; */ #define CONFIG_OF_LIBFDT 1 #define CONFIG_SYS_HUSH_PARSER +#define CONFIG_CMD_XIMG /* NSS firmware loaded using bootm */ #define CONFIG_BOOTCOMMAND "bootipq"