[meta-freescale] [meta-fsl-arm][master-next, jethro-next][PATCH 2/2] gst1.0-fsl-plugin: add STAGING_KERNEL_BUILDDIR to the include dirs list

Javier Viguera javier.viguera at digi.com
Thu Feb 25 07:17:17 PST 2016


The new version of the gst1.0-fsl-plugin package uses the preprocessor
to do conditional compilation:

#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)

And to use those macros it includes 'linux/version.h' header file.

This is failing because it is including the 'linux/version.h' file from
the sysroot, which comes from the 'linux-libc-headers' recipe used to
build the toolchain, instead of the real kernel version we are building
and running later on.

Otherwise the build fails with:

error: 'VIDIOC_S_INPUT_CROP' undeclared

Signed-off-by: Javier Viguera <javier.viguera at digi.com>
---
 recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.8.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.8.bb b/recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.8.bb
index 532ae701ad0d..8de4889b1ced 100644
--- a/recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.8.bb
+++ b/recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.8.bb
@@ -40,7 +40,7 @@ PLATFORM_mx7= "MX7D"
 
 # Todo add a mechanism to map possible build targets
 EXTRA_OECONF = "PLATFORM=${PLATFORM} \
-                CPPFLAGS="-I${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include" \
+                CPPFLAGS="-I${STAGING_KERNEL_BUILDDIR}/include/generated/uapi -I${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include" \
                 CROSS_ROOT=${PKG_CONFIG_SYSROOT_DIR} \
                 ${@base_contains('DISTRO_FEATURES', 'wayland', base_contains('DISTRO_FEATURES', 'x11', '--disable-x11', '', d), '', d)}"
 


More information about the meta-freescale mailing list