I created a custom header file named soc-v4l2-controls.h inside the kernel source, and it is located in the include/uapi/linux folder.
What I want to achieve is to include this header file in the SDK sysroot. I build the SDK using the following command, but I cannot find the custom header file inside the sysroot, especially in the directory /opt/.../sysroots/cortexa53-poky-linux/usr/include/linux/.
bitbake core-image-soc -c populate_sdk
I have two questions regarding this issue:
PREFERRED_PROVIDER_virtual/kernel = "linux-soc"
Thank you for your help!
If your soc-v4l2-controls.h
correctly added to the kernel source of the Linux recipe, it will be deployed together with the full kernel sources in sysroot if you start to use kernel-devsrc in your installed Yocto recipe list.
If you like to provide soc-v4l2-controls.h
in usr/include/...
for any user-space stuff, you have to make a manual install task for it in a custom .bbappend recipes files.