Adding support for imxtract command
Change-Id: I786b46f256592d8311c2f9e0f9a971b36436a3cb
Signed-off-by: Akila N <akilan@codeaurora.org>
diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c
index d033c15..afaf854 100644
--- a/common/cmd_ximg.c
+++ b/common/cmd_ximg.c
@@ -144,7 +144,7 @@
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 d110ed4..acf802c 100644
--- a/include/configs/ipq40xx.h
+++ b/include/configs/ipq40xx.h
@@ -124,6 +124,7 @@
#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 8d7e599..ef06034 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 4e10a0f..2a4c3eb 100644
--- a/include/configs/ipq807x.h
+++ b/include/configs/ipq807x.h
@@ -163,6 +163,7 @@
*/
#define CONFIG_OF_LIBFDT 1
#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_CMD_XIMG
/* NSS firmware loaded using bootm */
#define CONFIG_BOOTCOMMAND "bootipq"