The generated SDK has to be installed/extracted to a directory. The following command extracts the SDK to a specified directory. The default SDK is <proj_proot>/images/linux/sdk.sh and default installation directory is <proj_proot>/images/linux/sdk/.
petalinux-package --sysroot -s|--sdk <custom sdk path> -d|--dir <custom directory path>