| Summary: | Building modules outside the kernel uses linux-libc-headers not actual kernel headers (hello-mod) | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Other YP Layers | Reporter: | David Peverley <pev> |
| Component: | layers | Assignee: | David Peverley <pev> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | poky.bs.watcher, poky.watcher, richard.purdie |
| Version: | 1.5 | ||
| Target Milestone: | 1.8 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
David Peverley
2014-04-23 16:25:45 UTC
Bruce, I'm going to toss this one over to you - at least for your initial thoughts. When you actually build the module, it will use the kernel build system, which sets its own include paths and hence will find the sysroot/kernel source headers first. Do you have a specific build problem, or another test that shows this without devshell ? The hello-mod recipe uses module.bbclass and does not use linux-libc-headers. If you do things from the devshell, you will hit issues like this. I you have a proper recipe which doesn't work and more info, please reopen, otherwise I can't see the issue here. |