Patchwork [meta-fsl-arm] gst-fsl-plugin: Include the Real-Time Extension lib into mfw_v4lsrc

login
register
mail settings
Submitter Leonardo Sandoval
Date Feb. 15, 2013, 5:55 p.m.
Message ID <1360950956-24462-1-git-send-email-leonardo.sandoval@freescale.com>
Download mbox | patch
Permalink /patch/44701/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Leonardo Sandoval - Feb. 15, 2013, 5:55 p.m.
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>
---
 .../Link-with-the-Real-Time-Extension-lib.patch    |   47 ++++++++++++++++++++
 .../gst-plugins/gst-fsl-plugin_3.0.5.bb            |    6 ++-
 2 files changed, 51 insertions(+), 2 deletions(-)
 create mode 100644 recipes-multimedia/gst-plugins/gst-fsl-plugin/Link-with-the-Real-Time-Extension-lib.patch
Otavio Salvador - Feb. 15, 2013, 7:31 p.m.
On Fri, Feb 15, 2013 at 3:55 PM, Leonardo Sandoval
<leonardo.sandoval@freescale.com> wrote:
> 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>

Jeremy, can you give it a try?

Patch

diff --git a/recipes-multimedia/gst-plugins/gst-fsl-plugin/Link-with-the-Real-Time-Extension-lib.patch b/recipes-multimedia/gst-plugins/gst-fsl-plugin/Link-with-the-Real-Time-Extension-lib.patch
new file mode 100644
index 0000000..86dc8b5
--- /dev/null
+++ b/recipes-multimedia/gst-plugins/gst-fsl-plugin/Link-with-the-Real-Time-Extension-lib.patch
@@ -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
+
diff --git a/recipes-multimedia/gst-plugins/gst-fsl-plugin_3.0.5.bb b/recipes-multimedia/gst-plugins/gst-fsl-plugin_3.0.5.bb
index 4b90e67..36fbe41 100644
--- a/recipes-multimedia/gst-plugins/gst-fsl-plugin_3.0.5.bb
+++ b/recipes-multimedia/gst-plugins/gst-fsl-plugin_3.0.5.bb
@@ -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"