gstreamer: make accelerated recipes instead of appends
PATCH 1/5 gstreamer: make accelerated recipes instead of appends
* Previously adding acceleration was done by appending the base GStreamer recipes to pull a new SRC_URI and make some other simple changes.
* Now there is a need to be able to control whether to use the accelerated version of GStreamer or not.
* In this case we need to be able to control this because the foundation software for IPC is not yet in place to allow us to build accelerated GStreamer plugins among other packages.
* Instead, make a new package name for the GStreamer elements by appending -mm-accel to the recipe name and have these package PROVIDE and RPROVIDE the same packages as the base recipes.
* This new recipe also requires the base recipe so that changes can be shared between them.
* The use of these -mm-accel recipes requires the MACHINE_FEATURES to specify mmip ability and the recipe checks if that is available in order to parse properly.
* Following patches will set the PREFERRED_PROVIDER for these elements also based on the mmip MACHINE_FEATURE.
--- .../gstreamer/gst-plugins-bad-mm-accel_0.10.23.bb | 42 ++++++++++++++++++++ .../gstreamer/gst-plugins-bad_0.10.23.bbappend | 22 ---------- .../gstreamer/gst-plugins-base-mm-accel_0.10.36.bb | 40 +++++++++++++++++++ .../gstreamer/gst-plugins-base_0.10.36.bbappend | 20 ---------- .../gstreamer/gst-plugins-good-mm-accel_0.10.31.bb | 42 ++++++++++++++++++++ .../gstreamer/gst-plugins-good_0.10.31.bbappend | 23 ----------- .../gstreamer/gstreamer-mm-accel_0.10.36.bb | 33 +++++++++++++++ .../gstreamer/gstreamer_0.10.36.bbappend | 14 ------- 8 files changed, 157 insertions(+), 79 deletions(-) create mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad-mm-accel_0.10.23.bb delete mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend create mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-base-mm-accel_0.10.36.bb delete mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bbappend create mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good-mm-accel_0.10.31.bb delete mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bbappend create mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gstreamer-mm-accel_0.10.36.bb delete mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gstreamer_0.10.36.bbappend
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad-mm-accel_0.10.23.bb new file +42 -0
@@ -0,0 +1,42 @@ +# This recipe is not valid when not using accelerated multimedia IP +python __anonymous() { + features = bb.data.getVar("MACHINE_FEATURES", d, 1) + if not features: + return + if "mmip" not in features: + raise bb.parse.SkipPackage('gst-plugins-bad needs dependencies derived from "mmip" flag in MACHINE_FEATURES') +} + +# Include the base gst-plugins-bad recipe since this recipe is heavily +# derived from that one. +require recipes-multimedia/gstreamer/gst-plugins-bad_${PV}.bb + +DESCRIPTION = "GStreamer bad plugins that use multimedia accelerators found on \ + TI devices" + +# Set PROVIDES and RPROVIDES values so that the base recipe names can still +# be used and PREFERRED_PROVIDER can be used to pick between them. +PROVIDES += "gst-plugins-bad" +RPROVIDES_${PN} += "gst-plugins-bad" +RPROVIDES_${PN}-dev += "gst-plugins-bad-dev" +RPROVIDES_${PN}-meta += "gst-plugins-bad-meta" + +DEPENDS += "omap5-sgx-ddk-um-linux libdce libdrm wayland" + +SRCREV = "f2df6f3b684f39500e22115b160191cef6d7dbaf" +SRC_URI = "git://git.ti.com/glsdk/gst-plugins-bad0-10.git;protocol=git" + +S = "${WORKDIR}/git" + +EXTRA_OECONF += " --disable-pvr" + +do_configure_prepend() { + git submodule init && git submodule update + autopoint -f +} + +FILES_${PN} += "\ + ${libdir}/*.so \ + ${libdir}/gstreamer-0.10/*" + +FILESPATH .= ":${COREBASE}/meta/recipes-multimedia/gstreamer/gst-plugins-bad-${PV}"
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend deleted +0 -22
@@ -1,22 +0,0 @@ -DEPENDS_append_omap-a15 = " omap5-sgx-ddk-um-linux libdce libdrm wayland " - -# Make MACHINE specific since we pull different sources per MACHINE -PACKAGE_ARCH = "${MACHINE_ARCH}" - -PR_append = "-arago1" - -SRCREV = "f2df6f3b684f39500e22115b160191cef6d7dbaf" -SRC_URI_omap-a15 = "git://git.ti.com/glsdk/gst-plugins-bad0-10.git;protocol=git" - -S_omap-a15 = "${WORKDIR}/git" - -EXTRA_OECONF += " --disable-pvr" - -do_configure_prepend_omap-a15() { - git submodule init && git submodule update - autopoint -f -} - -FILES_${PN} += "\ - ${libdir}/*.so \ - ${libdir}/gstreamer-0.10/*"
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-base-mm-accel_0.10.36.bb new file +40 -0
@@ -0,0 +1,40 @@ +# This recipe is not valid when not using accelerated multimedia IP +python __anonymous() { + features = bb.data.getVar("MACHINE_FEATURES", d, 1) + if not features: + return + if "mmip" not in features: + raise bb.parse.SkipPackage('gst-plugins-base needs dependencies derived from "mmip" flag in MACHINE_FEATURES') +} + +# Include the base gst-plugins-base recipe since this recipe is heavily +# derived from that one. +require recipes-multimedia/gstreamer/gst-plugins-base_${PV}.bb + +DESCRIPTION = "GStreamer base plugins that use multimedia accelerators found \ + on TI devices" + +# Set PROVIDES and RPROVIDES values so that the base recipe names can still +# be used and PREFERRED_PROVIDER can be used to pick between them. +PROVIDES += "gst-plugins-base" +RPROVIDES_${PN} += "gst-plugins-base" +RPROVIDES_${PN}-dev += "gst-plugins-base-dev" +RPROVIDES_${PN}-meta += "gst-plugins-base-meta" + +SRC_URI = "git://git.ti.com/glsdk/gst-plugins-base0-10.git;protocol=git" +SRCREV = "21305017f6095ad6e9b1a8f1006ee5be780b21f8" + +S = "${WORKDIR}/git" + +do_configure_prepend() { + git submodule init && git submodule update + autopoint -f +} + +EXTRA_OECONF +="--disable-ivorbis " + +FILES_${PN} += "\ + ${libdir}/*.so \ + ${libdir}/gstreamer-0.10/*" + +FILESPATH .= ":${COREBASE}/meta/recipes-multimedia/gstreamer/gst-plugins-base-${PV}"
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bbappend deleted +0 -20
@@ -1,20 +0,0 @@ -PR_append = "-arago1" - -# Make MACHINE specific since we pull different sources per MACHINE -PACKAGE_ARCH = "${MACHINE_ARCH}" - -SRC_URI_omap-a15 = "git://git.ti.com/glsdk/gst-plugins-base0-10.git;protocol=git" -SRCREV = "21305017f6095ad6e9b1a8f1006ee5be780b21f8" - -S_omap-a15 = "${WORKDIR}/git" - -do_configure_prepend_omap-a15() { - git submodule init && git submodule update - autopoint -f -} - -EXTRA_OECONF +="--disable-ivorbis " - -FILES_${PN} += "\ - ${libdir}/*.so \ - ${libdir}/gstreamer-0.10/*"
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good-mm-accel_0.10.31.bb new file +42 -0
42 lines not on this page · raw message
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bbappend deleted +0 -23
@@ -1,23 +0,0 @@ -PR_append = "-arago1" - -# Make MACHINE specific since we pull different sources per MACHINE -PACKAGE_ARCH = "${MACHINE_ARCH}" - -SRC_URI_omap-a15 = "git://git.ti.com/glsdk/gst-plugins-good0-10.git;protocol=git" -SRCREV = "733289614c50ff4e490d5a37ec4af3a540d1dfb9" - -# Fix compile errors with recent kernels -SRC_URI_append_omap-a15 = " file://0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch \ - file://0001-v4l2_calls-define-V4L2_CID_HCENTER-and-V4L2_CID_VCEN.patch" - -S_omap-a15 = "${WORKDIR}/git" - -do_configure_prepend_omap-a15() { - git submodule init && git submodule update - autopoint -f -} - -FILES_${PN} += "\ - ${libdir}/*.so \ - ${libdir}/gstreamer-0.10/*" -
meta-arago-extras/recipes-multimedia/gstreamer/gstreamer-mm-accel_0.10.36.bb new file +33 -0
@@ -0,0 +1,33 @@ +# This recipe is not valid when not using accelerated multimedia IP +python __anonymous() { + features = bb.data.getVar("MACHINE_FEATURES", d, 1) + if not features: + return + if "mmip" not in features: + raise bb.parse.SkipPackage('gstreamer needs dependencies derived from "mmip" flag in MACHINE_FEATURES') +} + +# Include the base gst-plugins-bad recipe since this recipe is heavily +# derived from that one. +require recipes-multimedia/gstreamer/gstreamer_${PV}.bb + +DESCRIPTION = "GStreamer that use multimedia accelerators found on TI devices" + +# Set PROVIDES and RPROVIDES values so that the base recipe names can still +# be used and PREFERRED_PROVIDER can be used to pick between them. +PROVIDES += "gstreamer" +RPROVIDES_${PN} += "gstreamer" +RPROVIDES_${PN}-dev += "gstreamer-dev" +RPROVIDES_${PN}-meta += "gstreamer-meta" + +SRC_URI = "git://git.ti.com/glsdk/gstreamer0-10.git;protocol=git" +SRCREV = "e505f4a2ceee3b0328eb2efddb9ec1281d3fd60a" + +S = "${WORKDIR}/git" + +do_configure_prepend() { + git submodule init && git submodule update + autopoint -f +} + +FILESPATH .= ":${COREBASE}/meta/recipes-multimedia/gstreamer/gstreamer-${PV}"
meta-arago-extras/recipes-multimedia/gstreamer/gstreamer_0.10.36.bbappend deleted +0 -14
@@ -1,14 +0,0 @@ -SRC_URI_omap-a15 = "git://git.ti.com/glsdk/gstreamer0-10.git;protocol=git" -SRCREV = "e505f4a2ceee3b0328eb2efddb9ec1281d3fd60a" - -# Make MACHINE specific since we pull different sources per MACHINE -PACKAGE_ARCH = "${MACHINE_ARCH}" - -PR_append = "-arago1" - -S_omap-a15 = "${WORKDIR}/git" - -do_configure_prepend_omap-a15() { - git submodule init && git submodule update - autopoint -f -}
Signature · 1 line
1.7.9.5
PATCH 2/5 arago-prefs: set PREFERRED_PROVIDER for gstreamer based on mmip
* Set the preferred provider for GStreamer elements to accelerated elements only if the MACHINE_FEATURES include the mmip attribute.
--- .../conf/distro/include/arago-prefs.inc | 5 +++++ 1 file changed, 5 insertions(+)
meta-arago-distro/conf/distro/include/arago-prefs.inc +5 -0
@@ -99,6 +99,11 @@ PREFERRED_PROVIDER_wpa-supplicant = "wpa-supplicant" PREFERRED_PROVIDER_wpa-supplicant_ti33x = "wpa-supplicant-wl18xx" PREFERRED_PROVIDER_wpa-supplicant_ti43x = "wpa-supplicant-wl18xx" +PREFERRED_PROVIDER_gstreamer = "${@base_contains('MACHINE_FEATURES', 'mmip', 'gstreamer-mm-accel', 'gstreamer', d)}" +PREFERRED_PROVIDER_gst-plugins-bad = "${@base_contains('MACHINE_FEATURES', 'mmip', 'gst-plugins-bad-mm-accel', 'gst-plugins-bad', d)}" +PREFERRED_PROVIDER_gst-plugins-base = "${@base_contains('MACHINE_FEATURES', 'mmip', 'gst-plugins-base-mm-accel', 'gst-plugins-base', d)}" +PREFERRED_PROVIDER_gst-plugins-good = "${@base_contains('MACHINE_FEATURES', 'mmip', 'gst-plugins-good-mm-accel', 'gst-plugins-good', d)}" + def filter_out(f, str, d): from re import match return " ".join(filter(lambda x: not match(f, x, 0), str.split()))
Signature · 1 line
1.7.9.5
Re: [PATCH 2/5] arago-prefs: set PREFERRED_PROVIDER for gstreamer based on mmip
Quoted 49 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, July 01, 2014 10:26 AM
To: [email protected]
Subject: [meta-arago] [PATCH 2/5] arago-prefs: setPREFERRED_PROVIDERfor gstreamer based on mmip* Set the preferred provider for GStreamer elements to accelerated elements only if the
MACHINE_FEATURESinclude the mmip attribute.Signed-off-by Chase Maupin <[email protected]>--- .../conf/distro/include/arago-prefs.inc | 5 +++++ 1 file changed, 5 insertions(+)meta- renamed from meta-arago-distro/conf/distro/include/arago-prefs.inc +0
-0arago-distro/conf/distro/include/arago-prefs.inc
index 6773053..8261d10 100644meta-arago-distro/conf/distro/include/arago-prefs.inc +0
-0@@ -99,6 +99,11 @@ PREFERRED_PROVIDER_wpa-supplicant = "wpa-supplicant"
PREFERRED_PROVIDER_wpa-supplicant_ti33x = "wpa-supplicant-wl18xx" PREFERRED_PROVIDER_wpa-supplicant_ti43x = "wpa-supplicant-wl18xx"+PREFERRED_PROVIDER_gstreamer = "${@base_contains('MACHINE_FEATURES', 'mmip', 'gstreamer-mm-accel', 'gstreamer', d)}"
+PREFERRED_PROVIDER_gst-plugins-bad = "${@base_contains('MACHINE_FEATURES', 'mmip', 'gst-plugins-bad-mm-accel', 'gst-plugins-bad', d)}"
+PREFERRED_PROVIDER_gst-plugins-base = "${@base_contains('MACHINE_FEATURES', 'mmip', 'gst-plugins-base-mm- accel', 'gst-plugins-base', d)}" +PREFERRED_PROVIDER_gst-plugins-good = "${@base_contains('MACHINE_FEATURES', 'mmip', 'gst-plugins-good-mm- accel', 'gst-plugins-good', d)}"
+
deffilter_out(f, str, d):
from re import match
return " ".join(filter(lambda x: notmatch(f, x, 0),str.split()))
--
1.7.9.5_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
PATCH 3/5 packagegroup-arago-test: make omapdrmtest depend on mmip
In reply to Chase Maupin* The omapdrmtest package has dependencies on libdce which are only valid when the MACHINE_FEATURES include mmip. So don't include this when that feature doesn't exist.
--- .../packagegroups/packagegroup-arago-test.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test.bb +1 -1
@@ -33,7 +33,7 @@ ARAGO_TI_TEST = "\ ARAGO_TI_TEST_append_omap-a15 = " \ omapconf \ ipc-test-fw \ - omapdrmtest \ + ${@base_contains('MACHINE_FEATURES', 'mmip', 'omapdrmtest', '', d)} \ bvtest \ "
Signature · 1 line
1.7.9.5
Re: [PATCH 3/5] packagegroup-arago-test: make omapdrmtest depend on mmip
Quoted 18 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, July 01, 2014 10:26 AM
To: [email protected]
Subject: [meta-arago] [PATCH 3/5] packagegroup-arago-test: make omapdrmtest depend on mmip* The omapdrmtest package has dependencies on libdce which are only valid when the
MACHINE_FEATURESinclude mmip. So don't include this when that feature doesn't exist.Signed-off-by Chase Maupin <[email protected]>--- .../packagegroups/packagegroup-arago-test.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 8 lines
(quoted diff) +0
-0arago-test.bb b/meta-arago-distro/recipes- core/packagegroups/packagegroup-arago-test.bb
index 54d44e1..429858b 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago- test.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago- test.bb
[Franklin] Has the PR server been enabled yet? If not PR bump.
Quoted 16 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test.bb +1
-2@@ -33,7 +33,7 @@ ARAGO_TI_TEST = "\ ARAGO_TI_TEST_append_omap-a15 = " \ omapconf \ ipc-test-fw \ - omapdrmtest \ + ${@base_contains('MACHINE_FEATURES', 'mmip', 'omapdrmtest', '', d)} \ bvtest \ " --1.7.9.5
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
PATCH 4/5 packagegroup-arago-gst: make mmip elements depend on mmip feature
In reply to Chase Maupin* Don't include the multimedia accelerated elements when the MACHINE_FEATURES do not include the mmip feature.
--- .../packagegroups/packagegroup-arago-gst.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gst.bb +3 -3
@@ -1,6 +1,6 @@ DESCRIPTION = "Task to add gstreamer and gstreamer plugins" LICENSE = "MIT" -PR = "r7" +PR = "r8" inherit packagegroup
@@ -15,8 +15,8 @@ GSTREAMER = " \ " GSTREAMER_ACCEL_MM = "" -GSTREAMER_ACCEL_MM_omap-a15 = "gst-plugins-ducati" -GSTREAMER_ACCEL_MM_append_dra7xx = " gst-plugins-vpe" +GSTREAMER_ACCEL_MM_omap-a15 = "${@base_contains('MACHINE_FEATURES', 'mmip', 'gst-plugins-ducati', '', d)}" +GSTREAMER_ACCEL_MM_append_dra7xx = "${@base_contains('MACHINE_FEATURES', 'mmip', ' gst-plugins-vpe', '', d)}" RDEPENDS_${PN} = "\ ${GSTREAMER} \
Signature · 1 line
1.7.9.5
Re: [PATCH 4/5] packagegroup-arago-gst: make mmip elements depend on mmip feature
Quoted 52 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, July 01, 2014 10:26 AM
To: [email protected]
Subject: [meta-arago] [PATCH 4/5] packagegroup-arago-gst: make mmip elements depend on mmip feature* Don't include the multimedia accelerated elements when the
MACHINE_FEATURESdo not include the mmip feature.Signed-off-by Chase Maupin <[email protected]>--- .../packagegroups/packagegroup-arago-gst.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0arago-gst.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup- arago-gst.bb
index 03a04c4..a5367ea 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago- gst.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago- gst.bbmeta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gst.bb +2
-3@@ -1,6 +1,6 @@ DESCRIPTION = "Task to add gstreamer and gstreamer plugins" LICENSE = "MIT" -PR = "r7" +PR = "r8" inherit packagegroup@@ -15,8 +15,8 @@ GSTREAMER = " \ " GSTREAMER_ACCEL_MM = "" -GSTREAMER_ACCEL_MM_omap-a15 = "gst-plugins-ducati" -GSTREAMER_ACCEL_MM_append_dra7xx = " gst-plugins-vpe" +GSTREAMER_ACCEL_MM_omap-a15 ="${@base_contains('MACHINE_FEATURES', 'mmip', 'gst-plugins-ducati', '', d)}" +GSTREAMER_ACCEL_MM_append_dra7xx = "${@base_contains('MACHINE_FEATURES', 'mmip', ' gst-plugins-vpe', '', d)}"
RDEPENDS_${PN} = "\ ${GSTREAMER} \--
1.7.9.5_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
PATCH 5/5 packagegroup-arago-tisdk-multimedia: don't inlcude ipumm fw without mmip
In reply to Chase Maupin* Including the ipumm-fw package without mmip accelerators doesn't make sense. So don't package this when MACHINE_FEATURES doesn't include mmip.
--- .../packagegroup-arago-tisdk-multimedia.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb +3 -3
@@ -40,15 +40,15 @@ MULTIMEDIA_append_am3517-evm = " \ ACCEL_FW = "" ACCEL_FW_append_am57xx-evm = " \ - ipumm-fw \ + ${@base_contains('MACHINE_FEATURE', 'mmip', 'ipumm-fw', '', d)} \ " ACCEL_FW_append_omap5-evm = " \ - ipumm-fw \ + ${@base_contains('MACHINE_FEATURE', 'mmip', 'ipumm-fw', '', d)} \ " ACCEL_FW_append_dra7xx-evm = " \ - ipumm-fw \ + ${@base_contains('MACHINE_FEATURE', 'mmip', 'ipumm-fw', '', d)} \ dspdce-fw \ vis \ "
Signature · 1 line
1.7.9.5
Re: [PATCH 5/5] packagegroup-arago-tisdk-multimedia: don't inlcude ipumm fw without mmip
Quoted 51 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, July 01, 2014 10:26 AM
To: [email protected]
Subject: [meta-arago] [PATCH 5/5] packagegroup-arago-tisdk-multimedia:
don't inlcude ipumm fw without mmip* Including the ipumm-fw package without mmip accelerators doesn't make sense. So don't package this when
MACHINE_FEATURESdoesn't include mmip.Signed-off-by Chase Maupin <[email protected]>--- .../packagegroup-arago-tisdk-multimedia.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0arago-tisdk-multimedia.bb b/meta-arago-distro/recipes- core/packagegroups/packagegroup-arago-tisdk-multimedia.bb index b044f58..417b0a8 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago- tisdk-multimedia.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago- tisdk-multimedia.bbmeta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb +3
-4@@ -40,15 +40,15 @@ MULTIMEDIA_append_am3517-evm = " \ ACCEL_FW = "" ACCEL_FW_append_am57xx-evm = " \ - ipumm-fw \ + ${@base_contains('MACHINE_FEATURE', 'mmip', 'ipumm-fw', '', d)} \ " ACCEL_FW_append_omap5-evm = " \ - ipumm-fw \ + ${@base_contains('MACHINE_FEATURE', 'mmip', 'ipumm-fw', '', d)} \ " ACCEL_FW_append_dra7xx-evm = " \ - ipumm-fw \ + ${@base_contains('MACHINE_FEATURE', 'mmip', 'ipumm-fw', '', d)} \ dspdce-fw \ vis \ " --1.7.9.5
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Re: [PATCH 5/5] packagegroup-arago-tisdk-multimedia: don't inlcude ipumm fw without mmip
Oops I missed the lack of PR bump on this one
Quoted 67 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 01, 2014 11:08 AM
To: Maupin, Chase; [email protected]
Subject: Re: [meta-arago] [PATCH 5/5] packagegroup-arago-tisdk-multimedia:
don't inlcude ipumm fw without mmipQuoted 48 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, July 01, 2014 10:26 AM
To: [email protected]
Subject: [meta-arago] [PATCH 5/5] packagegroup-arago-tisdk-multimedia:
don't inlcude ipumm fw without mmip* Including the ipumm-fw package without mmip accelerators doesn't make sense. So don't package this when
MACHINE_FEATURESdoesn't include mmip.Signed-off-by Chase Maupin <[email protected]>--- .../packagegroup-arago-tisdk-multimedia.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup- arago-tisdk-multimedia.bb b/meta-arago-distro/recipes- core/packagegroups/packagegroup-arago-tisdk-multimedia.bb index b044f58..417b0a8 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago- tisdk-multimedia.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago- tisdk-multimedia.bbmeta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb +3
-4@@ -40,15 +40,15 @@ MULTIMEDIA_append_am3517-evm = " \ ACCEL_FW = "" ACCEL_FW_append_am57xx-evm = " \ - ipumm-fw \ + ${@base_contains('MACHINE_FEATURE', 'mmip', 'ipumm-fw', '', d)} \ " ACCEL_FW_append_omap5-evm = " \ - ipumm-fw \ + ${@base_contains('MACHINE_FEATURE', 'mmip', 'ipumm-fw', '', d)} \ " ACCEL_FW_append_dra7xx-evm = " \ - ipumm-fw \ + ${@base_contains('MACHINE_FEATURE', 'mmip', 'ipumm-fw', '', d)} \ dspdce-fw \ vis \ " --1.7.9.5
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 390 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, July 01, 2014 10:26 AM
To: [email protected]
Subject: [meta-arago] [PATCH 1/5] gstreamer: make accelerated recipes instead of appends* Previously adding acceleration was done by appending the base GStreamer recipes to pull a new
SRC_URIand make some other simple changes.
* Now there is a need to be able to control whether to use the accelerated version of GStreamer or not.
* In this case we need to be able to control this because the foundation software for IPC is not yet in place to allow us to build accelerated GStreamer plugins among other packages.
* Instead, make a new package name for the GStreamer elements by appending -mm-accel to the recipe name and have these package PROVIDE and RPROVIDE the same packages as the base recipes.
* This new recipe also requires the base recipe so that changes can be shared between them.
* The use of these -mm-accel recipes requires theMACHINE_FEATURESto specify mmip ability and the recipe checks if that is available in order to parse properly.
* Following patches will set thePREFERRED_PROVIDERfor these elements also based on the mmipMACHINE_FEATURE.Signed-off-by Chase Maupin <[email protected]>--- .../gstreamer/gst-plugins-bad-mm-accel_0.10.23.bb | 42 ++++++++++++++++++++ .../gstreamer/gst-plugins-bad_0.10.23.bbappend | 22 ---------- .../gstreamer/gst-plugins-base-mm-accel_0.10.36.bb | 40 +++++++++++++++++++ .../gstreamer/gst-plugins-base_0.10.36.bbappend | 20 ---------- .../gstreamer/gst-plugins-good-mm-accel_0.10.31.bb | 42 ++++++++++++++++++++ .../gstreamer/gst-plugins-good_0.10.31.bbappend | 23 ----------- .../gstreamer/gstreamer-mm-accel_0.10.36.bb | 33 +++++++++++++++ .../gstreamer/gstreamer_0.10.36.bbappend | 14 ------- 8 files changed, 157 insertions(+), 79 deletions(-) create mode 100644 meta- arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad-mm- accel_0.10.23.bb delete mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst- plugins-bad_0.10.23.bbappend create mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst- plugins-base-mm-accel_0.10.36.bb delete mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst- plugins-base_0.10.36.bbappend create mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst- plugins-good-mm-accel_0.10.31.bb delete mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gst- plugins-good_0.10.31.bbappend create mode 100644 meta-arago-extras/recipes- multimedia/gstreamer/gstreamer-mm-accel_0.10.36.bb delete mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gstreamer_0.10.36.bbappend
(quoted diff) +0
-0mm-accel_0.10.23.bb b/meta-arago-extras/recipes-multimedia/gstreamer/gst- plugins-bad-mm-accel_0.10.23.bb
new file mode 100644
index 0000000..7f0bd86meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad-mm- new file +15
-0+++ accel_0.10.23.bb@@ -0,0 +1,42 @@ +# This recipe is not valid when not using accelerated multimedia IP +python __anonymous() { + features = bb.data.getVar("MACHINE_FEATURES", d, 1) + if not features: + return + if "mmip" not in features: + raise bb.parse.SkipPackage('gst-plugins-bad needs dependencies +derived from "mmip" flag in MACHINE_FEATURES') } + +# Include the base gst-plugins-bad recipe since this recipe is heavily +# derived from that one. +require recipes-multimedia/gstreamer/gst-plugins-bad_${PV}.bb + +DESCRIPTION = "GStreamer bad plugins that use multimedia acceleratorsfound on \
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad-mm- new file +28
-0+ TI devices" + +# Set PROVIDES and RPROVIDES values so that the base recipe names can +still # be used and PREFERRED_PROVIDER can be used to pick between them. +PROVIDES += "gst-plugins-bad" +RPROVIDES_${PN} += "gst-plugins-bad" +RPROVIDES_${PN}-dev += "gst-plugins-bad-dev" +RPROVIDES_${PN}-meta += "gst-plugins-bad-meta" + +DEPENDS += "omap5-sgx-ddk-um-linux libdce libdrm wayland" + +SRCREV = "f2df6f3b684f39500e22115b160191cef6d7dbaf" +SRC_URI = "git://git.ti.com/glsdk/gst-plugins-bad0-10.git;protocol=git" + +S = "${WORKDIR}/git" + +EXTRA_OECONF += " --disable-pvr" + +do_configure_prepend() { + git submodule init && git submodule update + autopoint -f +} + +FILES_${PN} += "\ + ${libdir}/*.so \ + ${libdir}/gstreamer-0.10/*" + +FILESPATH .= ":${COREBASE}/meta/recipes-multimedia/gstreamer/gst-plugins-bad-${PV}"
(quoted diff) +0
-0bad_0.10.23.bbappend b/meta-arago-extras/recipes- multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend deleted file mode 100644
index 74cc9ce..0000000
--- a/meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins- bad_0.10.23.bbappend
+++/dev/nullmeta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad-mm- new file +0
-1@@ -1,22 +0,0 @@ -DEPENDS_append_omap-a15 = " omap5-sgx-ddk-um-linux libdce libdrmwayland "
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad-mm- new file +0
-2- -# Make MACHINE specific since we pull different sources per MACHINE -
PACKAGE_ARCH= "${MACHINE_ARCH}"meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad-mm- new file +0
-5- -PR_append = "-arago1" - -SRCREV = "f2df6f3b684f39500e22115b160191cef6d7dbaf" -SRC_URI_omap-a15 = "git://git.ti.com/glsdk/gst-plugins-bad0-10.git;protocol=git"
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-bad-mm- new file +0
-13- -S_omap-a15 = "${WORKDIR}/git" - -EXTRA_OECONF += " --disable-pvr" - -do_configure_prepend_omap-a15() { - git submodule init && git submodule update - autopoint -f -} - -FILES_${PN} += "\ - ${libdir}/*.so \ - ${libdir}/gstreamer-0.10/*"(quoted diff) +0
-0mm-accel_0.10.36.bb b/meta-arago-extras/recipes-multimedia/gstreamer/gst- plugins-base-mm-accel_0.10.36.bb
new file mode 100644
index 0000000..3afb27dmeta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-base-mm new file +15
-0+++ -accel_0.10.36.bb@@ -0,0 +1,40 @@ +# This recipe is not valid when not using accelerated multimedia IP +python __anonymous() { + features = bb.data.getVar("MACHINE_FEATURES", d, 1) + if not features: + return + if "mmip" not in features: + raise bb.parse.SkipPackage('gst-plugins-base needs dependencies +derived from "mmip" flag in MACHINE_FEATURES') } + +# Include the base gst-plugins-base recipe since this recipe is heavily +# derived from that one. +require recipes-multimedia/gstreamer/gst-plugins-base_${PV}.bb + +DESCRIPTION = "GStreamer base plugins that use multimedia acceleratorsfound \
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-base-mm new file +26
-0+ on TI devices" + +# Set PROVIDES and RPROVIDES values so that the base recipe names can +still # be used and PREFERRED_PROVIDER can be used to pick between them. +PROVIDES += "gst-plugins-base" +RPROVIDES_${PN} += "gst-plugins-base" +RPROVIDES_${PN}-dev += "gst-plugins-base-dev" +RPROVIDES_${PN}-meta += "gst-plugins-base-meta" + +SRC_URI = "git://git.ti.com/glsdk/gst-plugins-base0-10.git;protocol=git" +SRCREV = "21305017f6095ad6e9b1a8f1006ee5be780b21f8" + +S = "${WORKDIR}/git" + +do_configure_prepend() { + git submodule init && git submodule update + autopoint -f +} + +EXTRA_OECONF +="--disable-ivorbis " + +FILES_${PN} += "\ + ${libdir}/*.so \ + ${libdir}/gstreamer-0.10/*" + +FILESPATH .= ":${COREBASE}/meta/recipes-multimedia/gstreamer/gst-plugins-base-${PV}"
(quoted diff) +0
-0base_0.10.36.bbappend b/meta-arago-extras/recipes- multimedia/gstreamer/gst-plugins-base_0.10.36.bbappend deleted file mode 100644
index 6691ee3..0000000
--- a/meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins- base_0.10.36.bbappend
+++/dev/nullmeta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-base-mm new file +0
-3@@ -1,20 +0,0 @@ -PR_append = "-arago1" - -# Make MACHINE specific since we pull different sources per MACHINE -
PACKAGE_ARCH= "${MACHINE_ARCH}"meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-base-mm new file +0
-2- -SRC_URI_omap-a15 = "git://git.ti.com/glsdk/gst-plugins-base0-10.git;protocol=git"
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-base-mm new file +0
-14-SRCREV = "21305017f6095ad6e9b1a8f1006ee5be780b21f8" - -S_omap-a15 = "${WORKDIR}/git" - -do_configure_prepend_omap-a15() { - git submodule init && git submodule update - autopoint -f -} - -EXTRA_OECONF +="--disable-ivorbis " - -FILES_${PN} += "\ - ${libdir}/*.so \ - ${libdir}/gstreamer-0.10/*"(quoted diff) +0
-0mm-accel_0.10.31.bb b/meta-arago-extras/recipes-multimedia/gstreamer/gst- plugins-good-mm-accel_0.10.31.bb
new file mode 100644
index 0000000..b83531fmeta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good-mm new file +15
-0+++ -accel_0.10.31.bb@@ -0,0 +1,42 @@ +# This recipe is not valid when not using accelerated multimedia IP +python __anonymous() { + features = bb.data.getVar("MACHINE_FEATURES", d, 1) + if not features: + return + if "mmip" not in features: + raise bb.parse.SkipPackage('gst-plugins-good needs dependencies +derived from "mmip" flag in MACHINE_FEATURES') } + +# Include the base gst-plugins-bad recipe since this recipe is heavily +# derived from that one. +require recipes-multimedia/gstreamer/gst-plugins-good_${PV}.bb + +DESCRIPTION = "GStreamer good plugins that use multimedia acceleratorsfound \
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good-mm new file +15
-0+ on TI devices" + +# Set PROVIDES and RPROVIDES values so that the base recipe names can +still # be used and PREFERRED_PROVIDER can be used to pick between them. +PROVIDES += "gst-plugins-good" +RPROVIDES_${PN} += "gst-plugins-good" +RPROVIDES_${PN}-dev += "gst-plugins-good-dev" +RPROVIDES_${PN}-meta += "gst-plugins-good-meta" + +SRC_URI = "git://git.ti.com/glsdk/gst-plugins-good0-10.git;protocol=git" +SRCREV = "733289614c50ff4e490d5a37ec4af3a540d1dfb9" + +# Fix compile errors with recent kernels SRC_URI_append = " +file://0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch \ + file://0001-v4l2_calls-define-V4L2_CID_HCENTER-and-V4L2_CID_VCEN.patch"
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good-mm new file +13
-0+ +S = "${WORKDIR}/git" + +do_configure_prepend() { + git submodule init && git submodule update + autopoint -f +} + +FILES_${PN} += "\ + ${libdir}/*.so \ + ${libdir}/gstreamer-0.10/*" + +FILESPATH .= ":${COREBASE}/meta/recipes-multimedia/gstreamer/gst-plugins-good-${PV}"
(quoted diff) +0
-0good_0.10.31.bbappend b/meta-arago-extras/recipes- multimedia/gstreamer/gst-plugins-good_0.10.31.bbappend deleted file mode 100644
index fdd94e3..0000000
--- a/meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins- good_0.10.31.bbappend
+++/dev/nullmeta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good-mm new file +0
-3@@ -1,23 +0,0 @@ -PR_append = "-arago1" - -# Make MACHINE specific since we pull different sources per MACHINE -
PACKAGE_ARCH= "${MACHINE_ARCH}"meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good-mm new file +0
-2- -SRC_URI_omap-a15 = "git://git.ti.com/glsdk/gst-plugins-good0-10.git;protocol=git"
meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good-mm new file +0
-4-SRCREV = "733289614c50ff4e490d5a37ec4af3a540d1dfb9" - -# Fix compile errors with recent kernels -SRC_URI_append_omap-a15 = " file://0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch \
- file://0001-v4l2_calls-define-V4L2_CID_HCENTER-and-
V4L2_CID_VCEN.patch"meta-arago-extras/recipes-multimedia/gstreamer/gst-plugins-good-mm new file +0
-12- -S_omap-a15 = "${WORKDIR}/git" - -do_configure_prepend_omap-a15() { - git submodule init && git submodule update - autopoint -f -} - -FILES_${PN} += "\ - ${libdir}/*.so \ - ${libdir}/gstreamer-0.10/*" -(quoted diff) +0
-0accel_0.10.36.bb b/meta-arago-extras/recipes- multimedia/gstreamer/gstreamer-mm-accel_0.10.36.bb new file mode 100644
index 0000000..9dd929fmeta-arago-extras/recipes-multimedia/gstreamer/gstreamer-mm-accel_ new file +15
-0+++ 0.10.36.bb@@ -0,0 +1,33 @@ +# This recipe is not valid when not using accelerated multimedia IP +python __anonymous() { + features = bb.data.getVar("MACHINE_FEATURES", d, 1) + if not features: + return + if "mmip" not in features: + raise bb.parse.SkipPackage('gstreamer needs dependencies +derived from "mmip" flag in MACHINE_FEATURES') } + +# Include the base gst-plugins-bad recipe since this recipe is heavily +# derived from that one. +require recipes-multimedia/gstreamer/gstreamer_${PV}.bb + +DESCRIPTION = "GStreamer that use multimedia accelerators found on TIdevices"
meta-arago-extras/recipes-multimedia/gstreamer/gstreamer-mm-accel_ new file +19
-0+ +# Set PROVIDES and RPROVIDES values so that the base recipe names can +still # be used and PREFERRED_PROVIDER can be used to pick between them. +PROVIDES += "gstreamer" +RPROVIDES_${PN} += "gstreamer" +RPROVIDES_${PN}-dev += "gstreamer-dev" +RPROVIDES_${PN}-meta += "gstreamer-meta" + +SRC_URI = "git://git.ti.com/glsdk/gstreamer0-10.git;protocol=git" +SRCREV = "e505f4a2ceee3b0328eb2efddb9ec1281d3fd60a" + +S = "${WORKDIR}/git" + +do_configure_prepend() { + git submodule init && git submodule update + autopoint -f +} + +FILESPATH .= ":${COREBASE}/meta/recipes-multimedia/gstreamer/gstreamer-${PV}"
(quoted diff) +0
-0multimedia/gstreamer/gstreamer_0.10.36.bbappend b/meta-arago- extras/recipes-multimedia/gstreamer/gstreamer_0.10.36.bbappend deleted file mode 100644
index 3c97b63..0000000
--- a/meta-arago-extras/recipes- multimedia/gstreamer/gstreamer_0.10.36.bbappend
+++/dev/nullmeta-arago-extras/recipes-multimedia/gstreamer/gstreamer-mm-accel_ new file +0
-4@@ -1,14 +0,0 @@ -SRC_URI_omap-a15 = "git://git.ti.com/glsdk/gstreamer0-10.git;protocol=git" -SRCREV = "e505f4a2ceee3b0328eb2efddb9ec1281d3fd60a" - -# Make MACHINE specific since we pull different sources per MACHINE -
PACKAGE_ARCH= "${MACHINE_ARCH}"meta-arago-extras/recipes-multimedia/gstreamer/gstreamer-mm-accel_ new file +0
-10- -PR_append = "-arago1" - -S_omap-a15 = "${WORKDIR}/git" - -do_configure_prepend_omap-a15() { - git submodule init && git submodule update - autopoint -f -} --1.7.9.5
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago