====== headers ====== ===== kernel include vs libc include ===== How to use header file from current kernel not from distro ''/usr/include/linux'' ? Package ''linux-libc-headers'' provides ''/usr/include''. This is a description of this use case: [[https://docs.yoctoproject.org/dev-manual/new-recipe.html#using-headers-to-interface-with-devices|Using Headers to Interface with Devices]] There is no clean solution. If vendor provides custom kernel also should provides custom (patched) ''linux-libc-headers''. Solutions: * Some recipes copies needed .h files from ''STAGING_KERNEL_DIR'' to package source: * src/meta-openembedded/meta-oe/recipes-kernel/turbostat/turbostat_3.4.bb