]> code.ossystems Code Review - meta-freescale.git/commitdiff
alsa-lib: Ensure MACHINE_SOCARCH is used consistently
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 10 Jul 2017 15:01:12 +0000 (12:01 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 7 Aug 2017 14:50:53 +0000 (11:50 -0300)
The alsa-lib needs to apply the patches for all i.MX SoCs so using the
'imx' override seems to be the best choice for this specific
use-case.

A missing aspect though was that this should also affect every package
which /depends/ on alsa-lib (e.g: alsa-utils) so it also goes to
MACHINE_SOCARCH architecture fixing the signature change across
different machines.

This fix has been tested using a massive parallel build using
multiconfig.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
conf/machine/include/imx-base.inc
recipes-multimedia/alsa/alsa-lib_%.bbappend

index 04d22d8d4a9efbbaf564623d35b712e36bd6cd3d..6c7e494e8190a2f2cac7c34ef7c0ce9fc9e3ae08 100644 (file)
@@ -91,6 +91,7 @@ MACHINE_SOCARCH_SUFFIX_mx6ull = "-mx6ul"
 MACHINE_SOCARCH_SUFFIX_use-mainline-bsp = "-imx"
 
 MACHINE_ARCH_FILTER = "virtual/kernel"
+MACHINE_SOCARCH_FILTER_append_imx = " alsa-lib"
 MACHINE_SOCARCH_FILTER_append_imxvpu = " imx-vpu libimxvpuapi imx-codec imx-vpuwrap imx-parser"
 MACHINE_SOCARCH_FILTER_append_imxgpu2d = " virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d cairo pango weston"
 MACHINE_SOCARCH_FILTER_append_imxpxp = " imx-codec imx-parser"
index bfe346ccb9cf6ded5a5c0bf7b97ba45e0d403170..235a3b149cc9f9417e86695eed91b1d960d84262 100644 (file)
@@ -3,8 +3,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 IMX_PATCH = " file://0001-add-conf-for-multichannel-support-in-imx.patch \
               file://0004-pcm-Don-t-store-the-state-for-SND_PCM_STATE_SUSPENDE.patch"
 
-SRC_URI_append_mx6 = "${IMX_PATCH}"
-SRC_URI_append_mx7 = "${IMX_PATCH}"
+SRC_URI_append_imx = "${IMX_PATCH}"
 
-PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}"
-PACKAGE_ARCH_mx7 = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_imx = "${MACHINE_SOCARCH}"