[linux-yocto] Build Kernel module on target

Bodke, Kishore K kishore.k.bodke at intel.com
Thu Aug 16 16:31:24 PDT 2012


Hi Darren,

I am trying to build the Kernel Module on the target with sdk image.

I get the below error for all the kernel modules I am building.

== Build lib/librte_eal/linuxapp/igb_uio
make: *** /lib/modules/3.4.6-yocto-standard/build: No such file or directory.  Stop.
make[7]: *** [igb_uio.ko] Error 2

Makefile has the kernel source directory  set like below.

RTE_KERNELDIR = /lib/modules/$(shell uname -r)/build

And I see there is no build directory there in /lib/modules/3.4.6-yocto-standard .

I changed the RTE_KERNELDIR to

RTE_KERNELDIR =/usr/src/kernel

This time it went further to build the kernel module but failed for the

/usr/src/kernel/scripts/recordmcount: No such file or directory

I saw the ${STAGING_KERNEL_DIR} for the recordmcount.  There is no such file

I think we need  scripts/recordmcount to be a part of the final image?

Thanks
Kishore.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/linux-yocto/attachments/20120816/59475d53/attachment.html>


More information about the linux-yocto mailing list