package/openobex: fix static with libusb and libatomic

Force LibUSB_VERSION_1.0 to ON to fix the following static build failure
with libusb and libatomic:

-- Looking for libusb_get_device_list in /nvmedata/autobuild/instance-4/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libusb-1.0.a
-- Looking for libusb_get_device_list in /nvmedata/autobuild/instance-4/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libusb-1.0.a - not found

[...]

/nvmedata/autobuild/instance-4/output-1/build/openobex-1.7.2/lib/transport/usbobex.h:30:10: fatal error: usb.h: No such file or directory
   30 | #include <usb.h>
      |          ^~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/52b0edc4278f65fb4a9671b65c655cc4544a3103

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Fabrice Fontaine 2022-04-26 22:30:36 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 3943a8111b
commit d608368e1a

View File

@ -20,6 +20,7 @@ OPENOBEX_DEPENDENCIES += bluez5_utils
endif
ifeq ($(BR2_PACKAGE_LIBUSB),y)
OPENOBEX_CONF_OPTS += -DLibUSB_VERSION_1.0=ON
OPENOBEX_DEPENDENCIES += libusb
endif