I would like to build a custom kernel module for the debian that is running on my hikey960 board.
For this I would need kernel headers of the OS. What is the right option.
- Download the headers externally and cross-compile on a build server.
- Build the kernel module on the Hikey device itself.
Is there any detailed link for building modules?