summaryrefslogtreecommitdiff
path: root/packages/alsa/alsa-state.bb
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-07-11 22:49:52 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-07-11 22:49:52 +0000
commit955ee67fb9e48d28ab8d95f2df6cea1e9ef1e33b (patch)
treea99a04ce0cc0845dd27ebb4cb771544ab06335dc /packages/alsa/alsa-state.bb
parent45e20ab54578e3d82eb4e43ec7e8a159dfbbf9c5 (diff)
alsa: integrate alsa-states recipe into alsa-state
Diffstat (limited to 'packages/alsa/alsa-state.bb')
-rw-r--r--packages/alsa/alsa-state.bb26
1 files changed, 19 insertions, 7 deletions
diff --git a/packages/alsa/alsa-state.bb b/packages/alsa/alsa-state.bb
index 495329457c..35c8f5d3d3 100644
--- a/packages/alsa/alsa-state.bb
+++ b/packages/alsa/alsa-state.bb
@@ -9,12 +9,20 @@
DESCRIPTION = "Default ALSA configuration"
LICENSE = "GPL"
-
+RRECOMMENDS_alsa-state = "alsa-states"
PV = "0.0.4"
-PR = "r1"
+PR = "r2"
SRC_URI = "file://asound.state \
- file://alsa-state"
+ file://alsa-state "
+
+SRC_URI_append_fic-gta01 = " \
+ file://capturehandset.state \
+ file://captureheadset.state \
+ file://gsmbluetooth.state \
+ file://gsmhandset.state \
+ file://gsmheadset.state \
+ file://stereoout.state"
inherit update-rc.d
@@ -22,13 +30,17 @@ INITSCRIPT_NAME = "alsa-state"
INITSCRIPT_PARAMS = "defaults 10"
do_install() {
- install -d ${D}${sysconfdir}/init.d
+ install -d ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/alsa-state ${D}${sysconfdir}/init.d
- install -m 0644 ${WORKDIR}/asound.state ${D}${sysconfdir}
- install -m 0755 ${WORKDIR}/alsa-state ${D}${sysconfdir}/init.d
+ install -m 0644 ${WORKDIR}/*.state ${D}${sysconfdir}
}
-FILES_${PN} = "${sysconfdir}/*"
+PACKAGES += "alsa-states"
+FILES_${PN} = "${sysconfdir}/init.d"
+FILES_alsa-states = "${sysconfdir}/*.state"
+PACKAGE_ARCH_${PN} = "all"
+PACKAGE_ARCH_alsa-states = "${MACHINE}"
pkg_postinst_${PN}() {
if test -z "$D"