I am able to successfully build a yocto based BLUEBOX SDK and also successfully programmed a flash/SDcard image.
Now I have copied a u-boot source from BLUEBOX yocto. Now I need to build a u-boot alone.
I have done followings:
1. export CC=~/NXP_bsp/QorIQ-SDK-V2.0-20160527-yocto/build_ls2084abbmini/tmp/sysroots/x86_64-linux/usr/bin/aarch64-fsl-linux/aarch64-fsl-linux-
2. cd to u-boot src
make ARCH=arm CROSS_COMPILE=${CC} distclean
make ARCH=arm CROSS_COMPILE=${CC} ls2084abbmini_defconfig
make ARCH=arm CROSS_COMPILE=${CC} -Wl-sysroot=~/NXP_bsp/QorIQ-SDK-V2.0-20160527-yocto/build_ls2084abbmini/tmp/sysroots/x86_64-linux/usr/bin/aarch64-fsl-linux
Getting following error:
aarch64-fsl-linux-ld.bfd: cannot find -lgcc
examples/standalone/Makefile:67: recipe for target 'examples/standalone/hello_world' failed
Hello Balaji Mohan,
Please try the following commands.
export PATH=$PATH:~/NXP_bsp/QorIQ-SDK-V2.0-20160527-yocto/build_ls2084abbmini/tmp/sysroots/x86_64-linux/usr/bin/aarch64-fsl-linux/
$ unset LDFLAGS
$ make CROSS_COMPILE=aarch64-fsl-linux- CC="aarch64-fsl-linux-gcc --sysroot=~/NXP_bsp/QorIQ-SDK-V2.0-20160527-yocto/build_ls2084abbmini/tmp/sysroots/ls2084abbmini” LD=aarch64-fsl-linux-ld
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------