Your question seems not to be specific to any of the NXP products, but to be a kind of general Linux development question.
So, first, please refer to generally available Linux developer resources.
Some general Linux development related Application Note documents are available from NXP:
https://www.nxp.com/docs/en/application-note/AN3870.pdf https://www.nxp.com/docs/en/application-note/AN4553.pdf
Also, please refer to the documentation, specific to the Linux BSP you use.
Best Regards,
Artur