mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* compile error report: CONFIG_CONSOLE_SIMPLE=y
@ 2019-10-03 12:26 duhuanpeng
  2019-10-03 13:38 ` duhuanpeng
  0 siblings, 1 reply; 2+ messages in thread
From: duhuanpeng @ 2019-10-03 12:26 UTC (permalink / raw)
  To: barebox

Hello, I cloned the lastest version(2019.10.3) of barebox,
compile error when set
  CONFIG_CONSOLE_SIMPLE=y

compile log:

(more logs...)
  ENVH    defaultenv/barebox_default_env.h
  CC      defaultenv/defaultenv.o
  ENV     defaultenv/defaultenv-2-base.bbenv
  ENV.S   defaultenv/defaultenv-2-base.bbenv.S
  AS      defaultenv/defaultenv-2-base.bbenv.o
  LD      defaultenv/built-in.o
  PBLLD   defaultenv/built-in-pbl.o
  ENVZ    defaultenv/barebox_zero_env
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      common/version.o
  LD      common/built-in.o
  PBLCC   common/pbl-imd-barebox.o
  PBLLD   common/built-in-pbl.o
  LD      barebox
common/built-in.o: In function `run_init':
common/startup.c:(.text.run_init+0x210): undefined reference to `console_ctrlc_allow'
common/built-in.o: In function `run_shell':
(.text.run_shell+0x44): undefined reference to `ctrlc_handled'
Unable to open input file barebox
Makefile:783: recipe for target 'barebox' failed
make: *** [barebox] Error 2


:D, could any one please fix this error~~


Regards,
Du Huanpeng




_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: compile error report: CONFIG_CONSOLE_SIMPLE=y
  2019-10-03 12:26 compile error report: CONFIG_CONSOLE_SIMPLE=y duhuanpeng
@ 2019-10-03 13:38 ` duhuanpeng
  0 siblings, 0 replies; 2+ messages in thread
From: duhuanpeng @ 2019-10-03 13:38 UTC (permalink / raw)
  To: barebox

From 13cf76cfb965abac9433447c71f46d6c7abb0c50 Mon Sep 17 00:00:00 2001
From: DU HUANPENG <u74147@gmail.com>
Date: Thu, 3 Oct 2019 21:27:40 +0800
Subject: [PATCH] fix compile error when set CONFIG_CONSOLE_SIMPLE=y

Signed-off-by: DU HUANPENG <u74147@gmail.com>
---
 common/console_simple.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/common/console_simple.c b/common/console_simple.c
index 385da2f..010e0b3 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -65,6 +65,9 @@ void console_flush(void)
 EXPORT_SYMBOL(console_flush);
 
 #ifndef ARCH_HAS_CTRLC
+void ctrlc_handled(void)
+{
+}
 /* test if ctrl-c was pressed */
 int ctrlc (void)
 {
@@ -73,6 +76,15 @@ int ctrlc (void)
 	return 0;
 }
 EXPORT_SYMBOL(ctrlc);
+
+void console_ctrlc_allow(void)
+{
+}
+
+void console_ctrlc_forbid(void)
+{
+}
+
 #endif /* ARCH_HAS_CTRC */
 
 int console_register(struct console_device *newcdev)
-- 
2.7.4





_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-10-03 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-03 12:26 compile error report: CONFIG_CONSOLE_SIMPLE=y duhuanpeng
2019-10-03 13:38 ` duhuanpeng

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