[U-Boot] Attempting to cross compile u-boot tools for my arm target using yocto toolchain with no success.

Davis Roman davis.roman84 at gmail.com
Thu Sep 13 04:10:15 UTC 2018


Hello,

I'm banging my head trying to figure out why I'm unable to cross compile
the u-boot tools for my target.

Currently, I'm able to run the following commands without any issue:

davis at XPS-15-9560:/tmp/uboot-imx$ git clone git://
git.freescale.com/imx/uboot-imx.git
davis at XPS-15-9560:/tmp/uboot-imx$ git checkout imx_v2017.03_4.9.11_1.0.0_ga
davis at XPS-15-9560:/tmp/uboot-imx$ source
/opt/hon-grip-sdk/sdk/environment-setup-armv7ahf-neon-poky-linux-gnueabi
davis at XPS-15-9560:/tmp/uboot-imx$ echo $CC
arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard
--sysroot=/opt/hon-grip-sdk/sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi
davis at XPS-15-9560:/tmp/uboot-imx$ make mx6sxsabresd_defconfig
davis at XPS-15-9560:/tmp/uboot-imx$ make u-boot.imx -j8
davis at XPS-15-9560:/tmp/uboot-imx$ make tools

however I get an error when I run the following to cross compile the u-boot
tools:

davis at XPS-15-9560:/tmp/uboot-imx$ make cross_tools
  CHK     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/bmp_logo
In file included from ././include/compiler.h:19:0,
                 from ././include/libfdt_env.h:12,
                 from <command-line>:0:
/opt/hon-grip-sdk/sdk/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/include/stdint.h:9:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
scripts/Makefile.host:99: recipe for target 'tools/bmp_logo' failed
make[1]: *** [tools/bmp_logo] Error 1
Makefile:1229: recipe for target 'tools' failed
make: *** [tools] Error 2
davis at XPS-15-9560:/tmp/uboot-imx$


I would appreciate any suggestions.

Thank you,

Davis


More information about the U-Boot mailing list