[PATCH 06/15] add-kboot-h.patch

Andy Green andy at openmoko.com
Wed Aug 13 01:59:19 CEST 2008


kboot.h includes the common things and some externs

Signed-off-by: Andy Green <andy at openmoko.com>
---

 include/serial.h  |    1 -
 src/kboot.h       |   14 ++++++++++++++
 src/serial.c      |    2 +-
 src/start_kboot.c |    2 +-
 4 files changed, 16 insertions(+), 3 deletions(-)
 create mode 100644 src/kboot.h

diff --git a/include/serial.h b/include/serial.h
index 4e0f0b4..12e2ae9 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -20,7 +20,6 @@
  * MA 02111-1307 USA
  */
 
-#include <stdarg.h>
 
 #ifndef __SERIAL_H__
 #define __SERIAL_H__
diff --git a/src/kboot.h b/src/kboot.h
new file mode 100644
index 0000000..037a5d0
--- /dev/null
+++ b/src/kboot.h
@@ -0,0 +1,14 @@
+
+#ifndef __KBOOT_H__
+#define __KBOOT_H__
+
+#include <stdarg.h>
+#include "serial.h"
+#include "ctype.h"
+
+int printk(const char *fmt, ...);
+int vsprintf(char *buf, const char *fmt, va_list args);
+void puts(const char *string);
+
+#endif
+
diff --git a/src/serial.c b/src/serial.c
index 09bb177..9c7e7f9 100644
--- a/src/serial.c
+++ b/src/serial.c
@@ -20,8 +20,8 @@
  * MA 02111-1307 USA
  */
 
-#include "serial.h"
 #include "blink_led.h"
+#include "kboot.h"
 
 #define DEBUG_CONSOLE_UART 2
 
diff --git a/src/start_kboot.c b/src/start_kboot.c
index 70ece03..76a1c34 100644
--- a/src/start_kboot.c
+++ b/src/start_kboot.c
@@ -21,7 +21,7 @@
  */
 #include "blink_led.h"
 #include "nand_read.h"
-#include "serial.h"
+#include "kboot.h"
 /*
 unsigned char buf[]={
 0x0d,0xc0,0xa0,0xe1,0x00,0xd8,0x2d,0xe9,0x04,0xb0,0x4c,0xe2,0x4c,0x20,0x9f,0xe5,





More information about the openmoko-kernel mailing list