I have installed SDK v1.4 for P2041 successfully and could build the images. sdk toolchain is installed in /opt/QorIQ-SDK-V1.4-20130625-yocto/ folder.
I am trying to do stand alone compilation of uboot and kernel sources taken from deploy directory.
I could do it successfully for kernel but facing the problem with uboot.
It stops compiling by showing foloowing error message -
powerpc-fsl_networking-linux-ld.bfd: cannot find -lgcc
make: *** [u-boot] Error 1
I had followed the sdk documentation to install tool chain and ran the script and set the environment. (Also redid this).
But this error does not go away.
I feel the following line in main Makefile is causing this -
PLATFORM_LIBGCC := -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
but I do not know how to fix this.
Please help to fix this error.