2017-03-31 15:18:46 +00:00
|
|
|
modules-$(CONFIG_PCIUTILS) += pciutils
|
2017-03-30 18:35:30 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-03-31 18:33:15 +00:00
|
|
|
# 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.
|
|
|
|
|
2017-03-30 18:35:30 +00:00
|
|
|
pciutils_target := \
|
|
|
|
$(MAKE_JOBS) \
|
2017-04-08 17:23:34 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2021-07-18 17:34:20 +00:00
|
|
|
HOST=$(MUSL_ARCH)-linux-musl \
|
2017-03-30 18:35:30 +00:00
|
|
|
ZLIB=no \
|
|
|
|
HWDB=no \
|
2017-06-13 14:45:33 +00:00
|
|
|
LIBKMOD=no \
|
2017-03-30 18:35:30 +00:00
|
|
|
SHARED=yes \
|
2017-04-06 20:01:56 +00:00
|
|
|
IDSDIR="/" \
|
|
|
|
PREFIX="/" \
|
2017-03-31 17:05:05 +00:00
|
|
|
&& \
|
|
|
|
$(MAKE) \
|
|
|
|
-C $(build)/$(pciutils_dir) \
|
2017-04-08 17:23:34 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2017-03-31 17:05:05 +00:00
|
|
|
ZLIB=no \
|
|
|
|
HWDB=no \
|
2017-06-13 14:45:33 +00:00
|
|
|
LIBKMOD=no \
|
2017-03-31 17:05:05 +00:00
|
|
|
SHARED=yes \
|
2017-04-06 20:01:56 +00:00
|
|
|
PREFIX="/" \
|
|
|
|
DESTDIR="$(INSTALL)" \
|
2017-03-31 18:33:15 +00:00
|
|
|
install \
|
2017-03-30 18:35:30 +00:00
|
|
|
install-lib \
|
|
|
|
|
|
|
|
pciutils_output := \
|
|
|
|
lspci \
|
|
|
|
|
|
|
|
pciutils_libraries := \
|
2018-05-02 15:38:39 +00:00
|
|
|
lib/libpci.so.3.5.4 \
|
2021-07-22 22:25:55 +00:00
|
|
|
$(INSTALL)/lib/libpci.so.3\
|
2017-03-30 18:35:30 +00:00
|
|
|
|
|
|
|
pciutils_configure :=
|