u-boot from code aurora fails to build

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

u-boot from code aurora fails to build

跳至解决方案
4,699 次查看
dcrutchley
Contributor II

I have downloaded the Linux kernel from code aurora using as per the instructions in the i.MX porting guide:

$ export CROSS_COMPILE=arm-linux-gnueabihf-
$ export ARCH=arm
$ git clone https://source.codeaurora.org/external/imx/linux-imx -b imx_4.14.98_2.0.0_ga
$ cd linux-imx
$ make distclean
$ make imx_v7_defconfig
$ make

This behaves correctly and builds the kernel without error.

When I try to do the same for u-boot from code aurora, again following the porting guide:

$ export CROSS_COMPILE=arm-linux-gnueabihf-
$ export ARCH=arm
$ git clone https://source.codeaurora.org/external/imx/uboot-imx -b imx_v2018.03_4.14.98_2.0.0_ga
$ cd uboot-imx
$ make clean
$ make mx6sabresd_defconfig
$ make u-boot.imx

U-boot fails to build and I get the following error:

scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  CFG     u-boot.cfg
In file included from ./include/common.h:21:0:
include/config.h:6:10: fatal error: configs/.h: No such file or directory
 #include <configs/.h>
          ^~~~~~~~~~~~
compilation terminated.
scripts/Makefile.autoconf:79: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.

Any ideas as to what is causing u-boot to not build?

标签 (2)
1 解答
3,816 次查看
turker
Contributor IV

After "make mx6sabresd_defconfig", try choosing your board from "make menuconfig --> ARM architecture --> MX6 board select".

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,816 次查看
Yuri
NXP Employee
NXP Employee
0 项奖励
回复
3,817 次查看
turker
Contributor IV

After "make mx6sabresd_defconfig", try choosing your board from "make menuconfig --> ARM architecture --> MX6 board select".

0 项奖励
回复
3,816 次查看
dcrutchley
Contributor II

Hi Tahsin,

Thanks for the help. That worked. I'm pretty sure this step wasn't mentioned in the i.MX Porting Guide PDF. But at least I know for the future.

Best regards

Duncan

0 项奖励
回复