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?
已解决! 转到解答。