diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-04-15 18:11:02 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-04-16 13:50:45 +0200 |
| commit | 852ac4b589adb186191ad70a2fa3472d5b351ec4 (patch) | |
| tree | 598be2b615f2b9c804f66c15b17ffc37671b6994 | |
| parent | 3a493483b59cfe700400737a38b8147583685de6 (diff) | |
| download | meta-openembedded-852ac4b589adb186191ad70a2fa3472d5b351ec4.tar.gz | |
bluez-hcidump: add 2.0 version and patch to build with newer bluez
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | meta-oe/recipes-connectivity/bluez/bluez-hcidump-2.0/remove.ntoh64.definition.patch | 42 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/bluez/bluez-hcidump_2.0.bb | 21 |
2 files changed, 63 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/bluez/bluez-hcidump-2.0/remove.ntoh64.definition.patch b/meta-oe/recipes-connectivity/bluez/bluez-hcidump-2.0/remove.ntoh64.definition.patch new file mode 100644 index 0000000000..994326514d --- /dev/null +++ b/meta-oe/recipes-connectivity/bluez/bluez-hcidump-2.0/remove.ntoh64.definition.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | Upstream-Status: Accepted, already in git, expected to be included in next version after 2.0 | ||
| 2 | From 95ea4ff5c9c7dbda2f3faaef4e5cd46d542a48c8 Mon Sep 17 00:00:00 2001 | ||
| 3 | From: Anderson Lizardo <anderson.lizardo@openbossa.org> | ||
| 4 | Date: Fri, 18 Mar 2011 15:10:19 -0400 | ||
| 5 | Subject: [PATCH] Fix compilation against latest BlueZ | ||
| 6 | |||
| 7 | BlueZ now has ntoh64()/hton64() functions in bluetooth.h, therefore the | ||
| 8 | hcidump local copy is not necessary. | ||
| 9 | --- | ||
| 10 | src/hcidump.c | 16 ---------------- | ||
| 11 | 1 files changed, 0 insertions(+), 16 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/src/hcidump.c b/src/hcidump.c | ||
| 14 | index af086c7..2023130 100644 | ||
| 15 | --- a/src/hcidump.c | ||
| 16 | +++ b/src/hcidump.c | ||
| 17 | @@ -50,22 +50,6 @@ | ||
| 18 | #include "parser/parser.h" | ||
| 19 | #include "parser/sdp.h" | ||
| 20 | |||
| 21 | -#if __BYTE_ORDER == __LITTLE_ENDIAN | ||
| 22 | -static inline uint64_t ntoh64(uint64_t n) | ||
| 23 | -{ | ||
| 24 | - uint64_t h; | ||
| 25 | - uint64_t tmp = ntohl(n & 0x00000000ffffffff); | ||
| 26 | - h = ntohl(n >> 32); | ||
| 27 | - h |= tmp << 32; | ||
| 28 | - return h; | ||
| 29 | -} | ||
| 30 | -#elif __BYTE_ORDER == __BIG_ENDIAN | ||
| 31 | -#define ntoh64(x) (x) | ||
| 32 | -#else | ||
| 33 | -#error "Unknown byte order" | ||
| 34 | -#endif | ||
| 35 | -#define hton64(x) ntoh64(x) | ||
| 36 | - | ||
| 37 | #define SNAP_LEN HCI_MAX_FRAME_SIZE | ||
| 38 | #define DEFAULT_PORT "10839"; | ||
| 39 | |||
| 40 | -- | ||
| 41 | 1.7.4.4 | ||
| 42 | |||
diff --git a/meta-oe/recipes-connectivity/bluez/bluez-hcidump_2.0.bb b/meta-oe/recipes-connectivity/bluez/bluez-hcidump_2.0.bb new file mode 100644 index 0000000000..7ad8eef323 --- /dev/null +++ b/meta-oe/recipes-connectivity/bluez/bluez-hcidump_2.0.bb | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | SUMMARY = "Linux Bluetooth Stack HCI Debugger Tool." | ||
| 2 | DESCRIPTION = "The hcidump tool reads raw HCI data coming from and going to a Bluetooth device \ | ||
| 3 | and displays the commands, events and data in a human-readable form." | ||
| 4 | |||
| 5 | SECTION = "console" | ||
| 6 | PRIORITY = "optional" | ||
| 7 | DEPENDS = "bluez4" | ||
| 8 | LICENSE = "GPLv2+" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ | ||
| 10 | file://src/hcidump.c;beginline=1;endline=23;md5=3bee3a162dff43a5be7470710b99fbcf" | ||
| 11 | PR = "r0" | ||
| 12 | |||
| 13 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/${P}.tar.gz \ | ||
| 14 | file://remove.ntoh64.definition.patch" | ||
| 15 | |||
| 16 | SRC_URI[md5sum] = "5c2e3ef0a68b2845047867ba51ff8ac9" | ||
| 17 | SRC_URI[sha256sum] = "b3b64fd0b18301df07d3aaf34c037c1e4808b4aaf702294822d62b5424f617fd" | ||
| 18 | |||
| 19 | EXTRA_OECONF = "--with-bluez-libs=${STAGING_LIBDIR} --with-bluez-includes=${STAGING_INCDIR}" | ||
| 20 | |||
| 21 | inherit autotools | ||
