[yocto] [PATCH 3/3] recipes-multimedia: add gstreamer rockchip support

ayaka ayaka at soulik.info
Sun Mar 19 10:54:25 PDT 2017


This Gstreamer plugin provides a encoder and decoder plugin
for Gstreamer through the Rockchip MPP library.

Signed-off-by: ayaka <ayaka at soulik.info>
---
 .../gstreamer/gstreamer1.0-rockchip.inc            | 33 ++++++++++++++++++++++
 .../gstreamer/gstreamer1.0-rockchip_20170319.bb    | 11 ++++++++
 .../gstreamer/gstreamer1.0-rockchip_git.bb         | 15 ++++++++++
 3 files changed, 59 insertions(+)
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-rockchip.inc
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-rockchip_20170319.bb
 create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-rockchip_git.bb

diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-rockchip.inc b/recipes-multimedia/gstreamer/gstreamer1.0-rockchip.inc
new file mode 100644
index 0000000..2666edf
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-rockchip.inc
@@ -0,0 +1,33 @@
+# Copyright (C) 2016 - 2017 Randy Li <ayaka at soulik.info>
+# Released under the GNU GENERAL PUBLIC LICENSE Version 2
+# (see COPYING.GPLv2 for the terms)
+
+require recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
+
+DESCRIPTION = "GStreamer 1.0 plugins for Rockchip platforms"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6d1e4aa87f6192354d3de840cf774d93"
+DEPENDS += "gstreamer1.0-plugins-base rockchip-mpp"
+
+SRC_URI_remove = " \
+    file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \
+"
+inherit gettext autotools pkgconfig
+
+PACKAGECONFIG ??= " \
+    mpp             \
+"
+PACKAGECONFIG[mpp]       = "--enable-rockchipmpp,--disable-rockchipmpp"
+PACKAGECONFIG[vpudec]    = "--enable-vpudec,--disable-vpudec"
+
+EXTRA_OECONF += "    \
+    --disable-kms    \
+"
+
+do_configure[prefuncs] = " delete_pkg_m4_file"
+
+do_configure() {
+    NOCONFIGURE=true ${S}/autogen.sh
+    oe_runconf
+}
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-rockchip_20170319.bb b/recipes-multimedia/gstreamer/gstreamer1.0-rockchip_20170319.bb
new file mode 100644
index 0000000..3fe07d6
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-rockchip_20170319.bb
@@ -0,0 +1,11 @@
+# Copyright (C) 2016 - 2017 Randy Li <ayaka at soulik.info>
+# Released under the GNU GENERAL PUBLIC LICENSE Version 2
+# (see COPYING.GPLv2 for the terms)
+include gstreamer1.0-rockchip.inc
+
+TAG = "release_20170319"
+SRC_URI = "git://github.com/rockchip-linux/gstreamer-rockchip.git;tag=${TAG};nobranch=1"
+
+PV = "1.10.5++${TAG}"
+
+S = "${WORKDIR}/git"
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-rockchip_git.bb b/recipes-multimedia/gstreamer/gstreamer1.0-rockchip_git.bb
new file mode 100644
index 0000000..26795a6
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-rockchip_git.bb
@@ -0,0 +1,15 @@
+# Copyright (C) 2016 - 2017 Randy Li <ayaka at soulik.info>
+# Released under the GNU GENERAL PUBLIC LICENSE Version 2
+# (see COPYING.GPLv2 for the terms)
+
+DEFAULT_PREFERENCE = "-1"
+
+include gstreamer1.0-rockchip.inc
+
+SRCBRANCH ?= "develop"
+SRCREV = "${AUTOREV}"
+SRC_URI = "git://github.com/rockchip-linux/gstreamer-rockchip.git;branch=develop"
+
+PV = "develop++git${SRCPV}"
+
+S = "${WORKDIR}/git"
-- 
2.7.4




More information about the yocto mailing list