u-boot from code aurora fails to build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

u-boot from code aurora fails to build

Jump to solution
4,294 Views
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?

Labels (2)
1 Solution
3,411 Views
turker
Contributor IV

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

View solution in original post

0 Kudos
Reply
3 Replies
3,411 Views
Yuri
NXP Employee
NXP Employee
0 Kudos
Reply
3,412 Views
turker
Contributor IV

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

0 Kudos
Reply
3,411 Views
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 Kudos
Reply