The contents of images generated by the OpenEmbedded build system can be controlled by the IMAGE_FEATURES and EXTRA_IMAGE_FEATURES variables that you typically configure in your image recipes. Through these variables, you can add several different predefined packages such as development utilities or packages with debug information needed to investigate application problems or profile applications.
To remove any default feature, add the following code in the petalinuxbsp.conf:
IMAGE_FEATURES:remove = "ssh-server-dropbear"
To add any new feature, add the following command in the petalinuxbsp.conf:
IMAGE_FEATURES:append = " myfeature"