heads/modules/pciutils
Trammell Hudson 07eb5e9717
Define $(CROSS_TOOLS) to ensure reproducible builds (issue #173)
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.
2017-04-08 13:23:34 -04:00

46 lines
1.0 KiB
Plaintext

modules-$(CONFIG_PCIUTILS) += pciutils
pciutils_depends := $(musl_dep)
#pciutils_version := git
#pciutils_repo := https://github.com/osresearch/pciutils
pciutils_version := 3.5.4
pciutils_dir := pciutils-$(pciutils_version)
pciutils_tar := pciutils-$(pciutils_version).tar.xz
pciutils_url := https://www.kernel.org/pub/software/utils/pciutils/$(pciutils_tar)
pciutils_hash := 64293c6ab9318c40ef262b76d87bd9097531759752bac556e50979b1e63cfe66
# IDSDIR must be set to a constant during the build,
# but not during the install to make the libpci.so.3
# reproducible. Otherwise the build path will be embedded
# in the library and executables.
pciutils_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
ZLIB=no \
HWDB=no \
SHARED=yes \
IDSDIR="/" \
PREFIX="/" \
&& \
$(MAKE) \
-C $(build)/$(pciutils_dir) \
$(CROSS_TOOLS) \
ZLIB=no \
HWDB=no \
SHARED=yes \
PREFIX="/" \
DESTDIR="$(INSTALL)" \
install \
install-lib \
pciutils_output := \
lspci \
pciutils_libraries := \
../../install/lib/libpci.so.3 \
pciutils_configure :=