From any directory within the PetaLinux project, build the PetaLinux project.
The PetaLinux image files are generated in
Create a sysroot self-installer for the target Linux system
The generated sysroot package sdk.sh is located in
/images/linux directory and you can extract it when you need.