lkml.org 
[lkml]   [2000]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Issue compiling 2.4test10
> I am attempting to cross-compile a 2.4 kernel for a PowerPC arch on an
> Intel machine, of which I have Debian 2.2 installed. I have successfully
> compiled a 2.4test9 kernel, but I got the following error message the first
> time I compiled (it failed due to this):
>
> powerpc-unknown-linux-gnu-ld -T arch/ppc/mm/mm.o <blah blah blah on same
> command for about 11 lines>
> drivers/input/inputdrv.o: In function 'keybdev_event':
> drivers/input/inputdrv.o(.text+0x16bc): undefined reference to 'emulate_raw'
> drivers/input/inputdrv.o(.text+0x16bc): relocation truncated to fit:
> R_PPC_REL24 emulate_raw
> make: *** [vmlinux] Error 1

Would this patch help?

--- drivers/input/keybdev.c.org Thu Nov 2 10:13:39 2000
+++ drivers/input/keybdev.c Thu Nov 2 10:19:43 2000
@@ -36,7 +36,7 @@
#include <linux/module.h>
#include <linux/kbd_kern.h>

-#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(__alpha__) || defined(__mips__)
+#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(__alpha__) || defined(__mips__) || defined(CONFIG_MAC_HID)

static int x86_sysrq_alt = 0;

@@ -133,8 +133,10 @@
{
if (type != EV_KEY) return;

+#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(__alpha__) || defined(__mips__) || defined(CONFIG_MAC_HID) || defined(CONFIG_ADB_KEYBOARD)
if (emulate_raw(code, down))
printk(KERN_WARNING "keyboard.c: can't emulate rawmode for keycode %d\n", code);
+#endif

tasklet_schedule(&keyboard_tasklet);
}
Untested, of course.

Michael

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.038 / U:3.680 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site