mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-04-21 12:27:27 +03:00
rtems patches: added new UART and IRQ rearrangement, plus include fix
Some of the include paths don't work. Not sure whether my patch is a correct fix or merely an awkward way to work around a problem that's somewhere else.
This commit is contained in:
39
m1/patches/rtems/fix-sysconf-includes.patch
Normal file
39
m1/patches/rtems/fix-sysconf-includes.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
Index: rtems/c/src/lib/libbsp/lm32/shared/milkymist_console/console.c
|
||||
===================================================================
|
||||
--- rtems.orig/c/src/lib/libbsp/lm32/shared/milkymist_console/console.c 2011-11-20 16:20:21.000000000 -0300
|
||||
+++ rtems/c/src/lib/libbsp/lm32/shared/milkymist_console/console.c 2011-11-20 16:20:25.000000000 -0300
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <rtems/termiostypes.h>
|
||||
#include <bsp/irq-generic.h>
|
||||
|
||||
-#include "../include/system_conf.h"
|
||||
+#include "../../milkymist/include/system_conf.h"
|
||||
#include "uart.h"
|
||||
|
||||
BSP_output_char_function_type BSP_output_char = BSP_uart_polled_write;
|
||||
Index: rtems/c/src/lib/libbsp/lm32/shared/milkymist_console/uart.c
|
||||
===================================================================
|
||||
--- rtems.orig/c/src/lib/libbsp/lm32/shared/milkymist_console/uart.c 2011-11-20 16:20:38.000000000 -0300
|
||||
+++ rtems/c/src/lib/libbsp/lm32/shared/milkymist_console/uart.c 2011-11-20 16:20:49.000000000 -0300
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
-#include "../include/system_conf.h"
|
||||
+#include "../../milkymist/include/system_conf.h"
|
||||
#include "uart.h"
|
||||
|
||||
void BSP_uart_init(int baud)
|
||||
Index: rtems/c/src/lib/libbsp/lm32/shared/milkymist_midi/midi.c
|
||||
===================================================================
|
||||
--- rtems.orig/c/src/lib/libbsp/lm32/shared/milkymist_midi/midi.c 2011-11-20 16:21:11.000000000 -0300
|
||||
+++ rtems/c/src/lib/libbsp/lm32/shared/milkymist_midi/midi.c 2011-11-20 16:22:01.000000000 -0300
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <bsp.h>
|
||||
#include <bsp/irq-generic.h>
|
||||
#include <rtems/libio.h>
|
||||
-#include "../include/system_conf.h"
|
||||
+#include "../../milkymist/include/system_conf.h"
|
||||
#include "milkymist_midi.h"
|
||||
|
||||
#define DEVICE_NAME "/dev/midi"
|
||||
Reference in New Issue
Block a user