Best way to get kernel linux-headers on PX2?

Hi,

I am looking for a way to inlude linux-headers on PX2, as I have some drivers which I need to compile.
And these drivers need the linux-headers to be present.

Do I need to cross-compile it first and then put it on the image?
http://clfs.org/view/clfs-sysroot/arm/cross-tools/linux-headers.html

I think this command won’t work:
sudo apt-get install linux-headers-$(uname -r)

Couldn’t try it out, because PX2 not by hand right now.

Dear maxlein,

Could you please see below link for your question? Thanks.

http://docs.nvidia.com/drive/nvvib_docs/index.html#page/NVIDIA%20Vibrante%20Linux%20DPX%20Development%20Guide%2FSystem%20Programming%2Fsys_programming_kernel_toolchain.html