编译 Linux 内核 时出现 Restart config 问题

时间:2019-10-11 13:36:33   收藏:0   阅读:1113
scripts/kconfig/conf --silentoldconfig Kconfig
*
* Restart config...
*
*
* Enable the block layer
*
Enable the block layer (BLOCK) [Y/?] y
  Support for large (2TB+) block devices and files (LBDAF) [Y/n/?] (NEW) ^Cscripts/kconfig/Makefile:36: recipe for target silentoldconfig failed
make[2]: *** [silentoldconfig] Interrupt
Makefile:541: recipe for target silentoldconfig failed
make[1]: *** [silentoldconfig] Interrupt

 

出现以上问题时,一般是配置内核时,没有指定好架构和编译器。

解决方法:

  在配置内核时, 指定好对应的架构和编译器, 在配置完成以后save。

  在编译内核时,指定好配置时指定的架构和编译器,make 对应的镜像即可。

 

范例:


配置时:
make
ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- menuconfig

编译时:
make ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- uImage -j4

 

原文:https://www.cnblogs.com/schips/p/11653027.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!