first, you can refer to the yocto user guide, if you use 8mn, you can choose the machine name
for example,
$ DISTRO=fsl-imx-xwayland MACHINE=imx8mnevk source imx-setup-release.sh -b build-xwayland
$ bitbake imx-image-full
these commands are full image based on xwayland backend, you can change image what you need, pls refer to the Table 1. i.MX Yocto project images of yocto user guide, you also can change fsl-imx-xwayland fsl-imx-wayland