diff options
| author | Alexey Tarasov <tarasov@dodologics.com> | 2009-10-25 01:37:37 +1100 |
|---|---|---|
| committer | Alexey Tarasov <tarasov@dodologics.com> | 2009-10-25 01:56:35 +1100 |
| commit | 3b226f9e3b893a3e088d7b854b0e7c523e79063f (patch) | |
| tree | 8a2e0ae3933aa3ec85449bd0ca69c3c01c31320c /adb/Android.mk | |
| parent | 3166410a82f43d39201be98a8d35c51baa86cb53 (diff) | |
| download | system_core-3b226f9e3b893a3e088d7b854b0e7c523e79063f.tar.gz system_core-3b226f9e3b893a3e088d7b854b0e7c523e79063f.tar.bz2 system_core-3b226f9e3b893a3e088d7b854b0e7c523e79063f.zip | |
FreeBSD support for usb-connected devices in adb
FreeBSD (and other systems as well) may use libusb to work with USB devices.
libusb is integrated in FreeBSD base system in recent builds (8.0+),
however in other systems it may need include libusb.h like <libusb/libusb.h>
and install library from devel/libusb port or other repository.
Submitted change not supports events (attach/detach) as libusb 1.0 lacks
such functionality and in order to make code more portable I've not used
workarounds as in earlier changeset.
Code was tested on FreeBSD 8.0-RC1, HTC Hero (1.0.0.A6288, Android 1.5)
Diffstat (limited to 'adb/Android.mk')
| -rw-r--r-- | adb/Android.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/adb/Android.mk b/adb/Android.mk index f3eaa6e0..6325e53f 100644 --- a/adb/Android.mk +++ b/adb/Android.mk @@ -25,6 +25,12 @@ ifeq ($(HOST_OS),darwin) LOCAL_LDLIBS += -lpthread -framework CoreFoundation -framework IOKit -framework Carbon endif +ifeq ($(HOST_OS),freebsd) + USB_SRCS := usb_libusb.c + EXTRA_SRCS := get_my_path_freebsd.c + LOCAL_LDLIBS += -lpthread -lusb +endif + ifeq ($(HOST_OS),windows) USB_SRCS := usb_windows.c EXTRA_SRCS := get_my_path_windows.c |
