I am planning to do some Rasperry Pi C/C++ kernel module development using BuildRoot 2015.08.1.
- I can build a kernel and a rootfs and boot the Raspberry Pi.
- I can build/rebuild a "hello world" using the BuildRoot toolchain either as a generic-package or an autotools-package.
What does not work:
- I cannot include some kernel headers, for instance linux/module.h. The toolchain does not find this header file.
I had a look at output/staging/usr/include. I can find some linux headers, for instance linux/net.h. However others are not there, for instance linux/module.h.
The header I am looking for is present in the kernel source tree. However it does not appear to be installed to staging. I am not 100% sure that BuildRoot called "make headers_install", but it seems like a reasonable assumption. Would anyone have any pointers to how "make headers_install" selects the headers to be installed? Or am I missing something else?