From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5500A3DD.2070306@xenomai.org> Date: Wed, 11 Mar 2015 21:21:49 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <54F97594.2060605@xenomai.org> <54F97E05.8010107@xenomai.org> <54FF64AF.5000300@xenomai.org> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Fwd: Error boilerplate/wrappers.h no found trying to compile RTDM module on 3.x-rc3 cobalt List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Helder Daniel Cc: "Xenomai@xenomai.org" 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.