[yocto] Formulating Recipe for out-of-tree kernel module

Chris Trobridge christrobridge at hotmail.com
Mon May 9 04:15:26 PDT 2016


I am looking to produce a recipe for the amfeltec usb-fxs adaptor (http://amfeltec.com/products/piranha-usb-fxs-adapter/), with the intention of contributing this to the meta-telephony layer.
However, I have found a few obstacles to getting a clean recipe:The makefile produces both a kernel module and a user utility, with the latter being hard-coded to build with g++.  I can produce a recipe to produce one or other of the components but not both.  Given the structure of the build directories, should this be be achievable, or should I be spitting up the recipe in two?Dahdi header files and Modules.symvers are required.  A header file is used to deduce the version of Dahdi, Modules.symvers is required for the module build process.  Hence, requires the location of the Dahdi source/build directory.  This can be set relative to the amfeltec work directory but this feels wrong.
In more general terms my questions are:Should I split a recipe into kernel and non-kernel components?How should one out-of-tree recipe access the headers/Module.symvers from another (should that recipe be installing them in ${STAGING_KERNEL_DIR} (or somewhere else)?)
Cheers,Chris
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160509/1d684d48/attachment.html>


More information about the yocto mailing list