summaryrefslogtreecommitdiff
path: root/recipes-bsp/alsa-state/alsa-state.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/alsa-state/alsa-state.bbappend')
-rw-r--r--recipes-bsp/alsa-state/alsa-state.bbappend40
1 files changed, 0 insertions, 40 deletions
diff --git a/recipes-bsp/alsa-state/alsa-state.bbappend b/recipes-bsp/alsa-state/alsa-state.bbappend
deleted file mode 100644
index 7ce42c1..0000000
--- a/recipes-bsp/alsa-state/alsa-state.bbappend
+++ /dev/null
@@ -1,40 +0,0 @@
-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:am62xx:tdx = " \
- file://asound-dahlia.conf \
- file://asound-dahlia.state \
- file://asound-dev.conf \
- file://asound-dev.state \
-"
-
-FILES:${PN} += "${sysconfdir}/asound-*.conf"
-
-do_install:append:verdin-am62: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}:am62xx:tdx () {
-}
-
-pkg_postinst_ontarget:${PN}:verdin-am62: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
-}