summaryrefslogtreecommitdiff
path: root/packages/openmoko2/openmoko-alsa-scenarios.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openmoko2/openmoko-alsa-scenarios.bb')
-rw-r--r--packages/openmoko2/openmoko-alsa-scenarios.bb21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/openmoko2/openmoko-alsa-scenarios.bb b/packages/openmoko2/openmoko-alsa-scenarios.bb
new file mode 100644
index 0000000000..7aa76a8443
--- /dev/null
+++ b/packages/openmoko2/openmoko-alsa-scenarios.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "Package for the different scenarios used by OpenMoko"
+SECTION = "openmoko/base"
+PV = "1.0+svnr${SRCREV}"
+PR = "r1"
+
+COMPATIBLE_MACHINE = "(om-gta01|om-gta02)"
+
+SRC_URI_${MACHINE_ARCH} = "svn://svn.openmoko.org/trunk/src/target/audio/;module=${MACHINE_ARCH};proto=http"
+
+S = "${WORKDIR}/${MACHINE_ARCH}"
+
+do_install() {
+ install -d ${D}${datadir}/openmoko/scenarios/
+ install -m 644 ${S}/*.state ${D}${datadir}/openmoko/scenarios/
+ install -d ${D}${sysconfdir}/
+ install -m 644 ${S}/stereoout.state ${D}${sysconfdir}/asound.state
+}
+
+PACKAGE_ARCH_${PN} = "${MACHINE_ARCH}"
+
+FILES_${PN} += "${datadir}/openmoko"