选a5k做个试验,编译按以下步骤进行:
make mrproper
make a5k_config
make oldconfig
此时出现许多选项,所有选项都打回车
make dep
make clean
make
编了一会儿,keyboard.c出错,变量没有定义
keyboard.c: In function `handle_scancode':
keyboard.c:280: warning: implicit declaration of function `kbd_processkeycode'
keyboard.c: At top level:
keyboard.c:289: warning: `kbd_processkeycode' was declared implicitly `extern' and later `static'
keyboard.c:280: warning: previous declaration of `kbd_processkeycode'
keyboard.c:289: warning: type mismatch with previous implicit declaration
keyboard.c:280: warning: previous implicit declaration of `kbd_processkeycode'
keyboard.c:289: warning: `kbd_processkeycode' was previously implicitly declared to return `int'
keyboard.c: In function `kbd_processkeycode':
keyboard.c:305: `kbd_repeatkeycode' undeclared (first use in this function)
keyboard.c:305: (Each undeclared identifier is reported only once
keyboard.c:305: for each function it appears in.)
keyboard.c:332: `kbd_repeatinterval' undeclared (first use in this function)
keyboard.c:334: `kbd_repeattimeout' undeclared (first use in this function)
keyboard.c: In function `kbd_bh':
keyboard.c:1000: `kbd_repeatkeycode' undeclared (first use in this function)
keyboard.c: In function `kbd_refresh_leds':