Darshan
Darshan

Reputation: 21

Unable to create Petalinux BSP in Xilinx SDK

I am trying to build Petalinux BSP in Xilinx SDK by following the steps given in UG978 document, but i am getting following error.

ERROR:EDK - petalinux () - can't read "env(PETALINUX)": no such variable

make: *** [ps7_cortexa9_0/lib/libxil.a] Error 2

ERROR:EDK - Error(s) while running DRCs.

make: Target `all' not remade because of errors.

What may be the reason for these errors?? Thanks in Advance

Upvotes: 0

Views: 1697

Answers (1)

Andreas Gschossmann
Andreas Gschossmann

Reputation: 709

Did you source the settings.sh script from the directory of your petalinux installation?

$ source <path-to-installed-PetaLinux>/settings.sh

As mentioned in Xilinx petalinux tools documentation: http://www.xilinx.com/support/documentation/sw_manuals/petalinux2015_2/ug1144-petalinux-tools-reference-guide.pdf

Also check if the PETALINUX environment variable is set correctly to your installation path:

echo $PETALINUX

Upvotes: 1

Related Questions