我正在尝试为Android(Nexus S)构建当前(来自git)的vanilla Linux内核,我这样做:
$ adb pull /proc/config.gz
$ cat config.gz | gunzip > .config
$ export PATH=$PATH:<...>/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin
$ export CROSS_COMPILE=arm-eabi-
$ make
之后我让所有新选项都是默认的。 我收到以下错误:
CC arch/arm/mach-s5pv210/common.o
arch/arm/mach-s5pv210/common.c:169: error: expected identifier or '(' before 'void'
arch/arm/mach-s5pv210/common.c:169: error: expected ')' before numeric constant
arch/arm/mach-s5pv210/common.c:201: error: expected identifier or '(' before 'void'
arch/arm/mach-s5pv210/common.c:201: error: expected ')' before numeric constant
arch/arm/mach-s5pv210/common.c:239: error: expected identifier or '(' before 'void'
arch/arm/mach-s5pv210/common.c:239: error: expected ')' before numeric constant
arch/arm/mach-s5pv210/common.c:247: error: expected identifier or '(' before 'void'
arch/arm/mach-s5pv210/common.c:247: error: expected ')' before numeric constant
make[1]: *** [arch/arm/mach-s5pv210/common.o] Error 1
make: *** [arch/arm/mach-s5pv210] Error 2
那就是那条线:
...
}
void __init s5pv210_map_io(void)
{
...
如何解决?我没有更改源代码中的任何内容