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>
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"
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}"