[Armadeus-commitlog] armadeus branch, master, updated. latestrelease-7-g59f0fd7
Brought to you by:
sszy
|
From: Julien B a. A. <ar...@us...> - 2009-07-01 15:06:38
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 59f0fd78578b431e960b339af119195dc0f0e833 (commit)
via 7efab729eedb9652bc5a6daaa884f700e00b08a7 (commit)
from b0065b0c0132ed24beeb055a78170713bd970baf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 59f0fd78578b431e960b339af119195dc0f0e833
Author: Julien Boibessot <jul...@ar...>
Date: Wed Jul 1 17:03:14 2009 +0200
[BUILDROOT] Add preliminary work to build bluez
commit 7efab729eedb9652bc5a6daaa884f700e00b08a7
Author: Julien Boibessot <julien@LAPTOP-ARMADEUS-JB.(none)>
Date: Wed Jul 1 16:38:36 2009 +0200
[BUILDROOT] Add preliminary work to build bluez
-----------------------------------------------------------------------
Summary of changes:
buildroot/package/bluez/Config.in | 8 +
buildroot/package/bluez/bluetooth.conf | 33 ++++
buildroot/package/bluez/bluetooth.default | 37 ++++
buildroot/package/bluez/bluetooth.init | 102 +++++++++++
buildroot/package/bluez/bluez-pand-devup.sh | 2 +
buildroot/package/bluez/bluez-utils-bluepin.sh | 2 +
.../bluez/bluez-utils-bluez-include-patch.patch | 11 ++
...ttach-removes-uclibc-not-supported-speeds.patch | 25 +++
buildroot/package/bluez/bluez.mk | 177 ++++++++++++++++++++
buildroot/package/bluez/hcid.conf | 57 +++++++
buildroot/package/bluez/rfcomm-getty | 9 +
buildroot/package/bluez/rfcomm.conf | 16 ++
12 files changed, 479 insertions(+), 0 deletions(-)
create mode 100644 buildroot/package/bluez/Config.in
create mode 100644 buildroot/package/bluez/bluetooth.conf
create mode 100644 buildroot/package/bluez/bluetooth.default
create mode 100644 buildroot/package/bluez/bluetooth.init
create mode 100644 buildroot/package/bluez/bluez-pand-devup.sh
create mode 100644 buildroot/package/bluez/bluez-utils-bluepin.sh
create mode 100644 buildroot/package/bluez/bluez-utils-bluez-include-patch.patch
create mode 100644 buildroot/package/bluez/bluez-utils-hciattach-removes-uclibc-not-supported-speeds.patch
create mode 100644 buildroot/package/bluez/bluez.mk
create mode 100644 buildroot/package/bluez/hcid.conf
create mode 100644 buildroot/package/bluez/rfcomm-getty
create mode 100644 buildroot/package/bluez/rfcomm.conf
diff --git a/buildroot/package/bluez/Config.in b/buildroot/package/bluez/Config.in
new file mode 100644
index 0000000..dbea3dc
--- /dev/null
+++ b/buildroot/package/bluez/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_BLUEZ
+ bool "bluez"
+ default n
+ select BR2_PACKAGE_DBUS
+ select BR2_PACKAGE_PKGCONFIG
+ help
+ Install the bluez package
+
diff --git a/buildroot/package/bluez/bluetooth.conf b/buildroot/package/bluez/bluetooth.conf
new file mode 100644
index 0000000..aa642a2
--- /dev/null
+++ b/buildroot/package/bluez/bluetooth.conf
@@ -0,0 +1,33 @@
+<!-- This configuration file specifies the required security policies
+ for Bluetooth core service to work. -->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+ <!-- ../system.conf have denied everything, so we just punch some holes -->
+
+ <policy user="root">
+ <allow own="org.bluez"/>
+ </policy>
+
+ <policy at_console="true">
+ <allow send_destination="org.bluez.Manager"/>
+ <allow receive_sender="org.bluez.Manager"/>
+
+ <allow send_path="/org/bluez"/>
+
+ <allow send_destination="org.bluez.Adapter"/>
+ <allow receive_sender="org.bluez.Adapter"/>
+
+ <allow send_destination="org.bluez.Service"/>
+ <allow receive_sender="org.bluez.Service"/>
+
+ <allow send_destination="org.bluez.Database"/>
+ <allow receive_sender="org.bluez.Database"/>
+
+ <allow send_destination="org.bluez.Security"/>
+ <allow receive_sender="org.bluez.Security"/>
+ </policy>
+
+</busconfig>
diff --git a/buildroot/package/bluez/bluetooth.default b/buildroot/package/bluez/bluetooth.default
new file mode 100644
index 0000000..4817d38
--- /dev/null
+++ b/buildroot/package/bluez/bluetooth.default
@@ -0,0 +1,37 @@
+# Bluetooth configuraton file
+
+# Start of hcid (allowed values are "true" and "false")
+HCID_ENABLE=true
+
+# Config file for hcid
+HCID_CONFIG="/etc/bluetooth/hcid.conf"
+
+# Start sdpd (allowed values are "true" and "false")
+SDPD_ENABLE=true
+
+# Start hidd (allowed values are "true" and "false")
+HIDD_ENABLE=true
+
+# Arguments to hidd
+HIDD_OPTIONS=""
+
+# Run hid2hci (allowed values are "true" and "false")
+HID2HCI_ENABLE=true
+
+# Bind rfcomm devices (allowed values are "true" and "false")
+RFCOMM_ENABLE=true
+
+# Config file for rfcomm
+RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
+
+# Start dund (allowed values are "true" and "false")
+DUND_ENABLE=false
+
+# Arguments to dund
+DUND_OPTIONS="--listen --persist"
+
+# Start pand (allowed values are "true" and "false")
+PAND_ENABLE=false
+
+# Arguments to pand
+PAND_OPTIONS="--listen --role NAP"
diff --git a/buildroot/package/bluez/bluetooth.init b/buildroot/package/bluez/bluetooth.init
new file mode 100644
index 0000000..171f8e0
--- /dev/null
+++ b/buildroot/package/bluez/bluetooth.init
@@ -0,0 +1,102 @@
+#!/bin/sh
+#
+# Start/stop the Bluetooth daemons
+#
+
+set -e
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+NAME=bluetooth
+DESC="Bluetooth subsystem"
+
+HCIATTACH_NAME=hciattach
+DAEMON_NAME=hcid
+HID2HCI_NAME=hid2hci
+RFCOMM_NAME=rfcomm
+RFCOMM_GETTY_NAME=rfcomm-getty
+
+HCIATTACH_EXEC="`which $HCIATTACH_NAME || true`"
+DAEMON_EXEC="`which $DAEMON_NAME || true`"
+HID2HCI_EXEC="`which $HID2HCI_NAME || true`"
+RFCOMM_EXEC="`which $RFCOMM_NAME || true`"
+
+DAEMON_ENABLE=true
+HID2HCI_ENABLE=false
+RFCOMM_ENABLE=true
+
+DAEMON_CONFIG="/etc/bluetooth/hcid.conf"
+RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
+
+RFCOMM_GETTY=/etc/bluetooth/rfcomm/rfcomm-getty
+
+HCIATTACH_ENABLE=true
+HCIATTACH_TTY=ttyS1
+HCIATTACH_TYPE=gumstix
+HCIATTACH_START_SPEED=57600
+HCIATTACH_SPEED=921600
+HCIATTACH_HANDSHAKE=flow
+
+[ -e /etc/default/bluetooth ] && . /etc/default/bluetooth
+
+case "$1" in
+ start)
+
+ echo -n "Starting 32kHz clock..."
+ /usr/sbin/pxaregs OSCC_OON 1
+ while /usr/sbin/pxaregs OSCC_OOK | tail -n 1 | grep -q -v 1;do
+ echo -n '.'
+ sleep 1
+ done
+ echo "Settled"
+
+ /sbin/modprobe gumstix_bluetooth
+ /sbin/modprobe proc_gpio
+
+ echo "AF1 in" >/proc/gpio/GPIO42
+ echo "AF2 out" >/proc/gpio/GPIO43
+ echo "AF1 in" >/proc/gpio/GPIO44
+ echo "AF2 out" >/proc/gpio/GPIO45
+
+ echo -n "Starting $DESC:"
+ if $HCIATTACH_ENABLE && [ -x "$HCIATTACH_EXEC" ] ; then
+ $HCIATTACH_EXEC -s $HCIATTACH_START_SPEED $HCIATTACH_TTY $HCIATTACH_TYPE $HCIATTACH_SPEED $HCIATTACH_HANDSHAKE
+ echo -n " $HCIATTACH_TTY"
+ fi
+ if $DAEMON_ENABLE && [ -x "$DAEMON_EXEC" ] && [ -f "$DAEMON_CONFIG" ] ; then
+ $DAEMON_EXEC -s -f $DAEMON_CONFIG
+ echo -n " $DAEMON_NAME"
+ fi
+ if $HID2HCI_ENABLE && [ -x "$HID2HCI_EXEC" ] ; then
+ $HID2HCI_EXEC --tohci > /dev/null 2>&1 || true
+ echo -n " $HID2HCI_NAME"
+ fi
+ if $RFCOMM_ENABLE && [ -x "$RFCOMM_EXEC" -a -f "$RFCOMM_CONFIG" ] ; then
+ sleep 1
+ /usr/bin/sdptool add --channel=1 SP > /dev/null
+ rfcomm -r watch 0 1 /sbin/getty -w -L rfcomm0 115200 vt100 &
+# $RFCOMM_EXEC -r -f $RFCOMM_CONFIG watch all > /dev/null 2>&1 &
+# $RFCOMM_GETTY > /dev/null 2>&1 &
+ echo -n " $RFCOMM_NAME"
+ fi
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping $DESC:"
+ killall $RFCOMM_NAME > /dev/null 2>&1 || true
+ echo -n " $RFCOMM_NAME"
+ killall $HID2HCI_NAME > /dev/null 2>&1 || true
+ echo -n " $HID2HCI_NAME"
+ killall $DAEMON_NAME > /dev/null 2>&1 || true
+ echo -n " $DAEMON_NAME"
+ killall $HCIATTACH_NAME > /dev/null 2>&1 || true
+ echo -n " $HCIATTACH_NAME"
+ echo "."
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/buildroot/package/bluez/bluez-pand-devup.sh b/buildroot/package/bluez/bluez-pand-devup.sh
new file mode 100644
index 0000000..6015470
--- /dev/null
+++ b/buildroot/package/bluez/bluez-pand-devup.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+/sbin/ifup $1
diff --git a/buildroot/package/bluez/bluez-utils-bluepin.sh b/buildroot/package/bluez/bluez-utils-bluepin.sh
new file mode 100644
index 0000000..dccb76e
--- /dev/null
+++ b/buildroot/package/bluez/bluez-utils-bluepin.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "PIN:`/bin/cat /etc/bluetooth/pin`"
diff --git a/buildroot/package/bluez/bluez-utils-bluez-include-patch.patch b/buildroot/package/bluez/bluez-utils-bluez-include-patch.patch
new file mode 100644
index 0000000..f3465e8
--- /dev/null
+++ b/buildroot/package/bluez/bluez-utils-bluez-include-patch.patch
@@ -0,0 +1,11 @@
+--- bluez-utils-3.13/common/Makefile.in.orig 2007-08-01 14:00:11.000000000 -0700
++++ bluez-utils-3.13/common/Makefile.in 2007-08-01 14:00:30.000000000 -0700
+@@ -226,7 +226,7 @@
+ hal.h $(hal_sources) notify.h $(notify_sources)
+
+ test_textfile_LDADD = libhelper.a
+-AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@
++AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@
+ EXTRA_DIST = ppoll.h uinput.h hal-dummy.c hal-libhal.c \
+ notify-dummy.c notify-inotify.c \
+ sdp-dummy.c sdp-expat.c sdp-glib.c
diff --git a/buildroot/package/bluez/bluez-utils-hciattach-removes-uclibc-not-supported-speeds.patch b/buildroot/package/bluez/bluez-utils-hciattach-removes-uclibc-not-supported-speeds.patch
new file mode 100644
index 0000000..b9a2557
--- /dev/null
+++ b/buildroot/package/bluez/bluez-utils-hciattach-removes-uclibc-not-supported-speeds.patch
@@ -0,0 +1,25 @@
+Index: bluez-utils-3.20/tools/hciattach.c
+===================================================================
+--- bluez-utils-3.20.orig/tools/hciattach.c 2009-07-01 16:06:54.000000000 +0200
++++ bluez-utils-3.20/tools/hciattach.c 2009-07-01 16:07:40.000000000 +0200
+@@ -104,7 +104,7 @@
+ return B57600;
+ case 115200:
+ return B115200;
+- case 230400:
++/* case 230400:
+ return B230400;
+ case 460800:
+ return B460800;
+@@ -119,9 +119,9 @@
+ case 1152000:
+ return B1152000;
+ case 1500000:
+- return B1500000;
++ return B1500000;*/
+ default:
+- return B57600;
++ return B115200;
+ }
+ }
+
diff --git a/buildroot/package/bluez/bluez.mk b/buildroot/package/bluez/bluez.mk
new file mode 100644
index 0000000..278d488
--- /dev/null
+++ b/buildroot/package/bluez/bluez.mk
@@ -0,0 +1,177 @@
+#############################################################
+#
+# bluez-utils - User Space Program For Controling Bluetooth
+#
+#############################################################
+#
+BLUEZ_SOURCE_URL=http://bluez.sourceforge.net/download
+BLUEZ_LIBS_SOURCE=bluez-libs-3.20.tar.gz
+BLUEZ_UTILS_SOURCE=bluez-utils-3.20.tar.gz
+BLUEZ_HCIDUMP_SOURCE=bluez-hcidump-1.39.tar.gz
+BLUEZ_LIBS_BUILD_DIR=$(BUILD_DIR)/bluez-libs-3.20
+BLUEZ_UTILS_BUILD_DIR=$(BUILD_DIR)/bluez-utils-3.20
+BLUEZ_HCIDUMP_BUILD_DIR=$(BUILD_DIR)/bluez-hcidump-1.39
+
+$(DL_DIR)/$(BLUEZ_LIBS_SOURCE):
+ $(WGET) -P $(DL_DIR) $(BLUEZ_SOURCE_URL)/$(BLUEZ_LIBS_SOURCE)
+
+$(DL_DIR)/$(BLUEZ_UTILS_SOURCE):
+ $(WGET) -P $(DL_DIR) $(BLUEZ_SOURCE_URL)/$(BLUEZ_UTILS_SOURCE)
+
+$(DL_DIR)/$(BLUEZ_HCIDUMP_SOURCE):
+ $(WGET) -P $(DL_DIR) $(BLUEZ_SOURCE_URL)/$(BLUEZ_HCIDUMP_SOURCE)
+
+$(BLUEZ_LIBS_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BLUEZ_LIBS_SOURCE)
+ zcat $(DL_DIR)/$(BLUEZ_LIBS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(BLUEZ_LIBS_BUILD_DIR) package/bluez bluez-libs*.patch
+ touch $(BLUEZ_LIBS_BUILD_DIR)/.unpacked
+
+$(BLUEZ_UTILS_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BLUEZ_UTILS_SOURCE)
+ zcat $(DL_DIR)/$(BLUEZ_UTILS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(BLUEZ_UTILS_BUILD_DIR) package/bluez bluez-utils*.patch
+ touch $(BLUEZ_UTILS_BUILD_DIR)/.unpacked
+
+$(BLUEZ_HCIDUMP_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BLUEZ_HCIDUMP_SOURCE)
+ zcat $(DL_DIR)/$(BLUEZ_HCIDUMP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(BLUEZ_HCIDUMP_BUILD_DIR)/.unpacked
+
+$(BLUEZ_LIBS_BUILD_DIR)/.configured: $(BLUEZ_LIBS_BUILD_DIR)/.unpacked
+ (cd $(BLUEZ_LIBS_BUILD_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" \
+ PKG_CONFIG_PATH="$(STAGING_DIR)/lib/pkconfig:$(STAGING_DIR)/usr/lib/pkgconfig" PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" PKG_CONFIG_SYSROOT=$(STAGING_DIR) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ );
+ touch $(BLUEZ_LIBS_BUILD_DIR)/.configured
+
+ifeq ($(strip $(BR2_PACKAGE_ALSA-LIB)),y)
+WITH_ALSA=--with-alsa=$(STAGING_DIR)
+else
+WITH_ALSA=--without-alsa
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_OPENOBEX)),y)
+OBEX_DEP=$(STAGING_DIR)/lib/libopenobex.so
+WITH_OBEX=--with-openobex=$(STAGING_DIR)
+else
+OBEX_DEP=
+WITH_OBEX=--without-obex
+endif
+
+$(BLUEZ_UTILS_BUILD_DIR)/.configured: $(BLUEZ_UTILS_BUILD_DIR)/.unpacked $(TARGET_DIR)/usr/lib/libbluetooth.so $(OBEX_DEP)
+ (cd $(BLUEZ_UTILS_BUILD_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" \
+ PKG_CONFIG_PATH="$(STAGING_DIR)/lib/pkconfig:$(STAGING_DIR)/usr/lib/pkgconfig" PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" PKG_CONFIG_SYSROOT=$(STAGING_DIR) \
+ ./configure \
+ $(WITH_OBEX) \
+ $(WITH_ALSA) \
+ --disable-expat \
+ --enable-network \
+ --enable-serial \
+ --disable-input \
+ --enable-audio \
+ --enable-sync \
+ --enable-hcid \
+ --enable-sdpd \
+ --enable-hidd \
+ --enable-pand \
+ --disable-test \
+ --enable-configfiles \
+ --disable-manpages \
+ --enable-initscripts \
+ --disable-pcmciarules \
+ --disable-bccmd \
+ --enable-avctrl \
+ --enable-hid2hci \
+ --disable-dfutool \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ );
+ touch $(BLUEZ_UTILS_BUILD_DIR)/.configured
+
+
+$(BLUEZ_HCIDUMP_BUILD_DIR)/.configured: $(BLUEZ_HCIDUMP_BUILD_DIR)/.unpacked $(TARGET_DIR)/usr/lib/libbluetooth.so
+ (cd $(BLUEZ_HCIDUMP_BUILD_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" \
+ PKG_CONFIG_PATH="$(STAGING_DIR)/lib/pkconfig:$(STAGING_DIR)/usr/lib/pkgconfig" PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" PKG_CONFIG_SYSROOT=$(STAGING_DIR) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ );
+ touch $(BLUEZ_HCIDUMP_BUILD_DIR)/.configured
+
+$(BLUEZ_LIBS_BUILD_DIR)/src/libbluetooth.la: $(BLUEZ_LIBS_BUILD_DIR)/.configured
+ $(MAKE) -C $(BLUEZ_LIBS_BUILD_DIR)
+
+$(BLUEZ_UTILS_BUILD_DIR)/tools/hciattach: $(BLUEZ_UTILS_BUILD_DIR)/.configured
+ $(MAKE) -C $(BLUEZ_UTILS_BUILD_DIR)
+
+$(BLUEZ_HCIDUMP_BUILD_DIR)/hcidump: $(BLUEZ_HCIDUMP_BUILD_DIR)/.configured
+ $(MAKE) -C $(BLUEZ_HCIDUMP_BUILD_DIR)
+
+$(STAGING_DIR)/usr/lib/libbluetooth.so $(STAGING_DIR)/usr/lib/libbluetooth.a: $(BLUEZ_LIBS_BUILD_DIR)/src/libbluetooth.la
+ $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(BLUEZ_LIBS_BUILD_DIR) install
+ $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libbluetooth.la
+
+$(TARGET_DIR)/usr/lib/libbluetooth.so: $(STAGING_DIR)/usr/lib/libbluetooth.so
+ mkdir -p $(TARGET_DIR)/usr/lib
+ install -D -m 0755 $(STAGING_DIR)/usr/lib/libbluetooth.so* $(TARGET_DIR)/usr/lib
+ $(STRIPCMD) $(TARGET_DIR)/usr/lib/libbluetooth.so
+
+$(TARGET_DIR)/usr/sbin/hcidump: $(BLUEZ_HCIDUMP_BUILD_DIR)/hcidump
+ $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(BLUEZ_HCIDUMP_BUILD_DIR) install
+ rm -rf $(TARGET_DIR)/usr/share/man
+
+$(TARGET_DIR)/usr/sbin/hciattach: $(BLUEZ_UTILS_BUILD_DIR)/tools/hciattach
+ (list='hcid dund hidd audio input network rfcomm sdpd tools'; for p in $$list; do \
+ $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(BLUEZ_UTILS_BUILD_DIR)/$$p install; \
+ done)
+ mkdir -p $(TARGET_DIR)/etc/bluetooth/pan $(TARGET_DIR)/etc/bluetooth/rfcomm
+ install -D -m 0644 package/bluez/hcid.conf $(TARGET_DIR)/etc/bluetooth/hcid.conf
+ install -D -m 0755 package/bluez/bluez-utils-bluepin.sh $(TARGET_DIR)/etc/bluetooth/bluepin
+ install -D -m 0755 package/bluez/bluez-pand-devup.sh $(TARGET_DIR)/etc/bluetooth/pan/dev-up
+ install -D -m 0755 package/bluez/rfcomm-getty $(TARGET_DIR)/etc/bluetooth/rfcomm/rfcomm-getty
+ echo "1234" > $(TARGET_DIR)/etc/bluetooth/pin
+ chmod 0600 $(TARGET_DIR)/etc/bluetooth/pin
+ install -D -m 0644 package/bluez/rfcomm.conf $(TARGET_DIR)/etc/bluetooth/rfcomm.conf
+ #install -D -m 0755 package/bluez/bluetooth.init $(TARGET_DIR)/etc/init.d/S30bluetooth TBDJB
+ mkdir -p $(TARGET_DIR)/etc/default
+ install -D -m 0644 package/bluez/bluetooth.default $(TARGET_DIR)/etc/default/bluetooth
+ install -D -m 0644 package/bluez/bluetooth.conf $(TARGET_DIR)/etc/dbus-1/system.d/bluetooth.conf
+
+.PHONY: bluez-libs-staging bluez-libs bluez-libs-source bluez-utils
+
+bluez-utils: bluez-libs dbus $(TARGET_DIR)/usr/sbin/hciattach
+
+bluez-utils-dirclean: bluez-libs-dirclean
+ rm -rf $(BLUEZ_UTILS_BUILD_DIR)
+
+bluez-hcidump: bluez-libs $(TARGET_DIR)/usr/sbin/hcidump
+
+bluez-libs-staging: $(STAGING_DIR)/usr/lib/libbluetooth.a
+
+bluez-libs: $(TARGET_DIR)/usr/lib/libbluetooth.so
+
+bluez-libs-source: $(DL_DIR)/$(BLUEZ_SOURCE)
+
+bluez-libs-clean:
+ -$(MAKE) -C $(BLUEZ_LIBS_BUILD_DIR) clean
+
+bluez-libs-dirclean:
+ rm -rf $(BLUEZ_LIBS_BUILD_DIR)
+
+#############################################################
+#
+## Toplevel Makefile options
+#
+##############################################################
+ifeq ($(strip $(BR2_PACKAGE_BLUEZ)),y)
+TARGETS+=bluez-utils
+endif
diff --git a/buildroot/package/bluez/hcid.conf b/buildroot/package/bluez/hcid.conf
new file mode 100644
index 0000000..761e17b
--- /dev/null
+++ b/buildroot/package/bluez/hcid.conf
@@ -0,0 +1,57 @@
+#
+# HCI daemon configuration file.
+#
+
+# HCId options
+options {
+ # Automatically initialize new devices
+ autoinit yes;
+
+ # Security Manager mode
+ # none - Security manager disabled
+ # auto - Use local PIN for incoming connections
+ # user - Always ask user for a PIN
+ #
+ security auto;
+
+ # Pairing mode
+ # none - Pairing disabled
+ # multi - Allow pairing with already paired devices
+ # once - Pair once and deny successive attempts
+ pairing multi;
+
+ # Default PIN code for incoming connections
+ passkey "BlueZ";
+}
+
+# Default settings for HCI devices
+device {
+ # Local device name
+ # %d - device id
+ # %h - host name
+ name "Gumstix (%d)";
+
+ # Local device class
+ class 0x820116;
+
+ # Default packet type
+ #pkt_type DH1,DM1,HV1;
+
+ # Inquiry and Page scan
+ iscan enable; pscan enable;
+
+ # Default link mode
+ # none - no specific policy
+ # accept - always accept incoming connections
+ # master - become master on incoming connections,
+ # deny role switch on outgoing connections
+ lm accept;
+
+ # Default link policy
+ # none - no specific policy
+ # rswitch - allow role switch
+ # hold - allow hold mode
+ # sniff - allow sniff mode
+ # park - allow park mode
+ lp rswitch,hold,sniff,park;
+}
diff --git a/buildroot/package/bluez/rfcomm-getty b/buildroot/package/bluez/rfcomm-getty
new file mode 100644
index 0000000..f1d7a45
--- /dev/null
+++ b/buildroot/package/bluez/rfcomm-getty
@@ -0,0 +1,9 @@
+#!/bin/sh
+while true;
+ do
+ rfcomm show rfcomm0 > /dev/null 2> /dev/null
+ if [ "$?" != "1" ] ; then
+ /sbin/getty -w -L rfcomm0 115200 vt100;
+ fi
+ sleep 1;
+done
diff --git a/buildroot/package/bluez/rfcomm.conf b/buildroot/package/bluez/rfcomm.conf
new file mode 100644
index 0000000..cdbbf5b
--- /dev/null
+++ b/buildroot/package/bluez/rfcomm.conf
@@ -0,0 +1,16 @@
+#
+# RFCOMM configuration file.
+#
+
+rfcomm0 {
+ bind yes;
+
+ # Bluetooth address of the device
+ device 11:22:33:44:55:66;
+
+ # RFCOMM channel for the connection
+ channel 1;
+
+ # Description of the connection
+ comment "Bluetooth Serial Console";
+}
hooks/post-receive
--
armadeus
|