Skip to contentSkip to conversation

imx-alsa-plugins: Add support for all mx6 and mx7 machines

PATCH Superseded Fabio Berton 2 participants 7 messages Oct 28, 2016 – Oct 31, 2016 Arm i.MX and Layerscape

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 imx-alsa-plugins: Add support for all mx6 and mx7 machines

---
 recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb +7 -3
index 574a260..e08ad6e 100644
@@ -33,7 +33,11 @@ FILES_${PN} += "${libdir}/alsa-lib/libasound_*.so"
 FILES_${PN}-dbg += "${libdir}/alsa-lib/.debug"
 FILES_${PN}-dev += "${libdir}/alsa-lib/*.la"
 
-COMPATIBLE_MACHINE = "(mx6|mx6ul|mx7)"
-PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}"
+COMPATIBLE_MACHINE = "(mx6dl|mx6q|mx6sl|mx6sx|mx6ul|mx6ull|mx7d)"
+PACKAGE_ARCH_mx6dl = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_mx6q = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_mx6sl = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_mx6sx = "${MACHINE_SOCARCH}"
 PACKAGE_ARCH_mx6ul = "${MACHINE_SOCARCH}"
-PACKAGE_ARCH_mx7 = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_mx6ull = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_mx7d = "${MACHINE_SOCARCH}"
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/5 imx-base: Set extra audio support for all mx6 and mx7 machines

Install imx-alsa-plugins as MACHINE_EXTRA_RRECOMMENDS for all mx6 and mx7 machines on distros that have alsa feature.

---
 conf/machine/include/imx-base.inc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
conf/machine/include/imx-base.inc +7 -1
index 6eab64d..5606250 100644
@@ -108,7 +108,13 @@ MACHINE_EXTRA_RRECOMMENDS += "${MACHINE_FIRMWARE}"
 
 # Extra audio support
 # FIXME: Add support for ALL SoC families
-MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6dl = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6q = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6sl = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6sx = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6ul = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6ull = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx7d = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
 
 # Extra udev rules
 MACHINE_EXTRA_RRECOMMENDS += "udev-rules-imx"
Signature · 1 line
2.1.4
#2 lore raw

PATCH 3/5 imx-gst1.0-plugin: Add support for all mx6 and mx7 machines

In reply to Fabio Berton
---
 recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb +12 -5
index 5b22f46..742548b 100644
@@ -12,7 +12,7 @@ DEPENDS_append_mx6dl = " imx-lib imx-vpu imx-vpuwrap"
 DEPENDS_append_mx6sl = " imx-lib"
 DEPENDS_append_mx6sx = " imx-lib"
 DEPENDS_append_mx6ul = " imx-lib"
-DEPENDS_append_mx7 = " imx-lib"
+DEPENDS_append_mx7d = " imx-lib"
 
 # For backwards compatibility
 RREPLACES_${PN} = "gst1.0-fsl-plugin"
@@ -37,11 +37,13 @@ inherit autotools pkgconfig
 # Make sure kernel sources are available
 do_configure[depends] += "virtual/kernel:do_shared_workdir"
 
-PLATFORM_mx6 = "MX6"
+PLATFORM_mx6dl = "MX6DL"
+PLATFORM_mx6q = "MX6Q"
 PLATFORM_mx6sl = "MX6SL"
 PLATFORM_mx6sx = "MX6SX"
 PLATFORM_mx6ul = "MX6UL"
-PLATFORM_mx7= "MX7D"
+PLATFORM_mx6ull = "MX6ULL"
+PLATFORM_mx7d = "MX7D"
 
 # Todo add a mechanism to map possible build targets
 EXTRA_OECONF = "PLATFORM=${PLATFORM} \
@@ -56,7 +58,12 @@ BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis"
 RDEPENDS_${PN} += "imx-parser ${BEEP_RDEPENDS} gstreamer1.0-plugins-good-id3demux "
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG_mx6 = "overlaysink"
+PACKAGECONFIG_mx6dl = "overlaysink"
+PACKAGECONFIG_mx6q = "overlaysink"
+PACKAGECONFIG_mx6sl = "overlaysink"
+PACKAGECONFIG_mx6sx = "overlaysink"
+PACKAGECONFIG_mx6ul = "overlaysink"
+PACKAGECONFIG_mx6ull = "overlaysink"
 
 
 # FIXME: Add all features
@@ -82,4 +89,4 @@ FILES_${PN}-grecorder = "${bindir}/grecorder-1.0"
 FILES_${PN}-librecorder-engine = "${libdir}/librecorder_engine-1.0${SOLIBS}"
 FILES_${PN}-libplayengine = "${libdir}/libplayengine-1.0${SOLIBS}"
 
-COMPATIBLE_MACHINE = "(mx6|mx6ul|mx7)"
+COMPATIBLE_MACHINE = "(mx6dl|mx6q|mx6sl|mx6sx|mx6ul|mx6ull|mx7d)"
Signature · 1 line
2.1.4
#3 lore raw

Re: [PATCH 3/5] imx-gst1.0-plugin: Add support for all mx6 and mx7 machines

Quoted 35 lines · Fabio Berton
---
 recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb +5 -3
index 5b22f46..742548b 100644
@@ -12,7 +12,7 @@ DEPENDS_append_mx6dl = " imx-lib imx-vpu imx-vpuwrap"
 DEPENDS_append_mx6sl = " imx-lib"
 DEPENDS_append_mx6sx = " imx-lib"
 DEPENDS_append_mx6ul = " imx-lib"
-DEPENDS_append_mx7 = " imx-lib"
+DEPENDS_append_mx7d = " imx-lib"
 
 # For backwards compatibility
 RREPLACES_${PN} = "gst1.0-fsl-plugin"
@@ -37,11 +37,13 @@ inherit autotools pkgconfig
 # Make sure kernel sources are available
 do_configure[depends] += "virtual/kernel:do_shared_workdir"
 
-PLATFORM_mx6 = "MX6"
+PLATFORM_mx6dl = "MX6DL"
+PLATFORM_mx6q = "MX6Q"
 PLATFORM_mx6sl = "MX6SL"
 PLATFORM_mx6sx = "MX6SX"
 PLATFORM_mx6ul = "MX6UL"
-PLATFORM_mx7= "MX7D"
+PLATFORM_mx6ull = "MX6ULL"
+PLATFORM_mx7d = "MX7D"
 
 # Todo add a mechanism to map possible build targets
 EXTRA_OECONF = "PLATFORM=${PLATFORM} \

recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" · line 64

Quoted 8 lines
recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb +4 -1
@@ -56,7 +58,12 @@ BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis"
 RDEPENDS_${PN} += "imx-parser ${BEEP_RDEPENDS} gstreamer1.0-plugins-good-id3demux "
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG_mx6 = "overlaysink"
+PACKAGECONFIG_mx6dl = "overlaysink"
+PACKAGECONFIG_mx6q = "overlaysink"
+PACKAGECONFIG_mx6sl = "overlaysink"
+PACKAGECONFIG_mx6sx = "overlaysink"

Fine.

recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" · line 66

Quoted 2 lines
recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb +2 -0
+PACKAGECONFIG_mx6ul = "overlaysink"
+PACKAGECONFIG_mx6ull = "overlaysink"

Those are not in the mx6 set so please drop.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#4 lore raw

PATCH 4/5 gstreamer1.0-plugins-imx: Add support for all mx6 and mx7 machines

In reply to Fabio Berton
---
 recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.2.bb +1 -1
index 8a1777f..07273d6 100644
@@ -63,4 +63,4 @@ require recipes-multimedia/gstreamer/gst-plugins-package.inc
 # the following line is required to produce one package for each plugin
 PACKAGES_DYNAMIC = "^${PN}-.*"
 
-COMPATIBLE_MACHINE = "(mx6|mx7)"
+COMPATIBLE_MACHINE = "(mx6dl|mx6q|mx6sl|mx6sx|mx6ul|mx6ull|mx7d)"
Signature · 1 line
2.1.4
#5 lore raw

PATCH 5/5 imx-base: Use GStreamer 1.0 plugins for all mx6 and mx7 machines

In reply to Fabio Berton

Set MACHINE_GSTREAMER_1_0_PLUGIN variable to use gstreamer1.0-plugins-imx-meta for all mx6 and mx7 machines.

---
 conf/machine/include/imx-base.inc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
conf/machine/include/imx-base.inc +6 -2
index 5606250..29677f2 100644
@@ -121,9 +121,13 @@ MACHINE_EXTRA_RRECOMMENDS += "udev-rules-imx"
 
 # GStreamer 1.0 plugins
 MACHINE_GSTREAMER_1_0_PLUGIN ?= ""
-MACHINE_GSTREAMER_1_0_PLUGIN_mx6q ?= "gstreamer1.0-plugins-imx-meta"
 MACHINE_GSTREAMER_1_0_PLUGIN_mx6dl ?= "gstreamer1.0-plugins-imx-meta"
-MACHINE_GSTREAMER_1_0_PLUGIN_mx7 ?= "gstreamer1.0-plugins-imx-meta"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6q ?= "gstreamer1.0-plugins-imx-meta"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6sl ?= "gstreamer1.0-plugins-imx-meta"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6sx ?= "gstreamer1.0-plugins-imx-meta"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6ul ?= "gstreamer1.0-plugins-imx-meta"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6ull ?= "gstreamer1.0-plugins-imx-meta"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx7d ?= "gstreamer1.0-plugins-imx-meta"
 
 # Determines if the SoC has support for Vivante kernel driver
 SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT       = "0"
Signature · 1 line
2.1.4
#6 lore raw
In reply to Fabio Berton
Quoted 10 lines · Fabio Berton
---
 recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb +0 -0
index 574a260..e08ad6e 100644

recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb FILES_${PN} += "${libdir}/alsa-lib/libasound_*.so" · line 37

Quoted 7 lines
recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb +2 -2
@@ -33,7 +33,11 @@ FILES_${PN} += "${libdir}/alsa-lib/libasound_*.so"
 FILES_${PN}-dbg += "${libdir}/alsa-lib/.debug"
 FILES_${PN}-dev += "${libdir}/alsa-lib/*.la"
 
-COMPATIBLE_MACHINE = "(mx6|mx6ul|mx7)"
-PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}"
+COMPATIBLE_MACHINE = "(mx6dl|mx6q|mx6sl|mx6sx|mx6ul|mx6ull|mx7d)"
+PACKAGE_ARCH_mx6dl = "${MACHINE_SOCARCH}"

As we restrict the compatible list, you could use:

PACKAGE_ARCH = "${MACHINE_SOCARCH}"

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750