[4/8] v86d: compile against userspace safe kernel headers

Submitted by Bruce Ashfield on Feb. 27, 2013, 5:06 a.m. | Patch ID: 45183


Message ID d2e776bf3d05bf8005f30f32d24750093ce2efa0.1361940628.git.bruce.ashfield@windriver.com
State Accepted
Commit ec3d3fa9c20d466f24a0d26518ddd8dd8282fdb0
Headers show

Commit Message

Bruce Ashfield Feb. 27, 2013, 5:06 a.m.
v86d was building directly against the staged kernel in the target
sysroot. This has been fine in the past, but with recent (3.7) changes
to user headers into the "uapi" include structure, there are no longer

Without the preprocesor protection, v86d fails to build against any
kernel with uapi header files.

v86d doesn't actually need the whole kernel tree, the exported headers
are enough to build a working binary. This change sets the v86d variable
to ${STAGING_DIR_HOST}/usr, and once the v86d build adds "include" to the
end of KDIR, we have a valid include path to the target sysroot headers.

This also works for pre-uapi kernel headers, so the change is safe for
most (if not all) kernel's with properly exported headers.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
 meta/recipes-bsp/v86d/v86d_0.1.10.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-bsp/v86d/v86d_0.1.10.bb b/meta/recipes-bsp/v86d/v86d_0.1.10.bb
index 51829a3..2dbfbb5 100644
--- a/meta/recipes-bsp/v86d/v86d_0.1.10.bb
+++ b/meta/recipes-bsp/v86d/v86d_0.1.10.bb
@@ -27,7 +27,7 @@  do_configure () {
 do_compile () {
+	KDIR="${STAGING_DIR_HOST}/usr" make
 do_install () {