summaryrefslogtreecommitdiff
path: root/packages/alsa/alsa-state.bb
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-07-12 12:43:02 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-07-12 12:43:02 +0000
commit41a9fdc088f60373864a5128e5b69d467412a34c (patch)
treef21e362bb285d4da20ac54c951864a6f5fa146bf /packages/alsa/alsa-state.bb
parent2123a2aba7385cb19a25f0cf61be70bea52f5929 (diff)
parent60e2d42b95077363829155bbb094f882ab2afcd4 (diff)
merge of '6fac15e307a3e92d647e9f142ee8341eec839a79'
and 'c1286096ff5c06af943961004df6e2d4107937ea'
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"