Hi Kamil,
NXP provides BSPs with different kernel versions to build a linux image for NXP boards. Please go to www.nxp.com/imx7 and select the derivative you are using. Then go to DOCUMENTATION tab > Supporting Information and you can select the BSP with the kernel you like. Here you will find instructions to build a Linux Image for your board.
Regards,
Carlos
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------