summaryrefslogtreecommitdiff
path: root/packages/alsa/alsa-state.bb
diff options
context:
space:
mode:
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"