mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-23 23:02:26 +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.
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
# GPG 1.4.21 uses an old version of libusb, which
|
|
# is emulated with the compatibility library.
|
|
# This is a bit of a hack to set it up.
|
|
modules-$(CONFIG_GPG) += libusb-compat
|
|
|
|
libusb-compat_version := 0.1.5
|
|
libusb-compat_dir := libusb-compat-$(libusb-compat_version)
|
|
libusb-compat_tar := libusb-compat-$(libusb-compat_version).tar.bz2
|
|
libusb-compat_url := https://downloads.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compat-$(libusb-compat_version)/$(libusb-compat_tar)
|
|
libusb-compat_hash := 404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a
|
|
|
|
libusb-compat_configure := ./configure \
|
|
$(CROSS_TOOLS) \
|
|
--host i386-elf-linux \
|
|
--prefix "/" \
|
|
PKG_CONFIG=/bin/false \
|
|
LIBUSB_1_0_CFLAGS="-I$(INSTALL)/include/libusb-1.0" \
|
|
LIBUSB_1_0_LIBS="$(INSTALL)/libusb-1.0.so" \
|
|
|
|
# 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-compat_target := $(MAKE_JOBS) \
|
|
DESTDIR="$(INSTALL)" \
|
|
$(CROSS_TOOLS) \
|
|
install \
|
|
|
|
libusb-compat_libraries := libusb/.libs/libusb-0.1.so.4
|
|
|
|
libusb-compat_depends := libusb $(musl_dep)
|