
正文
编译 Linux 内核 时出现 Restart config 问题
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
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:: recipe for target 'silentoldconfig' failed
make[]: *** [silentoldconfig] Interrupt
Makefile:: recipe for target 'silentoldconfig' failed
make[]: *** [silentoldconfig] Interrupt
出现以上问题时,一般是配置内核时,没有指定好架构和编译器。
解决方法:
在配置内核时, 指定好对应的架构和编译器, 在配置完成以后save。
在编译内核时,指定好配置时指定的架构和编译器,make 对应的镜像即可。
范例:
配置时:
make ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- menuconfig 编译时:
make ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- uImage -j4






