Use the following command sequence:
sudo chmod 777 /opt/fsl-networking/QorIQ-SDK-V1.7/environment-setup-ppce500v2-fsl-linux-gnuspe
source /opt/fsl-networking/QorIQ-SDK-V1.7/environment-setup-ppce500v2-fsl-linux-gnuspe
powerpc-fsl-linux-gnuspe-gcc test.c --sysroot=/opt/fsl-networking/QorIQ-SDK-V1.7/sysroots/ppce500v2-fsl-linux-gnuspe/ -o test.elf
Look at setting in the "environment-setup-ppce500v2-fsl-linux-gnuspe" file.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------