[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 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



Reply to: