mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
f16e92792a
This prepares most of the modules to be build for it. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
29 lines
841 B
Makefile
29 lines
841 B
Makefile
modules-$(CONFIG_NKSTORECLI) += libhidapi-libusb
|
|
|
|
libhidapi-libusb_depends += libusb
|
|
|
|
libhidapi-libusb_version := 0.9.0
|
|
libhidapi-libusb_dir := hidapi-hidapi-$(libhidapi-libusb_version)
|
|
libhidapi-libusb_tar := hidapi-$(libhidapi-libusb_version).tar.gz
|
|
libhidapi-libusb_url := https://github.com/libusb/hidapi/archive/$(libhidapi-libusb_tar)
|
|
libhidapi-libusb_hash := 630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652
|
|
|
|
MY_CROSS_TOOLS := \
|
|
CC="$(heads_cc) -Os" \
|
|
$(CROSS_TOOLS_NOCC) \
|
|
|
|
|
|
libhidapi-libusb_configure := ./bootstrap && \
|
|
./configure \
|
|
$(MY_CROSS_TOOLS) \
|
|
--host $(MUSL_ARCH)-elf-linux\
|
|
--prefix "/"
|
|
|
|
|
|
libhidapi-libusb_target := $(MAKE_JOBS) -C libusb \
|
|
DESTDIR="$(INSTALL)" \
|
|
$(MY_CROSS_TOOLS) \
|
|
install && \
|
|
cp $(INSTALL)/../build/$(libhidapi-libusb_dir)/pc/hidapi-libusb.pc $(INSTALL)/lib/pkgconfig/ \
|
|
|