Hello Matti,
You can cross compile for the i.MX7 by extracting the toolchain for this processor.
You can extract the toolchain by running the same command within the yocto environment:
$ bitbake meta-toolchain
It would result on a script that you can run to install the toolchain with the settings for your machine.
I hope this information helps!
Regards,