由于 .config 导致内核构建失败

问题描述 投票:0回答:1

我正在尝试为arm架构构建一个Android内核,但它总是失败,并且给了我这个错误:

 Using /home/build/tommolini_android/omap-android-kernel as source for kernel
  /home/build/tommolini_android/omap-android-kernel is not clean, please run 'make mrproper'
  in the '/home/build/tommolini_android/omap-android-kernel' directory.
make[1]: *** [prepare3] Error 1
make[1]: *** Waiting for unfinished jobs....
  HOSTLD  scripts/mod/modpost
make[1]: *** wait: No child processes.  Stop.
make: *** [sub-make] Error 2

如果我在该目录中运行 make mrproper 并再次执行 make ARCH=arm -j8 ,它会说找不到 .config 文件:

***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
make: *** [sub-make] Error 2

我执行的命令是:

make ARCH=arm distclean
make ARCH=arm platformX4_defconfig
make ARCH=arm -j8

如何解决这个问题?有什么想法吗?

android build arm kernel
1个回答
0
投票

备份 .config 或完整内核文件夹。 运行它来清理“make mrproper”。 然后使用此命令“make menuconfig”重新配置 保存并出来。 现在运行“make” 然后进行android构建。 工具/bazel clean --expunge 工具/bazel构建//通用:kernel_aarch64_dist

© www.soinside.com 2019 - 2024. All rights reserved.