The INCOMPATBLE_LICENSE flag is used to control which packages are included in the final root file system configuration based on the license.
If you want to exclude packages based on license, you can edit the <plnx-proj-root>/project-spec/conf/petalinuxbsp.conf
file. For example, set INCOMPATBLE_LICENSE = "GPLv3"
, run the petalinux-build
command.