2017-04-05 21:59:49 +00:00
|
|
|
# GPG with Yubikey support requires libusb
|
|
|
|
modules-$(CONFIG_GPG) += libusb
|
2018-01-05 21:09:07 +00:00
|
|
|
modules-$(CONFIG_GPG2) += libusb
|
2017-04-05 21:59:49 +00:00
|
|
|
|
|
|
|
libusb_version := 1.0.21
|
|
|
|
libusb_dir := libusb-$(libusb_version)
|
|
|
|
libusb_tar := libusb-$(libusb_version).tar.bz2
|
|
|
|
libusb_url := https://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-$(libusb_version)/$(libusb_tar)
|
2021-02-03 01:09:34 +00:00
|
|
|
libusb_url := https://github.com/libusb/libusb/releases/download/v$(libusb_version)/$(libusb_tar)
|
2017-04-05 22:01:36 +00:00
|
|
|
libusb_hash := 7dce9cce9a81194b7065ee912bcd55eeffebab694ea403ffb91b67db66b1824b
|
2017-04-05 21:59:49 +00:00
|
|
|
|
2023-03-01 16:12:46 +00:00
|
|
|
libusb_configure := \
|
|
|
|
CFLAGS="-Os" \
|
|
|
|
./configure \
|
2024-01-29 03:55:11 +00:00
|
|
|
$(CROSS_TOOLS) \
|
|
|
|
--host $(MUSL_ARCH)-elf-linux \
|
|
|
|
--prefix "/" \
|
|
|
|
--disable-udev \
|
2017-04-05 21:59:49 +00:00
|
|
|
|
|
|
|
# Run one build to generate the executables with the pre-defined
|
|
|
|
# exec_prefix and datarootdir, then a second make to install the binaries
|
|
|
|
# into our actual target location
|
2018-01-05 21:09:07 +00:00
|
|
|
|
2017-04-05 21:59:49 +00:00
|
|
|
libusb_target := $(MAKE_JOBS) \
|
2017-04-06 20:01:56 +00:00
|
|
|
DESTDIR="$(INSTALL)" \
|
2017-04-08 17:23:34 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2017-04-05 21:59:49 +00:00
|
|
|
install \
|
|
|
|
|
|
|
|
libusb_libraries := libusb/.libs/libusb-1.0.so.0
|
|
|
|
|
|
|
|
libusb_depends := $(musl_dep)
|