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 件の賞賛
返信