Hi Mohammad
I guess Latest yocto community BSP support MX28 and python scripts, also you migth try the following link, For latest kernel support.:
GitHub - Ivan-SB/meta-fsl-di: layer for imx28 based board with display
The MX28 bsp include gcc support please check the release notes document.
i.MX280 Processors|Low-Power|NXP
Regards