summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/gst-plugins
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval@freescale.com>2013-02-15 17:55:56 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2013-02-16 15:47:25 -0200
commit3ab14c8e863109da0f0700ac485a21616b27f34b (patch)
tree265840bd357cd4b965bc2c93cb3f4ead928f2b3d /recipes-multimedia/gst-plugins
parent8b11343efcda2c097a101886d55a38aa84f37514 (diff)
downloadmeta-fsl-arm-3ab14c8e863109da0f0700ac485a21616b27f34b.tar.gz
gst-fsl-plugin: Include the Real-Time Extension lib into mfw_v4lsrc
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>
Diffstat (limited to 'recipes-multimedia/gst-plugins')
-rw-r--r--recipes-multimedia/gst-plugins/gst-fsl-plugin/Link-with-the-Real-Time-Extension-lib.patch47
-rw-r--r--recipes-multimedia/gst-plugins/gst-fsl-plugin_3.0.5.bb6
2 files changed, 51 insertions, 2 deletions
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 @@
1From f4f360d3858d3ac6a65ff754ada381f44827f0db Mon Sep 17 00:00:00 2001
2From: Leonardo Sandoval <leonardo_gdl@yahoo.com.mx>
3Date: Thu, 14 Feb 2013 23:37:09 -0600
4Subject: [PATCH] Link with the Real-Time Extension lib
5
6Upstream-Status: Pending
7
8Signed-off-by: Leonardo Sandoval <leonardo.sandoval@freescale.com>
9---
10 configure.ac | 5 +++++
11 src/misc/v4l_source/src/Makefile.am | 4 ++--
12 2 files changed, 7 insertions(+), 2 deletions(-)
13
14diff --git a/configure.ac b/configure.ac
15index 1ad4d22..f332d38 100755
16--- a/configure.ac
17+++ b/configure.ac
18@@ -173,6 +173,11 @@ AC_CHECK_LIB(ipu, mxc_ipu_lib_task_init, [IPU_LIBS=-lipu], [echo "No libipu arou
19 AC_SUBST(IPU_CFLAGS)
20 AC_SUBST(IPU_LIBS)
21
22+dnl of the POSIX Real-Time Extensions.
23+AC_CHECK_LIB(rt, clock_gettime)
24+AC_SUBST(RT_CFLAGS)
25+AC_SUBST(RT_LIBS)
26+
27 FSL_MM_CORE_CFLAGS=`$PKG_CONFIG --cflags libfslaudiocodec 2>/dev/null`
28 FSL_MM_CORE_CFLAGS+=`$PKG_CONFIG --cflags libfslvideocodec 2>/dev/null`
29 FSL_MM_CORE_CFLAGS+=`$PKG_CONFIG --cflags libfslparser 2>/dev/null`
30diff --git a/src/misc/v4l_source/src/Makefile.am b/src/misc/v4l_source/src/Makefile.am
31index b80d27e..490e441 100755
32--- a/src/misc/v4l_source/src/Makefile.am
33+++ b/src/misc/v4l_source/src/Makefile.am
34@@ -7,8 +7,8 @@ endif
35 plugin_LTLIBRARIES = libmfw_gst_v4lsrc.la
36
37 libmfw_gst_v4lsrc_la_SOURCES = mfw_gst_v4lsrc.c
38-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
39-libmfw_gst_v4lsrc_la_LIBADD = $(GST_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) -lgstinterfaces-$(GST_MAJORMINOR) ../../../../libs/libgstfsl-@GST_MAJORMINOR@.la
40+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)
41+libmfw_gst_v4lsrc_la_LIBADD = $(GST_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) -lgstinterfaces-$(GST_MAJORMINOR) ../../../../libs/libgstfsl-@GST_MAJORMINOR@.la $(RT_LIBS)
42 libmfw_gst_v4lsrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
43
44 noinst_HEADERS = mfw_gst_v4lsrc.h
45--
461.7.5.4
47
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
5 5
6DEPENDS += "libfslcodec libfslvpuwrap libfslparser" 6DEPENDS += "libfslcodec libfslvpuwrap libfslparser"
7 7
8PR = "${INC_PR}.2" 8PR = "${INC_PR}.3"
9 9
10SRC_URI += "file://fix-missing-sys-types-h.patch" 10SRC_URI += "file://fix-missing-sys-types-h.patch \
11 file://Link-with-the-Real-Time-Extension-lib.patch \
12 "
11 13
12PACKAGE_NAME = "gst-fsl-plugins" 14PACKAGE_NAME = "gst-fsl-plugins"
13 15