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

Re: still problems with kernel compiling



> 
> No, I haven't given up yet..
> 

good - this particular fix isn't too bad.

> and no matter which kernel i use (2.4.5, 2.4.6 or 2.4.7) I get almost the
> same Error-Message:
> 
> config.c: In function `config_mac':
> config.c:232: `SYSRQ_KEY' undeclared (first use in this function)
> config.c:232: (Each undeclared identifier is reported only once
> config.c:232: for each function it appears in.)
> make[2]: *** [config.o] Error 1
> make[2]: Leaving directory
> `/mnt/nivz-90-gig-pladde.de/erste-partition/linux/arch/m68k/mac'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory
> `/mnt/nivz-90-gig-pladde.de/erste-partition/linux/arch/m68k/mac'
> make: *** [_dir_arch/m68k/mac] Error 2
> 
> mh... and it doesn't matter if I disable Kernel-Hacking... same
> error-message..
> 
> Could you please help me?
> 


go into arch/m68k/mac/ and edit config.c.  Around line 232 you will see:

#elif defined(CONFIG_ADB_KEYBOARD)
        mach_keyb_init       = mackbd_init_hw;
        mach_kbd_leds        = mackbd_leds;
        mach_kbd_translate   = mackbd_translate;
        mach_sysrq_xlate     = mackbd_sysrq_xlate;
        SYSRQ_KEY = 0x69;
#endif /* CONFIG_INPUT_ADBHID */


Another #ifdef should be present, so make it look something like this:


#elif defined(CONFIG_ADB_KEYBOARD)
        mach_keyb_init       = mackbd_init_hw;
        mach_kbd_leds        = mackbd_leds;
        mach_kbd_translate   = mackbd_translate;
#ifdef CONFIG_MAGIC_SYSRQ
        mach_sysrq_xlate     = mackbd_sysrq_xlate;
        SYSRQ_KEY = 0x69;
#endif /* CONFIG_MAGIC_SYSRQ */
#endif /* CONFIG_INPUT_ADBHID */
 

hopefully that will fix this particular compile problem.  I remember running
into that same thing in Ray Knight's 2.4.1.  Not even a big enough fix to
warrant a patch...

Rob Lineweaver
:)




Reply to: