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

匿名 (未验证) 提交于 2019-12-02 21:56:30
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

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!