UBUNTU 18.04.6 在编译LINUX内核的时候执行MAKE ARCH=ARM SOCFPGA_DEFCONFIG提示Can't find default configuration "arch/x86/configs/socfpga_defconfig"

发布时间 2023-12-13 16:17:22作者: Doreen的FPGA自留地

 Intel 针对 SoC FPGA 芯片 提供的Linux 源码中已经提供好了一个名为socfpga_defconfig 的配置文件,我们对内核的配置和修改,建议基于此配置文件进行,因此在进行配置前,需要先将该配置文件导入到默认配置文件.config中,操作方法很简单。

 

在终端输入make ARCH=arm socfpga_defconfig命令来选择厂家提供的基本配置设置,提示:

*** Can't find default configuration "arch/x86/configs/socfpga_defconfig"!
***
scripts/kconfig/Makefile:94: recipe for target 'socfpga_defconfig' failed
make[1]: *** [socfpga_defconfig] Error 1
Makefile:616: recipe for target 'socfpga_defconfig' failed
make: *** [socfpga_defconfig] Error 2

这个问题常见在没有设置好架构的makefile中,当makefile没有指定架构时,会使用host机架构

解决方法:
修改顶层Makefile文件

 

 

 

ARCH        ?= $(SUBARCH)   改为:ARCH        ?= arm

 

改完后再次执行make ARCH=arm socfpga_defconfig得到如图所示结果: