Commit Graph

5 Commits

Author SHA1 Message Date
Yoann Congal f50f9a9cac libusb-compat: RDEPENDS on libusb1
libusb-compat dlopen() libusb1 so we need to explicitly RDEPENDS on it.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Ever ATILANO <ever.atilano@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-28 08:50:56 -08:00
Yoann Congal 66b471ec10 libusb-compat: add simple ptest (example programs)
Build and run example programs as test. This will only catch major
errors (.so lib won't load etc.) because no output check is done, only
return status is checked.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Ever ATILANO <ever.atilano@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-28 08:50:56 -08:00
Yoann Congal 933885520a libusb-compat: upgrade sources to fix -native build
Fixes [YOCTO #15032] by upgrading the source to a commit including the
fix : change SONAME detection source from ldd to objdump

ldd detects used libraries by partially running the target binary. This
is a problem for when the target binary is not runnable
(e.g. cross-compilation).

Switch to objdump which only reads info from the ELF file without
running anything from it.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Ever ATILANO <ever.atilano@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-28 08:50:56 -08:00
Yoann Congal 46ff77d3a0 libusb-compat: Revert "libusb-compat: move libraries to base_libdir"
Revert commit ed937940f54d1a376b518fc276da78811c4ac50b from oe-core:
    libusb-compat: move libraries to base_libdir
    udev links to libusb-compat, and so this library needs to be in
    base_libdir (/lib) instead of libdir (/usr/lib).

The libdir=base_libdir configuration was needed for udev but it's not
the case anymore. Remove it to simplify the recipe.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Ever ATILANO <ever.atilano@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-28 08:50:56 -08:00
Wang Mingyu 5ce46719bc libusb-compat: upgrade 0.1.7 -> 0.1.8
0001-usb.h-Include-sys-types.h.patch
refreshed for new version

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-18 13:19:36 -08:00