Cross compile application with sdk2.0 QorIQ-SDK-V2.0-20160527-yocto toolchain

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cross compile application with sdk2.0 QorIQ-SDK-V2.0-20160527-yocto toolchain

882 Views
tijujacob
Contributor I

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

Labels (1)
0 Kudos
1 Reply

456 Views
tijujacob
Contributor I

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"

0 Kudos