aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/btsco/btsco-module.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/btsco/btsco-module.inc')
-rw-r--r--recipes/btsco/btsco-module.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/btsco/btsco-module.inc b/recipes/btsco/btsco-module.inc
new file mode 100644
index 0000000000..5c38fb1719
--- /dev/null
+++ b/recipes/btsco/btsco-module.inc
@@ -0,0 +1,19 @@
+DESCRIPTION = "Bluetooth-alsa headset module"
+SECTION = "kernel/modules"
+HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
+LICENSE = "GPL"
+DEPENDS = "alsa-lib bluez-libs"
+
+inherit module
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz \
+ file://makefile.patch;patch=1"
+
+S = "${WORKDIR}/btsco-${PV}/kernel"
+
+MAKE_TARGETS = "KERNEL_PATH=${STAGING_KERNEL_DIR} MAKE='make -e'"
+
+do_install() {
+ install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
+ install -m 0644 ${S}/snd-bt-sco${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/
+}