mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
07eb5e9717
Each of the submodule configuration files defined a subset of the cross compiler tools that it used and many were picking up the system `ar`, `nm`, `strip, `ld`, etc. They all now use a `Makefile` macro that defines the path to the proper cross compiler tools. For ones that need the tools, but not the musl-libc gcc, there is $(CROSS_TOOLS_NOCC) that is all of them without gcc. This is for musl-libc itself, as well as xen and the Linux kernel.
27 lines
832 B
Plaintext
27 lines
832 B
Plaintext
# GPG with Yubikey support requires libusb
|
|
modules-$(CONFIG_GPG) += libusb
|
|
|
|
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)
|
|
libusb_hash := 7dce9cce9a81194b7065ee912bcd55eeffebab694ea403ffb91b67db66b1824b
|
|
|
|
libusb_configure := ./configure \
|
|
$(CROSS_TOOLS) \
|
|
--host i386-elf-linux \
|
|
--prefix "/" \
|
|
--disable-udev \
|
|
|
|
# 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
|
|
libusb_target := $(MAKE_JOBS) \
|
|
DESTDIR="$(INSTALL)" \
|
|
$(CROSS_TOOLS) \
|
|
install \
|
|
|
|
libusb_libraries := libusb/.libs/libusb-1.0.so.0
|
|
|
|
libusb_depends := $(musl_dep)
|