[PATCH 10/15] pbl: Add support for memory_display
Sascha Hauer
s.hauer at pengutronix.de
Tue Jan 27 23:32:14 PST 2015
The PBL has console support now, so add memory_display support aswell
which can be a good debugging aid.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
common/Makefile | 1 +
pbl/console.c | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/common/Makefile b/common/Makefile
index 282ddbc..ee5dca7 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -1,5 +1,6 @@
obj-y += memory.o
obj-y += memory_display.o
+pbl-$(CONFIG_PBL_CONSOLE) += memory_display.o
obj-y += clock.o
obj-y += console_common.o
obj-y += startup.o
diff --git a/pbl/console.c b/pbl/console.c
index 3875e2a..a9859ad 100644
--- a/pbl/console.c
+++ b/pbl/console.c
@@ -30,3 +30,13 @@ int pr_print(int level, const char *fmt, ...)
return i;
}
+
+int ctrlc(void)
+{
+ return 0;
+}
+
+void console_putc(unsigned int ch, char c)
+{
+ putc_ll(c);
+}
--
2.1.4
More information about the barebox
mailing list