From 7ed1498534836668a9070614c6dd5a70ccaf394a Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Fri, 12 Apr 2024 11:14:31 -0300 Subject: alsa-state: Remove specific configuration files for verdin-imx8m[mp] To enhance compatibility with a read-only rootfs system, remove the dynamically assigned and utilize alsa-ucm-conf configuration from meta-toradex-bsp-common pulled-in via the meta-toradex-demos layer instead. Related-to: ELB-4916 Signed-off-by: Hiago De Franco (cherry picked from commit 54721dc86ece6b41d88f5e9de4262b575efc5393) --- recipes-bsp/alsa-state/alsa-state.bbappend | 36 ------------------------------ 1 file changed, 36 deletions(-) (limited to 'recipes-bsp/alsa-state/alsa-state.bbappend') diff --git a/recipes-bsp/alsa-state/alsa-state.bbappend b/recipes-bsp/alsa-state/alsa-state.bbappend index 7a3f6c6..604229a 100644 --- a/recipes-bsp/alsa-state/alsa-state.bbappend +++ b/recipes-bsp/alsa-state/alsa-state.bbappend @@ -2,39 +2,3 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/alsa-state/:" # make this machine specific, as we have different codecs with different settings PACKAGE_ARCH:tdx = "${MACHINE_ARCH}" - -SRC_URI:append:mx8m-generic-bsp:tdx = " \ - file://asound-dev.conf \ - file://asound-dahlia.conf \ - file://asound-dev.state \ - file://asound-dahlia.state \ -" - -FILES:${PN} += "${sysconfdir}/asound-*.conf" - -do_install:append:mx8m-generic-bsp:tdx () { - # Remove the default asound.conf, we need set up asound.conf dynamically - # at runtime to support both dev/dahlia boards. - rm -f ${D}${sysconfdir}/asound.conf - rm -f ${D}${localstatedir}/lib/alsa/asound.state - install -m 0644 ${WORKDIR}/asound-*.conf ${D}${sysconfdir} - install -m 0644 ${WORKDIR}/asound-*.state ${D}${localstatedir}/lib/alsa -} - -# Invalidate the default pkg_postinst in oe-core, this ensures our ontarget -# postinst to be the only one to run during package installation. -pkg_postinst:${PN}:mx8m-generic-bsp:tdx () { -} - -pkg_postinst_ontarget:${PN}:mx8m-generic-bsp:tdx () { - if grep -q "Development" /proc/device-tree/model; then - board="dev" - else - board="dahlia" - fi - - mv /etc/asound-$board.conf /etc/asound.conf - mv /var/lib/alsa/asound-$board.state /var/lib/alsa/asound.state - rm -f /etc/asound-*.conf - rm -f /var/lib/alsa/asound-*.state -} -- cgit v1.2.3