简体   繁体   中英

Errors while building vanilla kernel for Android

I'm trying to build current (from git) vanilla Linux kernel for Android (Nexus S), I do following:

$ 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

After that I let all new options be default. And I'm getting the following errors:

  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

That's that line:

...
}

void __init s5pv210_map_io(void)
{
...

How to fix it? I didn't change anything in the source code

https://patchwork.kernel.org/patch/1940951/

this website will help you probably. ^^

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM