[yocto] Out-of-tree kernel module is unbuildable
Clay D. Montgomery
clay at montgomery1.com
Fri Jul 13 20:18:13 PDT 2018
Hello,
I'm trying to add an external kernel module to my layer by following
this guide in the Yocto Kernel Development Manual and using the
recommended template:
2.10.2. Incorporating Out-of-Tree
Modules<https://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#incorporating-out-of-tree-modules>
poky/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb
However, bitbake always reports that my "Runtime target
'lightwing-camera' is unbuildable, removing..."
I would appreciate if someone could help me isolate this problem.
This is my new recipe for the module:
SUMMARY = "External kernel module for OV5645 MIPI camera"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
inherit module
SRC_URI = "file://Makefile \
file://ov5645_mipi.c \
file://COPYING \
"
S = "${WORKDIR}"
RPROVIDES_lightwing-camera = "lightwing-camera"
And this is my makefile:
obj-m := ov5645_mipi.o
SRC := $(shell pwd)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC)
modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install
clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order
rm -rf .tmp_versions Modules.symvers
Thank you, Clay Montgomery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180713/e57e0840/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clay.vcf
Type: text/x-vcard
Size: 262 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180713/e57e0840/attachment.vcf>
More information about the yocto
mailing list