summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorYANG Qiao <yangqiao0505@me.com>2015-08-10 07:48:58 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-08-11 08:37:46 -0500
commit45d47730cebfd6fddfe4f447478b8afdf9f379c3 (patch)
tree850065c387f2a239c133d0ddafc4b6a874ef73c9 /tools
parent3f3582f9331086a6aa0ede90f451ce5a0a0dae66 (diff)
add microwindows patches
Diffstat (limited to 'tools')
-rw-r--r--tools/4.11/microwindows/microwindows-0.93-dev-without-keyboard.diff14
-rw-r--r--tools/4.11/microwindows/microwindows-0.93-dev.diff54
2 files changed, 68 insertions, 0 deletions
diff --git a/tools/4.11/microwindows/microwindows-0.93-dev-without-keyboard.diff b/tools/4.11/microwindows/microwindows-0.93-dev-without-keyboard.diff
new file mode 100644
index 0000000..2d58954
--- /dev/null
+++ b/tools/4.11/microwindows/microwindows-0.93-dev-without-keyboard.diff
@@ -0,0 +1,14 @@
+diff --git a/src/drivers/Objects.rules b/src/drivers/Objects.rules
+--- a/src/drivers/Objects.rules
++++ b/src/drivers/Objects.rules
+@@ -253,8 +253,8 @@ MW_CORE_OBJS += $(MW_DIR_OBJ)/drivers/kbd_pipe.o
+ endif
+
+ ifeq ($(ARCH), RTEMS)
+-MW_CORE_OBJS += $(MW_DIR_OBJ)/drivers/kbd_rtems.o
+-MW_CORE_OBJS += $(MW_DIR_OBJ)/drivers/mou_rtems.o
++MW_CORE_OBJS += $(MW_DIR_OBJ)/drivers/kbd_null.o
++MW_CORE_OBJS += $(MW_DIR_OBJ)/drivers/mou_null.o
+ endif # RTEMS architecture
+
+ ifeq ($(LIRCKBD2), Y)
diff --git a/tools/4.11/microwindows/microwindows-0.93-dev.diff b/tools/4.11/microwindows/microwindows-0.93-dev.diff
new file mode 100644
index 0000000..5960fe0
--- /dev/null
+++ b/tools/4.11/microwindows/microwindows-0.93-dev.diff
@@ -0,0 +1,54 @@
+diff --git a/src/drivers/kbd_rtems.c b/src/drivers/kbd_rtems.c
+--- a/src/drivers/kbd_rtems.c
++++ b/src/drivers/kbd_rtems.c
+@@ -30,9 +30,12 @@
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <errno.h>
++#include <string.h>
+
+ #include <rtems/mw_uid.h>
++#include <bsp/keyboard.h>
+ #include "device.h"
++#include "keymap_standard.h"
+
+ extern int close (int fd); /* RTEMS does not include close() in stdio.h */
+
+@@ -45,6 +48,9 @@ void MWKbd_Close (void);
+ void MWKbd_GetModifierInfo (MWKEYMOD *modifiers, MWKEYMOD *curmodifiers);
+ int MWKbd_Read (MWKEY *buf, MWKEYMOD *modifiers, MWSCANCODE *scancode);
+
++static MWKEY TranslateScancode(int scancode, MWKEYMOD modstate);
++static void LoadKernelKeymaps(int fd);
++
+ KBDDEVICE kbddev = {
+ MWKbd_Open,
+ MWKbd_Close,
+diff --git a/src/Configs/config.rtems b/src/Configs/config.rtems
+index 129860f..0872d8c 100644
+--- a/src/Configs/config.rtems
++++ b/src/Configs/config.rtems
+@@ -67,8 +67,8 @@ OBJFRAMEWORK = N
+ # Demos to build
+ #
+ ####################################################################
+-MICROWINDEMO = Y
+-NANOXDEMO = Y
++MICROWINDEMO = N
++NANOXDEMO = N
+
+ ####################################################################
+ #
+diff --git a/src/rtems/rtems_init.c b/src/rtems/rtems_init.c
+index 70a4639..1a4f8f2 100644
+--- a/src/rtems/rtems_init.c
++++ b/src/rtems/rtems_init.c
+@@ -38,7 +38,7 @@
+ /* TBD: Find better way than this to deal with BSPs which do not have
+ * these driver entries. This is a hacky cover up.
+ */
+-#if 0
++#if 1
+
+ #ifndef PAUX_DRIVER_TABLE_ENTRY
+ #define PAUX_DRIVER_TABLE_ENTRY NULL_DRIVER_TABLE_ENTRY