[oe-commits] org.oe.dev bluez-utils 3.9: Fix for uclibc. Termios speed above 115k are not supported,

lenehan commit openembedded-commits at lists.openembedded.org
Thu May 17 03:40:51 UTC 2007


bluez-utils 3.9: Fix for uclibc. Termios speed above 115k are not supported,
so check for the definition of the faster speeds before trying to use them.

Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: fb9c7c921e22536fd3c75c3c622075778e54aec1
ViewMTN: http://monotone.openembedded.org/revision.psp?id=fb9c7c921e22536fd3c75c3c622075778e54aec1
Files:
1
packages/bluez/bluez-utils/uclibc-fix.patch
packages/bluez/bluez-utils_3.9.bb
Diffs:

#
# mt diff -re5ed7f26d83dbc46a1eb192c4dab57cc6c3dfbb1 -rfb9c7c921e22536fd3c75c3c622075778e54aec1
#
# 
# 
# add_file "packages/bluez/bluez-utils/uclibc-fix.patch"
#  content [78b62f54a2d37525b1243f4545f032664a67b067]
# 
# patch "packages/bluez/bluez-utils_3.9.bb"
#  from [a20b7cda425b77d5d8a2ed2700f88ba4d5298129]
#    to [5b22d99203dab61b6a7194f64188e1b0a0bb104b]
# 
============================================================
--- packages/bluez/bluez-utils/uclibc-fix.patch	78b62f54a2d37525b1243f4545f032664a67b067
+++ packages/bluez/bluez-utils/uclibc-fix.patch	78b62f54a2d37525b1243f4545f032664a67b067
@@ -0,0 +1,46 @@
+Uclibc doesn't define or support speeds above 115200. So check the existence
+of the defines before allowing them to actually be used.
+
+Index: bluez-utils-3.9/tools/hciattach.c
+===================================================================
+--- bluez-utils-3.9.orig/tools/hciattach.c	2007-05-17 12:34:28.000000000 +1000
++++ bluez-utils-3.9/tools/hciattach.c	2007-05-17 12:40:20.000000000 +1000
+@@ -105,22 +105,38 @@
+ 		return B57600;
+ 	case 115200:
+ 		return B115200;
++#ifdef B230400
+ 	case 230400:
+ 		return B230400;
++#endif
++#ifdef B460800
+ 	case 460800:
+ 		return B460800;
++#endif
++#ifdef B500000
+ 	case 500000:
+ 		return B500000;
++#endif
++#ifdef B576000
+ 	case 576000:
+ 		return B576000;
++#endif
++#ifdef B921600
+ 	case 921600:
+ 		return B921600;
++#endif
++#ifdef B1000000
+ 	case 1000000:
+ 		return B1000000;
++#endif
++#ifdef B1152000
+ 	case 1152000:
+ 		return B1152000;
++#endif
++#ifdef B1500000
+ 	case 1500000:
+ 		return B1500000;
++#endif
+ 	default:
+ 		return B57600;
+ 	}
============================================================
--- packages/bluez/bluez-utils_3.9.bb	a20b7cda425b77d5d8a2ed2700f88ba4d5298129
+++ packages/bluez/bluez-utils_3.9.bb	5b22d99203dab61b6a7194f64188e1b0a0bb104b
@@ -1,10 +1,12 @@ PACKAGES =+ "${PN}-ciptool"
 require bluez-utils.inc
 
 PACKAGES =+ "${PN}-ciptool"
 
+SRC_URI += "file://uclibc-fix.patch;patch=1"
+
 FILES_${PN}-ciptool = "/bin/ciptool"
 RREPLACES_${PN}-ciptool = "bluez-utils-dbus-ciptool"
 RCONFLICTS_${PN}-ciptool = "bluez-utils-dbus-ciptool bluez-utils-nodbus"
 
 
+PR = "r5"
-PR = "r4"






More information about the Openembedded-commits mailing list