<div dir="ltr">Hello,<div>I'm beginning a process to try to build zfs-on-linux for my image (as I have yet to find any existing work in this area), and am running into some trouble building out of tree kernel modules with autotools.</div><div><br></div><div>I've been loosely basing my recipe off of the one over here: <a href="https://github.com/Freescale/meta-freescale/blob/master/recipes-kernel/kernel-modules/kernel-module-perf-qoriq_0.8.2.bb">https://github.com/Freescale/meta-freescale/blob/master/recipes-kernel/kernel-modules/kernel-module-perf-qoriq_0.8.2.bb</a></div><div><br></div><div>Here is the current recipe:</div><div><br></div><div><snip></div><div><div>inherit module autotools</div><div>SRC_URI = "<a href="http://archive.zfsonlinux.org/downloads/zfsonlinux/spl/spl-0.6.5.6.tar.gz">http://archive.zfsonlinux.org/downloads/zfsonlinux/spl/spl-0.6.5.6.tar.gz</a>"</div><div>SRC_URI[md5sum] = "4544b80018ddc5c39ed395363a582228"</div><div>SRC_URI[sha256sum] = "167595fe76eb5497c3a1ffe396b6300155d0cbe46d06824a710099ca1ae1b8bd"</div><div>EXTRA_OECONF += "--with-config=kernel --with-linux=${KERNEL_PATH}"</div></div><div><snip></div><div><br></div><div>This recipe builds fine, except that it's using the installed kernel sources for the base ubuntu system rather than those build by yocto. I can confirm that the kernel has already been built, and sources are available, however when entering into the devshell for this package neither KERNEL_SRC nor KERNEL_PATH are defined (they are simply empty), despite what the documentation for the module bbclass indicates. </div><div><br></div><div>It seems I'm missing something important here? Also any other references to examples of building these types of modules would be greatly appreciated.</div><div><br></div><div>Regards,</div><div>Matt</div></div>