summaryrefslogtreecommitdiff
path: root/recipes/openmoko2/openmoko-alsa-scenarios_svn.bb
blob: 315ea4d1b9858525517b463806b064f3f01d3698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
DESCRIPTION = "Package for the different scenarios used by Openmoko"
SECTION = "openmoko/base"
SRCREV = "4732"
PV = "1.0+svnr${SRCPV}"
PR = "r2"

PROVIDES = "virtual/alsa-scenarios"

COMPATIBLE_MACHINE = "(om-gta01|om-gta02)"

SRC_URI = "svn://svn.openmoko.org/trunk/src/target/audio/;module=om-gta01;proto=http"
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"