I have a Linux kernel for NXP i.MX6. There are some capture kernel modules in /driver/media/platform/mxc/capture
.
One of the files called mxc_v4l2_capture.c
. I had to change this file for using it with my own new kernel driver.
I created a repository with my driver and the sources for mxc_v4l2_capture
. Then I made a new Yocto recipe in my layer recipies-kernel -> kernel-modules->my-kernel-module.bb
Yocto can build these two kernel modules (my-kernel-module.ko
and mxc_v4l2_capture.ko
).
Okay, now there is a problem because the kernel recipe already builds the mxc_v4l2_capture
module. Therefore I want to manipulate the Makefile
for the original kernel modules and exclude the make
of mxc_v4l2_capture
.
I have created the patch but I don't know how to use the patch with Yocto. Where to place it and how can I call it?
Normally I put a patch into a .bbappend
file and finish but I don't know the name of the recipe that build the kernel modules.
It would be great if there is a way without manipulating this Makefile
.
Is there a way to solve this with my kernel module recipe?