9 Replies Latest reply on Dec 16, 2015 8:43 PM by dfwJones

    How to compile out-of-tree driver?


      We have a board that is based on the Galileo design and we have a device that needs a driver supplied by the vendor. The driver isn't part of the standard linux kernel.


      The driver source code we get from the vendor is based on Makefiles. I'm having a lot of trouble getting it to compile for our 3.8.7-yocto-standard kernel. We have no experience in writing custom recipes for bitbake.


      What I'm hoping exists is instructions for 3.8.7 and linux-headers that are similar to these 3.10.17 instructions.

      https://communities.intel.com/thread/62873 - GUIDE: compiling drivers for Poky 3.10.17-poky-edison+ directly on EDISON (in 10 steps :))


      The only other instructions I found are these:

      https://communities.intel.com/thread/77384 - Reconfiguring Linux kernel and adding drivers into Galileo’s Linux image

      but they assume the drivers are already in the kernel source tree and you just have to run menuconfig


      Failing that, is there somewhere that fully documents how to take a 3rd party driver and get it to build under bitbake? Perhaps even a "bitbake drivers for dummies" document?