public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] spl: dfu: compilation fixes for spl-dfu
@ 2017-04-18 14:25 Ravi Babu
  2017-04-18 14:44 ` Lukasz Majewski
  0 siblings, 1 reply; 6+ messages in thread
From: Ravi Babu @ 2017-04-18 14:25 UTC (permalink / raw)
  To: u-boot

This patch fixes the compilation error
common/cli_hush.c:3349: undefined reference to 'realloc_simple'

The dfu uses run_command(), it is part of cli_hush.c
but defining CONFIG_HUSH_PARSER for spl-dfu causes
this compilation error.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
---
 common/cli.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/cli.c b/common/cli.c
index a433ef2..5e0869b 100644
--- a/common/cli.c
+++ b/common/cli.c
@@ -28,7 +28,7 @@ DECLARE_GLOBAL_DATA_PTR;
  */
 int run_command(const char *cmd, int flag)
 {
-#ifndef CONFIG_HUSH_PARSER
+#if defined(CONFIG_SPL_DFU_SUPPORT) || !defined(CONFIG_HUSH_PARSER)
 	/*
 	 * cli_run_command can return 0 or 1 for success, so clean up
 	 * its result.
-- 
1.9.1

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

end of thread, other threads:[~2017-04-20 12:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1492589976-11595-1-git-send-email-ravibabu@ti.com>
2017-04-19 10:53 ` [U-Boot] [PATCH] spl: dfu: compilation fixes for spl-dfu Lukasz Majewski
2017-04-19 11:00   ` B, Ravi
2017-04-20 12:49   ` B, Ravi
2017-04-18 14:25 Ravi Babu
2017-04-18 14:44 ` Lukasz Majewski
2017-04-19  7:19   ` B, Ravi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox