Hi,
I have generated a toolchain using bitbake fsl-toolchain for the T1042rdb
When cross-compiling app/kernel module, I get the following error.
powerpc-fsl-linux-ld -EB -m elf32ppc -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -static -lnsl -lpthread -lm -lrt -Wl,--relax -r -o /home/tiju/projects/sdk/LATEST/sdk-xgs-robo-6.5.7/build/linux-gto/gto/systems/linux/kernel/modules/uk-proxy/kernel_module/linux-uk-proxy.o /home/tiju/projects/sdk/LATEST/sdk-xgs-robo-6.5.7/build/linux-gto/gto/systems/linux/kernel/modules/uk-proxy/kernel_module/obj_linux-uk-proxy.o
powerpc-fsl-linux-ld: unrecognized option '-Wl,-O1'
powerpc-fsl-linux-ld: use the --help option for usage information
Has anyone come across a similar issue or Can anyone suggest how to resolve it?
Thanks and Regards,
Tiju
Was able to resolve the issue by removing the LDFLAGS exported by /opt/fsl-qoriq/2.0/environment-setup-ppce5500-fsl-linux
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"