[Buildroot] Cross-Compiling out-of-tree driver

Samuel Martin s.martin49 at gmail.com
Fri Apr 5 12:01:54 UTC 2013


Hi Andreas,

2013/4/5  <universeII at gmx.de>:
> Dear all,
> I'm trying to use buildroot to create a Linux system for our custom VME
> PowerPC board.
> I succeeded in modifying the kernel to run on our special hardware but I'm
> stuck in compiling a driver out-of-tree.
> In-kernel compilation is no problem but for development and debugging of
> drivers it is much simpler to be able to compile drivers quickly out-of-tree
> and insert/remove them manually.
> I started to compile a dummy driver out-of-tree on my linux PC which works
> fine. Now I'm trying to use the linux kernel inside buildroot tree (setting
> KDIR appropriately) and use the cross-compile tool from buildroot. I
> searched the buildroot documentation but only found instructions how to
> compile own applications/libraries. Also TODOs from the internet on
> cross-compiling drivers did not help.
> Maybe I just oversee some simple things
>
> Can anybody give me a hint, how to cross-compile a linux driver out-of-tree
> using buildroot?

To to this, you can try something similar to what lttng-modules does, see:
http://git.buildroot.net/buildroot/tree/package/lttng-modules/lttng-modules.mk

Regards,

-- 
Samuel



More information about the buildroot mailing list