On 03/11/2015 06:30 PM, Helder Daniel wrote: > You need /lib/modules/$(shell uname -r)/build to refer to a kernel tree > prepared with the Xenomai kernel sources, i.e. scripts/prepare-kernel.sh > should have run in this source tree at some point. The errors you get > indicate that no Xenomai code can be found there. > > > I had > > /lib/modules/$(shell uname -r)/build > > pointing to the kernel headers installed from a .deb package. > This package was created when compiling the Cobalt kernel with: > > make-kpkg --initrd kernel_image kernel_headers > > so I assumed that all Xenomai code is included in that package. > > Now I pointed to the kernel source tree and I can compile the module. > > This is strange. I was expecting that the kernel headers package created > with debian build to store all Xenomai info, so that I can install a > cobalt kernel image + headers in another computer, from 2 debian > packages (I did this before successfully with Xenomai 2.5.x) without > having to copy all the kernel source tree. >
Following the current kernel standards, Xenomai 3 introduces a strict split between kernel headers and user-space ones, with a uapi/ section for the shared portion which exposes the ABI. Maybe debian/rules does not reflect that change. -- Philippe. _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
