/
bluez4_4.101.bbappend
66 lines (53 loc) · 1.89 KB
/
bluez4_4.101.bbappend
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = "file://bluez-plugdev.patch \
file://bluetooth-agent.init \
file://bluetooth-agent.conf \
file://bluetooth"
inherit pkgconfig update-rc.d
export PKG_CONFIG_PATH="${STAGING_LIBDIR}/pkgconfig"
EXTRA_OECONF = "\
--disable-silent-rules \
--enable-gstreamer \
--enable-usb \
--enable-alsa \
--enable-tools \
--enable-bccmd \
--enable-hid2hci \
--enable-dfutool \
--enable-hidd \
--enable-pand \
--enable-dund \
--disable-cups \
--disable-service \
--enable-health \
--enable-test \
--enable-datafiles \
"
INITSCRIPT_NAME = "bluetooth"
INITSCRIPT_PARAMS = "start 45 2 3 4 5 . stop 55 0 1 6 ."
INITSCRIPT_NAME_${PN}-agent = "bluetooth-agent"
INITSCRIPT_PARAMS_${PN}-agent = "start 65 2 3 4 5 . stop 35 0 1 6 ."
do_install_append() {
rm -f ${D}/usr/lib/gstreamer-0.10/libgstbluetooth.la
install -d ${D}${sysconfdir}/init.d
install -d ${D}${sysconfdir}/default
install -m 0755 ${WORKDIR}/bluetooth ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/bluetooth-agent.init \
${D}${sysconfdir}/init.d/bluetooth-agent
install -m 0644 ${WORKDIR}/bluetooth-agent.conf \
${D}${sysconfdir}/default/bluetooth-agent
# add more bluetooth utilities
TOOLS="list-devices simple-endpoint simple-player simple-agent \
simple-service test-service test-network test-audio test-adapter \
test-device test-discovery"
for exe in $TOOLS; do
install -m 0755 ${S}/test/$exe ${D}/${bindir}/bluez-$exe
done
install -m 0755 ${S}/test/monitor-bluetooth ${D}/${bindir}
install -m 0755 ${S}/test/agent ${D}/${sbindir}/bluetooth-agent
}
PACKAGES =+ "bluez4-agent"
RPROVIDES_${PN}-agent = "bluetooth-agent"
FILES_${PN} += "/usr/lib/gstreamer-0.10/*"
FILES_${PN}-agent = "${sysconfdir}/init.d/bluetooth-agent \
${sbindir}/bluetooth-agent ${sysconfdir}/default/bluetooth-agent"