gpt4 book ai didi

android - 为 Android 构建 Vanilla 内核时出错

转载 作者:行者123 更新时间:2023-11-30 04:12:44 25 4
gpt4 key购买 nike

我正在尝试为 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)
{
...

如何解决?我没有更改源代码中的任何内容

最佳答案

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

本网站可能会对您有所帮助。 ^^

关于android - 为 Android 构建 Vanilla 内核时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10564090/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com