adding driver code to kernel source & build kernel

i want to add my driver source code to l4t source and build it along with kernel build

can u share the steps to add my driver in source ?? i know kernel building steps, i just want to enable my driver in source & when i do make modules it should also build along with other modules.

If you cross compile, then of course there are more details than native compile. However, there are a lot of tutorials on adding new modules or drivers. Some examples:
https://hardikpatelblogs.wordpress.com/2010/11/19/8/
https://www.linuxjournal.com/content/kbuild-linux-kernel-build-system
https://www.apriorit.com/dev-blog/195-simple-driver-for-linux-os

The basic kernel feature which tells the build scripts a feature can be configured is “Kconfig”. So among the above URLs take a close look at any description for Kconfig.