Eric Reischer wrote: > > Sorry about that.....I'm compiling a 2.4test9 kernel. And when I did the > config, I issued the command: > make CROSS_COMPILE=powerpc-unknown-linux-gnu- ARCH=ppc config > which automatically put the CONFIG_PPC entry in the autoconf.h file. [] > > > drivers/input/inputdrv.o: In function 'keybdev_event': > > > drivers/input/inputdrv.o(.text+0x16bc): undefined reference to > > 'emulate_raw'
OK, since what you are describing is impossible with the version of drivers/input/keybdev.c I have (from the bitkeeper linuxppc tree), I had a look at the version supplied with the "official" 2.4.0test9. That's a really weird one, and the word "crap" you used seems justified: The function emulate_raw is used without any ifs, but its definition some lines earlier is enclosed in either #if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(__alpha__) || defined(__mips__) or #elif defined(CONFIG_ADB_KEYBOARD) So in your case you would need to put CONFIG_ADB_KEYBOARD=y into your .config file. Or change these weird #ifs. The bitkeeper version of the file is somewhat better in that it uses only one set of conditionals, #if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(__alpha__) || defined (__mips__) || defined(CONFIG_PPC) but the function is still used without any condition. -- Martin