]> code.ossystems Code Review - meta-freescale.git/commitdiff
gst-fsl-plugin: Include the Real-Time Extension lib into mfw_v4lsrc
authorLeonardo Sandoval <leonardo.sandoval@freescale.com>
Fri, 15 Feb 2013 17:55:56 +0000 (17:55 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Sat, 16 Feb 2013 17:47:25 +0000 (15:47 -0200)
Includes the '-lrt' library when compilation takes place on the
mfw_v4lsrc element. Tested on machine imx6qsabresd using the
fsl-image-test image.

[YOCTO #3888]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval@freescale.com>
meta-fsl-arm/recipes-multimedia/gst-plugins/gst-fsl-plugin/Link-with-the-Real-Time-Extension-lib.patch [new file with mode: 0644]
meta-fsl-arm/recipes-multimedia/gst-plugins/gst-fsl-plugin_3.0.5.bb

diff --git a/meta-fsl-arm/recipes-multimedia/gst-plugins/gst-fsl-plugin/Link-with-the-Real-Time-Extension-lib.patch b/meta-fsl-arm/recipes-multimedia/gst-plugins/gst-fsl-plugin/Link-with-the-Real-Time-Extension-lib.patch
new file mode 100644 (file)
index 0000000..86dc8b5
--- /dev/null
@@ -0,0 +1,47 @@
+From f4f360d3858d3ac6a65ff754ada381f44827f0db Mon Sep 17 00:00:00 2001
+From: Leonardo Sandoval <leonardo_gdl@yahoo.com.mx>
+Date: Thu, 14 Feb 2013 23:37:09 -0600
+Subject: [PATCH] Link with the Real-Time Extension lib
+
+Upstream-Status: Pending
+
+Signed-off-by: Leonardo Sandoval <leonardo.sandoval@freescale.com>
+---
+ configure.ac                        |    5 +++++
+ src/misc/v4l_source/src/Makefile.am |    4 ++--
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 1ad4d22..f332d38 100755
+--- a/configure.ac
++++ b/configure.ac
+@@ -173,6 +173,11 @@ AC_CHECK_LIB(ipu, mxc_ipu_lib_task_init, [IPU_LIBS=-lipu], [echo "No libipu arou
+ AC_SUBST(IPU_CFLAGS)
+ AC_SUBST(IPU_LIBS)
++dnl of the POSIX Real-Time Extensions.
++AC_CHECK_LIB(rt, clock_gettime)
++AC_SUBST(RT_CFLAGS)
++AC_SUBST(RT_LIBS)
++
+ FSL_MM_CORE_CFLAGS=`$PKG_CONFIG --cflags libfslaudiocodec 2>/dev/null`
+ FSL_MM_CORE_CFLAGS+=`$PKG_CONFIG --cflags libfslvideocodec 2>/dev/null`
+ FSL_MM_CORE_CFLAGS+=`$PKG_CONFIG --cflags libfslparser 2>/dev/null`
+diff --git a/src/misc/v4l_source/src/Makefile.am b/src/misc/v4l_source/src/Makefile.am
+index b80d27e..490e441 100755
+--- a/src/misc/v4l_source/src/Makefile.am
++++ b/src/misc/v4l_source/src/Makefile.am
+@@ -7,8 +7,8 @@ endif
+ plugin_LTLIBRARIES = libmfw_gst_v4lsrc.la 
+ libmfw_gst_v4lsrc_la_SOURCES =  mfw_gst_v4lsrc.c 
+-libmfw_gst_v4lsrc_la_CFLAGS = $(GST_BASE_CFLAGS) -fno-omit-frame-pointer $(IPU_CFLAGS) -D$(PLATFORM) -I$(FBHEADER_PATH) -I. -I../../../../inc/plugin -I../../../../libs/gstbufmeta 
+-libmfw_gst_v4lsrc_la_LIBADD = $(GST_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) -lgstinterfaces-$(GST_MAJORMINOR) ../../../../libs/libgstfsl-@GST_MAJORMINOR@.la
++libmfw_gst_v4lsrc_la_CFLAGS = $(GST_BASE_CFLAGS) -fno-omit-frame-pointer $(IPU_CFLAGS) -D$(PLATFORM) -I$(FBHEADER_PATH) -I. -I../../../../inc/plugin -I../../../../libs/gstbufmeta $(RT_CFLAGS)
++libmfw_gst_v4lsrc_la_LIBADD = $(GST_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) -lgstinterfaces-$(GST_MAJORMINOR) ../../../../libs/libgstfsl-@GST_MAJORMINOR@.la $(RT_LIBS)
+ libmfw_gst_v4lsrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+ noinst_HEADERS = mfw_gst_v4lsrc.h
+-- 
+1.7.5.4
+
index 4b90e67eace6f50daadabad7ee75be3102983608..36fbe41a6245052b69168032e3ed8a13bbe6a11c 100644 (file)
@@ -5,9 +5,11 @@ require gst-fsl-plugin.inc
 
 DEPENDS += "libfslcodec libfslvpuwrap libfslparser"
 
-PR = "${INC_PR}.2"
+PR = "${INC_PR}.3"
 
-SRC_URI += "file://fix-missing-sys-types-h.patch"
+SRC_URI += "file://fix-missing-sys-types-h.patch \
+            file://Link-with-the-Real-Time-Extension-lib.patch \
+           "
 
 PACKAGE_NAME = "gst-fsl-plugins"