All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 01/11] fpga: Protect GZIP usage when LOADMK is enabled
@ 2015-01-14  9:04 Michal Simek
  2015-01-14  9:04 ` [U-Boot] [PATCH 02/11] fpga: Remove extern prototypes from .h Michal Simek
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Michal Simek @ 2015-01-14  9:04 UTC (permalink / raw)
  To: u-boot

For case where CMD_FPGA_LOADMK is enabled and GZIP disable.

Warning log:
common/built-in.o: In function `do_fpga':
/mnt/disk/u-boot/common/cmd_fpga.c:218: undefined reference to `gunzip'

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 common/cmd_fpga.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/common/cmd_fpga.c b/common/cmd_fpga.c
index 8c5bf440fbb0..484a6c6ce036 100644
--- a/common/cmd_fpga.c
+++ b/common/cmd_fpga.c
@@ -211,6 +211,7 @@ int do_fpga(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])

 				comp = image_get_comp(hdr);
 				if (comp == IH_COMP_GZIP) {
+#if defined(CONFIG_GZIP)
 					ulong image_buf = image_get_data(hdr);
 					data = image_get_load(hdr);
 					ulong image_size = ~0UL;
@@ -222,6 +223,10 @@ int do_fpga(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 						return 1;
 					}
 					data_size = image_size;
+#else
+					puts("Gunzip image is not supported\n");
+					return 1;
+#endif
 				} else {
 					data = (ulong)image_get_data(hdr);
 					data_size = image_get_data_size(hdr);
--
1.8.2.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150114/66cc96ea/attachment.pgp>

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-01-14 15:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14  9:04 [U-Boot] [PATCH 01/11] fpga: Protect GZIP usage when LOADMK is enabled Michal Simek
2015-01-14  9:04 ` [U-Boot] [PATCH 02/11] fpga: Remove extern prototypes from .h Michal Simek
2015-01-14  9:04 ` [U-Boot] [PATCH 03/11] fpga: Export fpga_get_desc for SPL Michal Simek
2015-01-14  9:04 ` [U-Boot] [PATCH 04/11] fpga: xilinx: spartan2: Setup NULL fpga_op without driver Michal Simek
2015-01-14  9:04 ` [U-Boot] [PATCH 05/11] fpga: xilinx: spartan3: " Michal Simek
2015-01-14  9:04 ` [U-Boot] [PATCH 06/11] fpga: xilinx: virtex2: " Michal Simek
2015-01-14  9:04 ` [U-Boot] [PATCH 07/11] fpga: xilinx: virtex2: Fix macro indentation Michal Simek
2015-01-14  9:04 ` [U-Boot] [PATCH 08/11] fpga: xilinx: zynqpl: Setup NULL fpga_op without driver Michal Simek
2015-01-14  9:04 ` [U-Boot] [PATCH 09/11] fpga: xilinx: Check if fpga operations are defined Michal Simek
2015-01-14 15:14   ` Simon Glass
2015-01-14 15:17     ` Michal Simek
2015-01-14  9:04 ` [U-Boot] [PATCH 10/11] fpga: xilinx: Show fpga info if defined Michal Simek
2015-01-14 15:16   ` Simon Glass
2015-01-14  9:04 ` [U-Boot] [PATCH 11/11] fpga: zynqpl: Add support for zc7035 Michal Simek
2015-01-14 15:11 ` [U-Boot] [PATCH 01/11] fpga: Protect GZIP usage when LOADMK is enabled Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.