Re: [yocto] kernel headers missing head files when using SDK generated from populate_sdk

2024-11-17 Thread Crane via lists.yoctoproject.org
On Fri, Nov 15, 2024 at 11:22 AM, Gyorgy Sarvari wrote: > > Random idea: have you tried including kernel-devsrc when generating the > sdk? > > TOOLCHAIN_TARGET_TASK:append = " kernel-devsrc " > > This supposed to include the final files from the KERNEL_STAGING_DIR, > which should have all the g

Re: [yocto] kernel headers missing head files when using SDK generated from populate_sdk

2024-11-15 Thread Gyorgy Sarvari via lists.yoctoproject.org
Random idea: have you tried including kernel-devsrc when generating the sdk? TOOLCHAIN_TARGET_TASK:append = " kernel-devsrc " This supposed to include the final files from the KERNEL_STAGING_DIR, which should have all the generated headers and other stuff. (As a quick check having this task,

Re: [yocto] kernel headers missing head files when using SDK generated from populate_sdk

2024-11-14 Thread Crane via lists.yoctoproject.org
After further investigation, it looks like this is not the issue. The issues are: 1. Make looks for asm/types.h, but there is only asm-generic/types.h in include/uapi/linux folder. This can be addressed by creating a symbolic link to asm-generic in the same folder. It does address the kernel mo

Re: [yocto] kernel headers missing head files when using SDK generated from populate_sdk

2024-11-11 Thread Crane via lists.yoctoproject.org
It looks like that it is not because the kernel header misses head file, but the kernel header is for user application, not the one for kernel module. For example, in ./include/linux/types.h, there are below lines: > > #define __EXPORTED_HEADERS__ > #include > So, I am afraid that "populate_s

[yocto] kernel headers missing head files when using SDK generated from populate_sdk

2024-11-09 Thread Crane via lists.yoctoproject.org
Hello, I am using the SDK generated by populate_sdk to cross compile the programs. For user application, it work fine. For kernel modules, it shows the errors of missing include/uapi/linux/asm/types.h, arch/arm64/include/asm/cpucaps.h. Probably some other headers. I am using Linux 6.1.77. It lo